Subversion Repositories eFlore/Archives.cel-v2

Rev

Rev 18 | Rev 27 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 22
Line 1... Line 1...
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
Line 2... Line 2...
2
 
2
 
-
 
3
import java.util.Date;
Line 3... Line 4...
3
import java.util.Date;
4
import java.util.HashMap;
4
 
5
 
Line 5... Line 6...
5
import org.tela_botanica.client.image.ImageMediateur;
6
import org.tela_botanica.client.image.ImageMediateur;
Line 28... Line 29...
28
import com.gwtext.client.widgets.layout.RowLayout;
29
import com.gwtext.client.widgets.layout.RowLayout;
29
import com.gwtext.client.widgets.layout.RowLayoutData;
30
import com.gwtext.client.widgets.layout.RowLayoutData;
30
import com.gwtext.client.widgets.layout.VerticalLayout;
31
import com.gwtext.client.widgets.layout.VerticalLayout;
31
import com.gwtext.client.widgets.menu.DateItem;
32
import com.gwtext.client.widgets.menu.DateItem;
32
import com.gwtext.client.widgets.menu.Menu;
33
import com.gwtext.client.widgets.menu.Menu;
-
 
34
import com.gwtext.client.widgets.tree.TreeNode;
-
 
35
import com.gwtext.client.widgets.tree.TreePanel;
Line 33... Line 36...
33
 
36
 
Line 34... Line 37...
34
public class PanneauMetadonneesVue extends TabPanel implements Rafraichissable {
37
public class PanneauMetadonneesVue extends TabPanel implements Rafraichissable {
Line 43... Line 46...
43
	
46
	
44
	private Panel panneauExifGrid = null; 
47
	private Panel panneauExifGrid = null; 
45
	private Panel panneauIptcGrid = null ;
48
	private Panel panneauIptcGrid = null ;
Line -... Line 49...
-
 
49
	private Panel panneauInfoGrid = null ;
-
 
50
	
-
 
51
	private TreePanel panneauMotsCles = null ;
46
	private Panel panneauInfoGrid = null ;
52
	private HashMap motclesIds = null ;
47
	
53
	
48
	private TextField commentaireGeneral = null ;
54
	private TextField commentaireGeneral = null ;
Line 49... Line 55...
49
	private DateField dateImage = null ;
55
	private DateField dateImage = null ;
Line 58... Line 64...
58
		imediateur = im ;
64
		imediateur = im ;
Line 59... Line 65...
59
		
65
		
60
		panneauExifGrid = new Panel("Exif") ;
66
		panneauExifGrid = new Panel("Exif") ;
61
		panneauIptcGrid = new Panel("Iptc") ;
67
		panneauIptcGrid = new Panel("Iptc") ;
-
 
68
		panneauInfoGrid = new Panel("info") ;
-
 
69
		panneauMotsCles = new TreePanel("Mots clés") ;
-
 
70
		
-
 
71
		
-
 
72
		TreeNode root = new TreeNode("Mots clés") ;
-
 
73
		panneauMotsCles.setRootNode(root) ;
Line 62... Line 74...
62
		panneauInfoGrid = new Panel("info") ;
74
		panneauMotsCles.setRootVisible(false);
63
		
75
		
64
		panneauInfoGrid.setLayout(new VerticalLayout());
76
		panneauInfoGrid.setLayout(new VerticalLayout());
65
		panneauInfoGrid.setHeight(500);
77
		panneauInfoGrid.setHeight(500);
Line 94... Line 106...
94
		
106
		
95
		
107
		
96
		this.add(panneauInfoGrid) ;
108
		this.add(panneauInfoGrid) ;
-
 
109
		this.add(panneauExifGrid) ;
Line 97... Line 110...
97
		this.add(panneauExifGrid) ;
110
		this.add(panneauIptcGrid) ;
98
		this.add(panneauIptcGrid) ;
111
		this.add(panneauMotsCles) ;
Line 99... Line 112...
99
		
112
		
Line 105... Line 118...
105
		ExifGrid.setView(gViewExif);
118
		ExifGrid.setView(gViewExif);
106
		ExifGrid.setNameText("Métadonnées Exif");
119
		ExifGrid.setNameText("Métadonnées Exif");
107
		ExifGrid.setAutoWidth(true);
120
		ExifGrid.setAutoWidth(true);
108
		ExifGrid.setAutoHeight(true);
121
		ExifGrid.setAutoHeight(true);
109
		ExifGrid.setSorted(false);
122
		ExifGrid.setSorted(false);
-
 
123
		ExifGrid.setDisableSelection(true);
Line 110... Line 124...
110
		
124
		
111
		gViewIptc = new GridView();
125
		gViewIptc = new GridView();
Line 112... Line 126...
112
		gViewIptc.setForceFit(true);
126
		gViewIptc.setForceFit(true);
Line 121... Line 135...
121
		IptcGrid.setSorted(false);
135
		IptcGrid.setSorted(false);
Line 122... Line 136...
122
		
136
		
123
		panneauExifGrid.add(ExifGrid);
137
		panneauExifGrid.add(ExifGrid);
Line -... Line 138...
-
 
138
		panneauIptcGrid.add(IptcGrid); 
-
 
139
		
-
 
140
		this.doLayout(true) ;
-
 
141
		
-
 
142
	}
-
 
143
	
-
 
144
	public void desactiverPanneau()
-
 
145
	{
-
 
146
		this.setDisabled(true) ;
-
 
147
	}
-
 
148
	
-
 
149
	public void activerPanneau()
124
		panneauIptcGrid.add(IptcGrid); 
150
	{
Line 125... Line 151...
125
		
151
		this.setDisabled(false) ;
126
	}
152
	}
127
	
153
	
Line 171... Line 197...
171
			
197
			
Line 172... Line 198...
172
			dateImage.setValue(gen[1][1]) ;
198
			dateImage.setValue(gen[1][1]) ;
173
			
199
			
174
			ExifGrid.setSource(exifSource);
-
 
175
			IptcGrid.setSource(iptcSource);
200
			ExifGrid.setSource(exifSource);
176
		
-
 
177
			
-
 
178
			gViewExif.refresh(true) ;
-
 
179
			gViewIptc.refresh(true) ;
201
			IptcGrid.setSource(iptcSource);
180
			
202
 
181
		}	
203
		}