Subversion Repositories eFlore/Archives.cel-v2

Compare Revisions

Ignore whitespace Rev 21 → Rev 22

/trunk/src/org/tela_botanica/client/vues/PanneauMetadonneesVue.java
1,6 → 1,7
package org.tela_botanica.client.vues;
 
import java.util.Date;
import java.util.HashMap;
 
import org.tela_botanica.client.image.ImageMediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
30,6 → 31,8
import com.gwtext.client.widgets.layout.VerticalLayout;
import com.gwtext.client.widgets.menu.DateItem;
import com.gwtext.client.widgets.menu.Menu;
import com.gwtext.client.widgets.tree.TreeNode;
import com.gwtext.client.widgets.tree.TreePanel;
 
public class PanneauMetadonneesVue extends TabPanel implements Rafraichissable {
 
45,6 → 48,9
private Panel panneauIptcGrid = null ;
private Panel panneauInfoGrid = null ;
private TreePanel panneauMotsCles = null ;
private HashMap motclesIds = null ;
private TextField commentaireGeneral = null ;
private DateField dateImage = null ;
Button validerInfo = null ;
60,7 → 66,13
panneauExifGrid = new Panel("Exif") ;
panneauIptcGrid = new Panel("Iptc") ;
panneauInfoGrid = new Panel("info") ;
panneauMotsCles = new TreePanel("Mots clés") ;
TreeNode root = new TreeNode("Mots clés") ;
panneauMotsCles.setRootNode(root) ;
panneauMotsCles.setRootVisible(false);
panneauInfoGrid.setLayout(new VerticalLayout());
panneauInfoGrid.setHeight(500);
Label labelComm = new Label("Commentaires :") ;
96,6 → 108,7
this.add(panneauInfoGrid) ;
this.add(panneauExifGrid) ;
this.add(panneauIptcGrid) ;
this.add(panneauMotsCles) ;
gViewExif = new GridView();
gViewExif.setForceFit(true);
107,6 → 120,7
ExifGrid.setAutoWidth(true);
ExifGrid.setAutoHeight(true);
ExifGrid.setSorted(false);
ExifGrid.setDisableSelection(true);
gViewIptc = new GridView();
gViewIptc.setForceFit(true);
123,8 → 137,20
panneauExifGrid.add(ExifGrid);
panneauIptcGrid.add(IptcGrid);
this.doLayout(true) ;
}
public void desactiverPanneau()
{
this.setDisabled(true) ;
}
public void activerPanneau()
{
this.setDisabled(false) ;
}
public ImageMediateur getIMediateur()
{
return imediateur ;
173,11 → 199,7
ExifGrid.setSource(exifSource);
IptcGrid.setSource(iptcSource);
gViewExif.refresh(true) ;
gViewIptc.refresh(true) ;
 
}
}
}