gvsig-projects-pool / org.gvsig.online / trunk / org.gvsig.online / org.gvsig.online.swing / org.gvsig.online.swing.impl / src / main / java / org / gvsig / online / swing / impl / changes / OnlineJChangesView.java @ 9512
History | View | Annotate | Download (36.9 KB)
1 |
package org.gvsig.online.swing.impl.changes; |
---|---|
2 |
|
3 |
import com.jeta.open.i18n.I18NUtils; |
4 |
import com.jgoodies.forms.layout.CellConstraints; |
5 |
import com.jgoodies.forms.layout.FormLayout; |
6 |
import java.awt.BorderLayout; |
7 |
import java.awt.Color; |
8 |
import java.awt.ComponentOrientation; |
9 |
import java.awt.Container; |
10 |
import java.awt.Dimension; |
11 |
import javax.swing.Box; |
12 |
import javax.swing.ImageIcon; |
13 |
import javax.swing.JButton; |
14 |
import javax.swing.JComboBox; |
15 |
import javax.swing.JFrame; |
16 |
import javax.swing.JLabel; |
17 |
import javax.swing.JPanel; |
18 |
import javax.swing.JProgressBar; |
19 |
import javax.swing.JScrollPane; |
20 |
import javax.swing.JTabbedPane; |
21 |
import javax.swing.JTable; |
22 |
import javax.swing.JTextField; |
23 |
import javax.swing.JTree; |
24 |
import javax.swing.border.EmptyBorder; |
25 |
|
26 |
|
27 |
public class OnlineJChangesView extends JPanel |
28 |
{ |
29 |
JLabel lblWorkspace = new JLabel(); |
30 |
JComboBox cboWorkspace = new JComboBox(); |
31 |
JButton btnWorkspace = new JButton(); |
32 |
JLabel lblSynchorizationZone = new JLabel(); |
33 |
JComboBox cboSynchorizationZone = new JComboBox(); |
34 |
JLabel lblStatusCaption = new JLabel(); |
35 |
JLabel lblStatusMessages = new JLabel(); |
36 |
JProgressBar pbStatus = new JProgressBar(); |
37 |
JButton btnClose = new JButton(); |
38 |
JPanel gridChanges = new JPanel(); |
39 |
JPanel gridWorkingCopyList = new JPanel(); |
40 |
JButton btnLocalCheckAllEntities = new JButton(); |
41 |
JButton btnLocalUnCheckAllEntities = new JButton(); |
42 |
JButton btnLocalCheckRecomendedEntities = new JButton(); |
43 |
JButton btnLocalCollapseAllEntities = new JButton(); |
44 |
JButton btnLocalExpandAllEntities = new JButton(); |
45 |
JButton btnEntitiesReload = new JButton(); |
46 |
JButton btnSynchronize = new JButton(); |
47 |
JTextField txtLocalTablesFilter = new JTextField(); |
48 |
JButton btnLocalTable = new JButton(); |
49 |
JTree treeLocalTables = new JTree(); |
50 |
JPanel gridTabs = new JPanel(); |
51 |
JTabbedPane tabLocalAndRemote = new JTabbedPane(); |
52 |
JLabel lblLocalChangesCount = new JLabel(); |
53 |
JPanel gridWorkingCopy = new JPanel(); |
54 |
JPanel gridWokingCopyTable = new JPanel(); |
55 |
JTable tblLocalChanges = new JTable(); |
56 |
JButton btnLocalCheckAll = new JButton(); |
57 |
JButton btnLocalUnCheckAll = new JButton(); |
58 |
JButton btnLocalShowForm = new JButton(); |
59 |
JButton btnLocalRefresh = new JButton(); |
60 |
JButton btnLocalCommit = new JButton(); |
61 |
JButton btnLocalRevert = new JButton(); |
62 |
JButton btnLocalZoom = new JButton(); |
63 |
JButton btnLocalCenter = new JButton(); |
64 |
JButton btnLocalCleanHighligthed = new JButton(); |
65 |
JButton btnLocalHighlight = new JButton(); |
66 |
JLabel lblRemoteChangesCount = new JLabel(); |
67 |
JPanel gridRepository = new JPanel(); |
68 |
JPanel gridRepositoryTable = new JPanel(); |
69 |
JTable tblRemoteChanges = new JTable(); |
70 |
JButton btnRemoteShowForm = new JButton(); |
71 |
JButton btnRemoteCheckAll = new JButton(); |
72 |
JButton btnRemoteUncheckAll = new JButton(); |
73 |
JButton btnRemoteCleanChanges = new JButton(); |
74 |
JButton btnRemoteMerge = new JButton(); |
75 |
JButton btnRemoteUpdate = new JButton(); |
76 |
JButton btnRemoteZoom = new JButton(); |
77 |
JButton btnRemoteCenter = new JButton(); |
78 |
JButton btnRemoteCleanHighligthed = new JButton(); |
79 |
JButton btnRemoteHighlight = new JButton(); |
80 |
JButton btnRemoteReloadChanges = new JButton(); |
81 |
JTextField txtWorkingAreaLabel = new JTextField(); |
82 |
JTextField txtWorkingArea = new JTextField(); |
83 |
JButton btnWorkingAreaFromView = new JButton(); |
84 |
JButton btnWorkingAreaDialog = new JButton(); |
85 |
JButton btnWorkingAreaBookmarks = new JButton(); |
86 |
JButton btnWorkingAreaHistory = new JButton(); |
87 |
|
88 |
/**
|
89 |
* Default constructor
|
90 |
*/
|
91 |
public OnlineJChangesView()
|
92 |
{ |
93 |
initializePanel(); |
94 |
} |
95 |
|
96 |
/**
|
97 |
* Adds fill components to empty cells in the first row and first column of the grid.
|
98 |
* This ensures that the grid spacing will be the same as shown in the designer.
|
99 |
* @param cols an array of column indices in the first row where fill components should be added.
|
100 |
* @param rows an array of row indices in the first column where fill components should be added.
|
101 |
*/
|
102 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
103 |
{ |
104 |
Dimension filler = new Dimension(10,10); |
105 |
|
106 |
boolean filled_cell_11 = false; |
107 |
CellConstraints cc = new CellConstraints();
|
108 |
if ( cols.length > 0 && rows.length > 0 ) |
109 |
{ |
110 |
if ( cols[0] == 1 && rows[0] == 1 ) |
111 |
{ |
112 |
/** add a rigid area */
|
113 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
114 |
filled_cell_11 = true;
|
115 |
} |
116 |
} |
117 |
|
118 |
for( int index = 0; index < cols.length; index++ ) |
119 |
{ |
120 |
if ( cols[index] == 1 && filled_cell_11 ) |
121 |
{ |
122 |
continue;
|
123 |
} |
124 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
125 |
} |
126 |
|
127 |
for( int index = 0; index < rows.length; index++ ) |
128 |
{ |
129 |
if ( rows[index] == 1 && filled_cell_11 ) |
130 |
{ |
131 |
continue;
|
132 |
} |
133 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
134 |
} |
135 |
|
136 |
} |
137 |
|
138 |
/**
|
139 |
* Helper method to load an image file from the CLASSPATH
|
140 |
* @param imageName the package and name of the file to load relative to the CLASSPATH
|
141 |
* @return an ImageIcon instance with the specified image file
|
142 |
* @throws IllegalArgumentException if the image resource cannot be loaded.
|
143 |
*/
|
144 |
public ImageIcon loadImage( String imageName ) |
145 |
{ |
146 |
try
|
147 |
{ |
148 |
ClassLoader classloader = getClass().getClassLoader();
|
149 |
java.net.URL url = classloader.getResource( imageName ); |
150 |
if ( url != null ) |
151 |
{ |
152 |
ImageIcon icon = new ImageIcon( url ); |
153 |
return icon;
|
154 |
} |
155 |
} |
156 |
catch( Exception e ) |
157 |
{ |
158 |
e.printStackTrace(); |
159 |
} |
160 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
161 |
} |
162 |
|
163 |
/**
|
164 |
* Method for recalculating the component orientation for
|
165 |
* right-to-left Locales.
|
166 |
* @param orientation the component orientation to be applied
|
167 |
*/
|
168 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
169 |
{ |
170 |
// Not yet implemented...
|
171 |
// I18NUtils.applyComponentOrientation(this, orientation);
|
172 |
super.applyComponentOrientation(orientation);
|
173 |
} |
174 |
|
175 |
public JPanel createPanel() |
176 |
{ |
177 |
JPanel jpanel1 = new JPanel(); |
178 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
179 |
CellConstraints cc = new CellConstraints();
|
180 |
jpanel1.setLayout(formlayout1); |
181 |
|
182 |
lblWorkspace.setName("lblWorkspace");
|
183 |
lblWorkspace.setText("_Working_copy");
|
184 |
jpanel1.add(lblWorkspace,cc.xy(2,2)); |
185 |
|
186 |
cboWorkspace.setName("cboWorkspace");
|
187 |
jpanel1.add(cboWorkspace,cc.xy(4,2)); |
188 |
|
189 |
btnWorkspace.setActionCommand("...");
|
190 |
btnWorkspace.setName("btnWorkspace");
|
191 |
btnWorkspace.setOpaque(false);
|
192 |
btnWorkspace.setRolloverEnabled(true);
|
193 |
btnWorkspace.setText("...");
|
194 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
195 |
btnWorkspace.setBorder(emptyborder1); |
196 |
jpanel1.add(btnWorkspace,cc.xy(6,2)); |
197 |
|
198 |
lblSynchorizationZone.setName("lblSynchorizationZone");
|
199 |
lblSynchorizationZone.setText("_Synchronization_zone");
|
200 |
jpanel1.add(lblSynchorizationZone,cc.xy(2,4)); |
201 |
|
202 |
cboSynchorizationZone.setName("cboSynchorizationZone");
|
203 |
cboSynchorizationZone.setToolTipText("_Synchronization_zone");
|
204 |
jpanel1.add(cboSynchorizationZone,cc.xywh(4,4,3,1)); |
205 |
|
206 |
jpanel1.add(createPanel1(),cc.xywh(2,10,5,1)); |
207 |
jpanel1.add(creategridChanges(),cc.xywh(2,8,5,1)); |
208 |
jpanel1.add(createPanel8(),cc.xywh(4,6,3,1)); |
209 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 }); |
210 |
return jpanel1;
|
211 |
} |
212 |
|
213 |
public JPanel createPanel1() |
214 |
{ |
215 |
JPanel jpanel1 = new JPanel(); |
216 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:MIN(16PX;DEFAULT):NONE,CENTER:DEFAULT:NONE,CENTER:MIN(16PX;DEFAULT):NONE"); |
217 |
CellConstraints cc = new CellConstraints();
|
218 |
jpanel1.setLayout(formlayout1); |
219 |
|
220 |
lblStatusCaption.setName("lblStatusCaption");
|
221 |
jpanel1.add(lblStatusCaption,cc.xy(1,1)); |
222 |
|
223 |
lblStatusMessages.setName("lblStatusMessages");
|
224 |
jpanel1.add(lblStatusMessages,cc.xy(1,3)); |
225 |
|
226 |
pbStatus.setName("pbStatus");
|
227 |
pbStatus.setValue(25);
|
228 |
jpanel1.add(pbStatus,cc.xy(1,2)); |
229 |
|
230 |
JLabel jlabel1 = new JLabel(); |
231 |
jlabel1.setText(" ");
|
232 |
jpanel1.add(jlabel1,cc.xy(2,1)); |
233 |
|
234 |
JLabel jlabel2 = new JLabel(); |
235 |
jlabel2.setText(" ");
|
236 |
jpanel1.add(jlabel2,cc.xy(2,3)); |
237 |
|
238 |
btnClose.setActionCommand("_Close");
|
239 |
btnClose.setName("btnClose");
|
240 |
btnClose.setText("_Close");
|
241 |
jpanel1.add(btnClose,cc.xy(3,2)); |
242 |
|
243 |
addFillComponents(jpanel1,new int[]{ 3 },new int[0]); |
244 |
return jpanel1;
|
245 |
} |
246 |
|
247 |
public JPanel creategridChanges() |
248 |
{ |
249 |
gridChanges.setName("gridChanges");
|
250 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); |
251 |
CellConstraints cc = new CellConstraints();
|
252 |
gridChanges.setLayout(formlayout1); |
253 |
|
254 |
gridChanges.add(creategridWorkingCopyList(),cc.xy(1,2)); |
255 |
gridChanges.add(creategridTabs(),cc.xy(3,2)); |
256 |
addFillComponents(gridChanges,new int[]{ 1,2,3 },new int[]{ 1,2 }); |
257 |
return gridChanges;
|
258 |
} |
259 |
|
260 |
public JPanel creategridWorkingCopyList() |
261 |
{ |
262 |
gridWorkingCopyList.setName("gridWorkingCopyList");
|
263 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)"); |
264 |
CellConstraints cc = new CellConstraints();
|
265 |
gridWorkingCopyList.setLayout(formlayout1); |
266 |
|
267 |
gridWorkingCopyList.add(createPanel2(),cc.xy(1,1)); |
268 |
gridWorkingCopyList.add(createPanel3(),cc.xy(1,3)); |
269 |
addFillComponents(gridWorkingCopyList,new int[]{ 1 },new int[]{ 1,2,3 }); |
270 |
return gridWorkingCopyList;
|
271 |
} |
272 |
|
273 |
public JPanel createPanel2() |
274 |
{ |
275 |
JPanel jpanel1 = new JPanel(); |
276 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
277 |
CellConstraints cc = new CellConstraints();
|
278 |
jpanel1.setLayout(formlayout1); |
279 |
|
280 |
btnLocalCheckAllEntities.setActionCommand("...");
|
281 |
btnLocalCheckAllEntities.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-on.png"));
|
282 |
btnLocalCheckAllEntities.setName("btnLocalCheckAllEntities");
|
283 |
btnLocalCheckAllEntities.setOpaque(false);
|
284 |
btnLocalCheckAllEntities.setRolloverEnabled(true);
|
285 |
btnLocalCheckAllEntities.setToolTipText("_Select_all");
|
286 |
EmptyBorder emptyborder1 = new EmptyBorder(1,1,1,1); |
287 |
btnLocalCheckAllEntities.setBorder(emptyborder1); |
288 |
jpanel1.add(btnLocalCheckAllEntities,cc.xy(2,1)); |
289 |
|
290 |
btnLocalUnCheckAllEntities.setActionCommand("...");
|
291 |
btnLocalUnCheckAllEntities.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-off.png"));
|
292 |
btnLocalUnCheckAllEntities.setName("btnLocalUnCheckAllEntities");
|
293 |
btnLocalUnCheckAllEntities.setOpaque(false);
|
294 |
btnLocalUnCheckAllEntities.setRolloverEnabled(true);
|
295 |
btnLocalUnCheckAllEntities.setToolTipText("_Unselect_all");
|
296 |
EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1); |
297 |
btnLocalUnCheckAllEntities.setBorder(emptyborder2); |
298 |
jpanel1.add(btnLocalUnCheckAllEntities,cc.xy(3,1)); |
299 |
|
300 |
btnLocalCheckRecomendedEntities.setActionCommand("...");
|
301 |
btnLocalCheckRecomendedEntities.setIcon(loadImage("datos/devel/org.gvsig.vcsgis/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-onsmart.png"));
|
302 |
btnLocalCheckRecomendedEntities.setName("btnLocalCheckRecomendedEntities");
|
303 |
btnLocalCheckRecomendedEntities.setOpaque(false);
|
304 |
btnLocalCheckRecomendedEntities.setRolloverEnabled(true);
|
305 |
btnLocalCheckRecomendedEntities.setToolTipText("_Select_recomended");
|
306 |
EmptyBorder emptyborder3 = new EmptyBorder(1,1,1,1); |
307 |
btnLocalCheckRecomendedEntities.setBorder(emptyborder3); |
308 |
jpanel1.add(btnLocalCheckRecomendedEntities,cc.xy(1,1)); |
309 |
|
310 |
btnLocalCollapseAllEntities.setActionCommand("...");
|
311 |
btnLocalCollapseAllEntities.setIcon(loadImage("addons/QuickDrawing/common-collapse-all.png"));
|
312 |
btnLocalCollapseAllEntities.setName("btnLocalCollapseAllEntities");
|
313 |
btnLocalCollapseAllEntities.setOpaque(false);
|
314 |
btnLocalCollapseAllEntities.setRolloverEnabled(true);
|
315 |
btnLocalCollapseAllEntities.setToolTipText("_Collapse_all");
|
316 |
EmptyBorder emptyborder4 = new EmptyBorder(1,1,1,1); |
317 |
btnLocalCollapseAllEntities.setBorder(emptyborder4); |
318 |
jpanel1.add(btnLocalCollapseAllEntities,cc.xy(4,1)); |
319 |
|
320 |
btnLocalExpandAllEntities.setActionCommand("...");
|
321 |
btnLocalExpandAllEntities.setIcon(loadImage("addons/QuickDrawing/common-expand-all.png"));
|
322 |
btnLocalExpandAllEntities.setName("btnLocalExpandAllEntities");
|
323 |
btnLocalExpandAllEntities.setOpaque(false);
|
324 |
btnLocalExpandAllEntities.setRolloverEnabled(true);
|
325 |
btnLocalExpandAllEntities.setToolTipText("_Expand_all");
|
326 |
EmptyBorder emptyborder5 = new EmptyBorder(1,1,1,1); |
327 |
btnLocalExpandAllEntities.setBorder(emptyborder5); |
328 |
jpanel1.add(btnLocalExpandAllEntities,cc.xy(5,1)); |
329 |
|
330 |
btnEntitiesReload.setActionCommand("...");
|
331 |
btnEntitiesReload.setIcon(loadImage("common-refresh.png"));
|
332 |
btnEntitiesReload.setName("btnEntitiesReload");
|
333 |
btnEntitiesReload.setOpaque(false);
|
334 |
btnEntitiesReload.setRolloverEnabled(true);
|
335 |
btnEntitiesReload.setToolTipText("_Refresh");
|
336 |
EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2); |
337 |
btnEntitiesReload.setBorder(emptyborder6); |
338 |
jpanel1.add(btnEntitiesReload,cc.xy(9,1)); |
339 |
|
340 |
btnSynchronize.setActionCommand("...");
|
341 |
btnSynchronize.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-synchronize.png"));
|
342 |
btnSynchronize.setName("btnSynchronize");
|
343 |
btnSynchronize.setOpaque(false);
|
344 |
btnSynchronize.setRolloverEnabled(true);
|
345 |
btnSynchronize.setToolTipText("_Synchronize");
|
346 |
EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2); |
347 |
btnSynchronize.setBorder(emptyborder7); |
348 |
jpanel1.add(btnSynchronize,cc.xy(7,1)); |
349 |
|
350 |
addFillComponents(jpanel1,new int[]{ 6,8 },new int[0]); |
351 |
return jpanel1;
|
352 |
} |
353 |
|
354 |
public JPanel createPanel3() |
355 |
{ |
356 |
JPanel jpanel1 = new JPanel(); |
357 |
FormLayout formlayout1 = new FormLayout("FILL:MAX(200PX;DEFAULT):GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)"); |
358 |
CellConstraints cc = new CellConstraints();
|
359 |
jpanel1.setLayout(formlayout1); |
360 |
|
361 |
txtLocalTablesFilter.setName("txtLocalTablesFilter");
|
362 |
jpanel1.add(txtLocalTablesFilter,cc.xy(1,1)); |
363 |
|
364 |
btnLocalTable.setActionCommand("...");
|
365 |
btnLocalTable.setName("btnLocalTable");
|
366 |
btnLocalTable.setOpaque(false);
|
367 |
btnLocalTable.setRolloverEnabled(true);
|
368 |
btnLocalTable.setText("...");
|
369 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
370 |
btnLocalTable.setBorder(emptyborder1); |
371 |
jpanel1.add(btnLocalTable,cc.xy(3,1)); |
372 |
|
373 |
treeLocalTables.setForeground(new Color(239,240,241)); |
374 |
treeLocalTables.setName("treeLocalTables");
|
375 |
treeLocalTables.setRootVisible(false);
|
376 |
treeLocalTables.setShowsRootHandles(true);
|
377 |
JScrollPane jscrollpane1 = new JScrollPane(); |
378 |
jscrollpane1.setViewportView(treeLocalTables); |
379 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
380 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
381 |
jpanel1.add(jscrollpane1,cc.xywh(1,3,3,1)); |
382 |
|
383 |
addFillComponents(jpanel1,new int[]{ 2 },new int[]{ 2 }); |
384 |
return jpanel1;
|
385 |
} |
386 |
|
387 |
public JPanel creategridTabs() |
388 |
{ |
389 |
gridTabs.setName("gridTabs");
|
390 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
391 |
CellConstraints cc = new CellConstraints();
|
392 |
gridTabs.setLayout(formlayout1); |
393 |
|
394 |
tabLocalAndRemote.setName("tabLocalAndRemote");
|
395 |
tabLocalAndRemote.addTab("_Local_changes",loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-show-local-changes.png"),createPanel4()); |
396 |
tabLocalAndRemote.addTab("_Remote_changes",loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-show-remote-changes.png"),createPanel6()); |
397 |
gridTabs.add(tabLocalAndRemote,cc.xy(1,1)); |
398 |
|
399 |
addFillComponents(gridTabs,new int[0],new int[0]); |
400 |
return gridTabs;
|
401 |
} |
402 |
|
403 |
public JPanel createPanel4() |
404 |
{ |
405 |
JPanel jpanel1 = new JPanel(); |
406 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.2),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
407 |
CellConstraints cc = new CellConstraints();
|
408 |
jpanel1.setLayout(formlayout1); |
409 |
|
410 |
lblLocalChangesCount.setName("lblLocalChangesCount");
|
411 |
lblLocalChangesCount.setText("0");
|
412 |
lblLocalChangesCount.setHorizontalAlignment(JLabel.RIGHT);
|
413 |
jpanel1.add(lblLocalChangesCount,cc.xy(2,3)); |
414 |
|
415 |
jpanel1.add(creategridWorkingCopy(),cc.xy(2,2)); |
416 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4 }); |
417 |
return jpanel1;
|
418 |
} |
419 |
|
420 |
public JPanel creategridWorkingCopy() |
421 |
{ |
422 |
gridWorkingCopy.setName("gridWorkingCopy");
|
423 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
424 |
CellConstraints cc = new CellConstraints();
|
425 |
gridWorkingCopy.setLayout(formlayout1); |
426 |
|
427 |
gridWorkingCopy.add(creategridWokingCopyTable(),cc.xy(1,1)); |
428 |
addFillComponents(gridWorkingCopy,new int[]{ 1 },new int[]{ 1 }); |
429 |
return gridWorkingCopy;
|
430 |
} |
431 |
|
432 |
public JPanel creategridWokingCopyTable() |
433 |
{ |
434 |
gridWokingCopyTable.setName("gridWokingCopyTable");
|
435 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); |
436 |
CellConstraints cc = new CellConstraints();
|
437 |
gridWokingCopyTable.setLayout(formlayout1); |
438 |
|
439 |
tblLocalChanges.setName("tblLocalChanges");
|
440 |
JScrollPane jscrollpane1 = new JScrollPane(); |
441 |
jscrollpane1.setViewportView(tblLocalChanges); |
442 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
443 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
444 |
gridWokingCopyTable.add(jscrollpane1,cc.xy(1,2)); |
445 |
|
446 |
gridWokingCopyTable.add(createPanel5(),cc.xy(1,1)); |
447 |
addFillComponents(gridWokingCopyTable,new int[]{ 1 },new int[]{ 1 }); |
448 |
return gridWokingCopyTable;
|
449 |
} |
450 |
|
451 |
public JPanel createPanel5() |
452 |
{ |
453 |
JPanel jpanel1 = new JPanel(); |
454 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
455 |
CellConstraints cc = new CellConstraints();
|
456 |
jpanel1.setLayout(formlayout1); |
457 |
|
458 |
btnLocalCheckAll.setActionCommand("...");
|
459 |
btnLocalCheckAll.setEnabled(false);
|
460 |
btnLocalCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-on.png"));
|
461 |
btnLocalCheckAll.setName("btnLocalCheckAll");
|
462 |
btnLocalCheckAll.setOpaque(false);
|
463 |
btnLocalCheckAll.setRolloverEnabled(true);
|
464 |
btnLocalCheckAll.setToolTipText("_Select_all");
|
465 |
EmptyBorder emptyborder1 = new EmptyBorder(1,1,1,1); |
466 |
btnLocalCheckAll.setBorder(emptyborder1); |
467 |
jpanel1.add(btnLocalCheckAll,cc.xy(1,1)); |
468 |
|
469 |
btnLocalUnCheckAll.setActionCommand("...");
|
470 |
btnLocalUnCheckAll.setEnabled(false);
|
471 |
btnLocalUnCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-off.png"));
|
472 |
btnLocalUnCheckAll.setName("btnLocalUnCheckAll");
|
473 |
btnLocalUnCheckAll.setOpaque(false);
|
474 |
btnLocalUnCheckAll.setRolloverEnabled(true);
|
475 |
btnLocalUnCheckAll.setToolTipText("_Unselect_all");
|
476 |
EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1); |
477 |
btnLocalUnCheckAll.setBorder(emptyborder2); |
478 |
jpanel1.add(btnLocalUnCheckAll,cc.xy(2,1)); |
479 |
|
480 |
btnLocalShowForm.setActionCommand("...");
|
481 |
btnLocalShowForm.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-showform.png"));
|
482 |
btnLocalShowForm.setName("btnLocalShowForm");
|
483 |
btnLocalShowForm.setOpaque(false);
|
484 |
btnLocalShowForm.setRolloverEnabled(true);
|
485 |
btnLocalShowForm.setToolTipText("_Show_form");
|
486 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
487 |
btnLocalShowForm.setBorder(emptyborder3); |
488 |
jpanel1.add(btnLocalShowForm,cc.xy(18,1)); |
489 |
|
490 |
JLabel jlabel1 = new JLabel(); |
491 |
jpanel1.add(jlabel1,cc.xy(3,1)); |
492 |
|
493 |
btnLocalRefresh.setActionCommand("...");
|
494 |
btnLocalRefresh.setIcon(loadImage("common-refresh.png"));
|
495 |
btnLocalRefresh.setName("btnLocalRefresh");
|
496 |
btnLocalRefresh.setOpaque(false);
|
497 |
btnLocalRefresh.setRolloverEnabled(true);
|
498 |
btnLocalRefresh.setToolTipText("_Refresh");
|
499 |
EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2); |
500 |
btnLocalRefresh.setBorder(emptyborder4); |
501 |
jpanel1.add(btnLocalRefresh,cc.xy(4,1)); |
502 |
|
503 |
btnLocalCommit.setActionCommand("...");
|
504 |
btnLocalCommit.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-commit-all.png"));
|
505 |
btnLocalCommit.setName("btnLocalCommit");
|
506 |
btnLocalCommit.setOpaque(false);
|
507 |
btnLocalCommit.setRolloverEnabled(true);
|
508 |
btnLocalCommit.setToolTipText("_Upload");
|
509 |
EmptyBorder emptyborder5 = new EmptyBorder(2,2,2,2); |
510 |
btnLocalCommit.setBorder(emptyborder5); |
511 |
jpanel1.add(btnLocalCommit,cc.xy(8,1)); |
512 |
|
513 |
btnLocalRevert.setActionCommand("...");
|
514 |
btnLocalRevert.setEnabled(false);
|
515 |
btnLocalRevert.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-revert.png"));
|
516 |
btnLocalRevert.setName("btnLocalRevert");
|
517 |
btnLocalRevert.setOpaque(false);
|
518 |
btnLocalRevert.setRolloverEnabled(true);
|
519 |
btnLocalRevert.setToolTipText("_Revert");
|
520 |
EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2); |
521 |
btnLocalRevert.setBorder(emptyborder6); |
522 |
jpanel1.add(btnLocalRevert,cc.xy(6,1)); |
523 |
|
524 |
btnLocalZoom.setActionCommand("...");
|
525 |
btnLocalZoom.setEnabled(false);
|
526 |
btnLocalZoom.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-zoom-context.png"));
|
527 |
btnLocalZoom.setName("btnLocalZoom");
|
528 |
btnLocalZoom.setOpaque(false);
|
529 |
btnLocalZoom.setRolloverEnabled(true);
|
530 |
btnLocalZoom.setToolTipText("_Zoom");
|
531 |
EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2); |
532 |
btnLocalZoom.setBorder(emptyborder7); |
533 |
jpanel1.add(btnLocalZoom,cc.xy(14,1)); |
534 |
|
535 |
btnLocalCenter.setActionCommand("...");
|
536 |
btnLocalCenter.setEnabled(false);
|
537 |
btnLocalCenter.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-center-context.png"));
|
538 |
btnLocalCenter.setName("btnLocalCenter");
|
539 |
btnLocalCenter.setOpaque(false);
|
540 |
btnLocalCenter.setRolloverEnabled(true);
|
541 |
btnLocalCenter.setToolTipText("_Center");
|
542 |
EmptyBorder emptyborder8 = new EmptyBorder(2,2,2,2); |
543 |
btnLocalCenter.setBorder(emptyborder8); |
544 |
jpanel1.add(btnLocalCenter,cc.xy(12,1)); |
545 |
|
546 |
btnLocalCleanHighligthed.setActionCommand("...");
|
547 |
btnLocalCleanHighligthed.setEnabled(false);
|
548 |
btnLocalCleanHighligthed.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-clean-highlighted.png"));
|
549 |
btnLocalCleanHighligthed.setName("btnLocalCleanHighligthed");
|
550 |
btnLocalCleanHighligthed.setOpaque(false);
|
551 |
btnLocalCleanHighligthed.setRolloverEnabled(true);
|
552 |
btnLocalCleanHighligthed.setToolTipText("_Clean_highlighted");
|
553 |
EmptyBorder emptyborder9 = new EmptyBorder(2,2,2,2); |
554 |
btnLocalCleanHighligthed.setBorder(emptyborder9); |
555 |
jpanel1.add(btnLocalCleanHighligthed,cc.xy(16,1)); |
556 |
|
557 |
btnLocalHighlight.setActionCommand("...");
|
558 |
btnLocalHighlight.setEnabled(false);
|
559 |
btnLocalHighlight.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-highlight-context.png"));
|
560 |
btnLocalHighlight.setName("btnLocalHighlight");
|
561 |
btnLocalHighlight.setOpaque(false);
|
562 |
btnLocalHighlight.setRolloverEnabled(true);
|
563 |
btnLocalHighlight.setToolTipText("_Highlight");
|
564 |
EmptyBorder emptyborder10 = new EmptyBorder(2,2,2,2); |
565 |
btnLocalHighlight.setBorder(emptyborder10); |
566 |
jpanel1.add(btnLocalHighlight,cc.xy(10,1)); |
567 |
|
568 |
addFillComponents(jpanel1,new int[]{ 5,7,9,11,13,15,17 },new int[0]); |
569 |
return jpanel1;
|
570 |
} |
571 |
|
572 |
public JPanel createPanel6() |
573 |
{ |
574 |
JPanel jpanel1 = new JPanel(); |
575 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.2),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
576 |
CellConstraints cc = new CellConstraints();
|
577 |
jpanel1.setLayout(formlayout1); |
578 |
|
579 |
lblRemoteChangesCount.setName("lblRemoteChangesCount");
|
580 |
lblRemoteChangesCount.setText("0");
|
581 |
lblRemoteChangesCount.setHorizontalAlignment(JLabel.RIGHT);
|
582 |
jpanel1.add(lblRemoteChangesCount,cc.xy(2,4)); |
583 |
|
584 |
jpanel1.add(creategridRepository(),cc.xy(2,2)); |
585 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5 }); |
586 |
return jpanel1;
|
587 |
} |
588 |
|
589 |
public JPanel creategridRepository() |
590 |
{ |
591 |
gridRepository.setName("gridRepository");
|
592 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
593 |
CellConstraints cc = new CellConstraints();
|
594 |
gridRepository.setLayout(formlayout1); |
595 |
|
596 |
gridRepository.add(creategridRepositoryTable(),cc.xy(1,1)); |
597 |
addFillComponents(gridRepository,new int[]{ 1 },new int[]{ 1 }); |
598 |
return gridRepository;
|
599 |
} |
600 |
|
601 |
public JPanel creategridRepositoryTable() |
602 |
{ |
603 |
gridRepositoryTable.setName("gridRepositoryTable");
|
604 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); |
605 |
CellConstraints cc = new CellConstraints();
|
606 |
gridRepositoryTable.setLayout(formlayout1); |
607 |
|
608 |
tblRemoteChanges.setName("tblRemoteChanges");
|
609 |
JScrollPane jscrollpane1 = new JScrollPane(); |
610 |
jscrollpane1.setViewportView(tblRemoteChanges); |
611 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
612 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
613 |
gridRepositoryTable.add(jscrollpane1,cc.xy(1,2)); |
614 |
|
615 |
gridRepositoryTable.add(createPanel7(),cc.xy(1,1)); |
616 |
addFillComponents(gridRepositoryTable,new int[]{ 1 },new int[]{ 1 }); |
617 |
return gridRepositoryTable;
|
618 |
} |
619 |
|
620 |
public JPanel createPanel7() |
621 |
{ |
622 |
JPanel jpanel1 = new JPanel(); |
623 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
624 |
CellConstraints cc = new CellConstraints();
|
625 |
jpanel1.setLayout(formlayout1); |
626 |
|
627 |
btnRemoteShowForm.setActionCommand("...");
|
628 |
btnRemoteShowForm.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-showform.png"));
|
629 |
btnRemoteShowForm.setName("btnRemoteShowForm");
|
630 |
btnRemoteShowForm.setOpaque(false);
|
631 |
btnRemoteShowForm.setRolloverEnabled(true);
|
632 |
btnRemoteShowForm.setToolTipText("_Show_form");
|
633 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
634 |
btnRemoteShowForm.setBorder(emptyborder1); |
635 |
jpanel1.add(btnRemoteShowForm,cc.xy(23,1)); |
636 |
|
637 |
btnRemoteCheckAll.setActionCommand("...");
|
638 |
btnRemoteCheckAll.setEnabled(false);
|
639 |
btnRemoteCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-on.png"));
|
640 |
btnRemoteCheckAll.setName("btnRemoteCheckAll");
|
641 |
btnRemoteCheckAll.setOpaque(false);
|
642 |
btnRemoteCheckAll.setRolloverEnabled(true);
|
643 |
btnRemoteCheckAll.setToolTipText("_Select_all");
|
644 |
EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1); |
645 |
btnRemoteCheckAll.setBorder(emptyborder2); |
646 |
jpanel1.add(btnRemoteCheckAll,cc.xy(1,1)); |
647 |
|
648 |
btnRemoteUncheckAll.setActionCommand("...");
|
649 |
btnRemoteUncheckAll.setEnabled(false);
|
650 |
btnRemoteUncheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-off.png"));
|
651 |
btnRemoteUncheckAll.setName("btnRemoteUncheckAll");
|
652 |
btnRemoteUncheckAll.setOpaque(false);
|
653 |
btnRemoteUncheckAll.setRolloverEnabled(true);
|
654 |
btnRemoteUncheckAll.setToolTipText("_Unselect_all");
|
655 |
EmptyBorder emptyborder3 = new EmptyBorder(1,1,1,1); |
656 |
btnRemoteUncheckAll.setBorder(emptyborder3); |
657 |
jpanel1.add(btnRemoteUncheckAll,cc.xy(2,1)); |
658 |
|
659 |
btnRemoteCleanChanges.setActionCommand("...");
|
660 |
btnRemoteCleanChanges.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/common-remove.png"));
|
661 |
btnRemoteCleanChanges.setName("btnRemoteCleanChanges");
|
662 |
btnRemoteCleanChanges.setOpaque(false);
|
663 |
btnRemoteCleanChanges.setRolloverEnabled(true);
|
664 |
btnRemoteCleanChanges.setToolTipText("_Clean_remote_changes");
|
665 |
EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2); |
666 |
btnRemoteCleanChanges.setBorder(emptyborder4); |
667 |
jpanel1.add(btnRemoteCleanChanges,cc.xy(9,1)); |
668 |
|
669 |
btnRemoteMerge.setActionCommand("...");
|
670 |
btnRemoteMerge.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-merge.png"));
|
671 |
btnRemoteMerge.setName("btnRemoteMerge");
|
672 |
btnRemoteMerge.setOpaque(false);
|
673 |
btnRemoteMerge.setRolloverEnabled(true);
|
674 |
btnRemoteMerge.setToolTipText("_Merge_tables_with_remote_changes");
|
675 |
EmptyBorder emptyborder5 = new EmptyBorder(2,2,2,2); |
676 |
btnRemoteMerge.setBorder(emptyborder5); |
677 |
jpanel1.add(btnRemoteMerge,cc.xy(13,1)); |
678 |
|
679 |
btnRemoteUpdate.setActionCommand("...");
|
680 |
btnRemoteUpdate.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-update-all.png"));
|
681 |
btnRemoteUpdate.setName("btnRemoteUpdate");
|
682 |
btnRemoteUpdate.setOpaque(false);
|
683 |
btnRemoteUpdate.setRolloverEnabled(true);
|
684 |
btnRemoteUpdate.setToolTipText("_Update_tables_with_remote_changes");
|
685 |
EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2); |
686 |
btnRemoteUpdate.setBorder(emptyborder6); |
687 |
jpanel1.add(btnRemoteUpdate,cc.xy(11,1)); |
688 |
|
689 |
btnRemoteZoom.setActionCommand("...");
|
690 |
btnRemoteZoom.setEnabled(false);
|
691 |
btnRemoteZoom.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-zoom-context.png"));
|
692 |
btnRemoteZoom.setName("btnRemoteZoom");
|
693 |
btnRemoteZoom.setOpaque(false);
|
694 |
btnRemoteZoom.setRolloverEnabled(true);
|
695 |
btnRemoteZoom.setToolTipText("_Zoom");
|
696 |
EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2); |
697 |
btnRemoteZoom.setBorder(emptyborder7); |
698 |
jpanel1.add(btnRemoteZoom,cc.xy(19,1)); |
699 |
|
700 |
btnRemoteCenter.setActionCommand("...");
|
701 |
btnRemoteCenter.setEnabled(false);
|
702 |
btnRemoteCenter.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-center-context.png"));
|
703 |
btnRemoteCenter.setName("btnRemoteCenter");
|
704 |
btnRemoteCenter.setOpaque(false);
|
705 |
btnRemoteCenter.setRolloverEnabled(true);
|
706 |
btnRemoteCenter.setToolTipText("_Center");
|
707 |
EmptyBorder emptyborder8 = new EmptyBorder(2,2,2,2); |
708 |
btnRemoteCenter.setBorder(emptyborder8); |
709 |
jpanel1.add(btnRemoteCenter,cc.xy(17,1)); |
710 |
|
711 |
btnRemoteCleanHighligthed.setActionCommand("...");
|
712 |
btnRemoteCleanHighligthed.setEnabled(false);
|
713 |
btnRemoteCleanHighligthed.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-clean-highlighted.png"));
|
714 |
btnRemoteCleanHighligthed.setName("btnRemoteCleanHighligthed");
|
715 |
btnRemoteCleanHighligthed.setOpaque(false);
|
716 |
btnRemoteCleanHighligthed.setRolloverEnabled(true);
|
717 |
btnRemoteCleanHighligthed.setToolTipText("_Clean_highlighted");
|
718 |
EmptyBorder emptyborder9 = new EmptyBorder(2,2,2,2); |
719 |
btnRemoteCleanHighligthed.setBorder(emptyborder9); |
720 |
jpanel1.add(btnRemoteCleanHighligthed,cc.xy(21,1)); |
721 |
|
722 |
btnRemoteHighlight.setActionCommand("...");
|
723 |
btnRemoteHighlight.setEnabled(false);
|
724 |
btnRemoteHighlight.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-highlight-context.png"));
|
725 |
btnRemoteHighlight.setName("btnRemoteHighlight");
|
726 |
btnRemoteHighlight.setOpaque(false);
|
727 |
btnRemoteHighlight.setRolloverEnabled(true);
|
728 |
btnRemoteHighlight.setToolTipText("_Highlight");
|
729 |
EmptyBorder emptyborder10 = new EmptyBorder(2,2,2,2); |
730 |
btnRemoteHighlight.setBorder(emptyborder10); |
731 |
jpanel1.add(btnRemoteHighlight,cc.xy(15,1)); |
732 |
|
733 |
btnRemoteReloadChanges.setActionCommand("...");
|
734 |
btnRemoteReloadChanges.setIcon(loadImage("common-refresh.png"));
|
735 |
btnRemoteReloadChanges.setName("btnRemoteReloadChanges");
|
736 |
btnRemoteReloadChanges.setOpaque(false);
|
737 |
btnRemoteReloadChanges.setRolloverEnabled(true);
|
738 |
btnRemoteReloadChanges.setToolTipText("_Refresh");
|
739 |
EmptyBorder emptyborder11 = new EmptyBorder(2,2,2,2); |
740 |
btnRemoteReloadChanges.setBorder(emptyborder11); |
741 |
jpanel1.add(btnRemoteReloadChanges,cc.xy(7,1)); |
742 |
|
743 |
addFillComponents(jpanel1,new int[]{ 3,4,5,6,8,10,12,14,16,18,20,22 },new int[0]); |
744 |
return jpanel1;
|
745 |
} |
746 |
|
747 |
public JPanel createPanel8() |
748 |
{ |
749 |
JPanel jpanel1 = new JPanel(); |
750 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
751 |
CellConstraints cc = new CellConstraints();
|
752 |
jpanel1.setLayout(formlayout1); |
753 |
|
754 |
txtWorkingAreaLabel.setName("txtWorkingAreaLabel");
|
755 |
jpanel1.add(txtWorkingAreaLabel,cc.xy(1,1)); |
756 |
|
757 |
txtWorkingArea.setName("txtWorkingArea");
|
758 |
jpanel1.add(txtWorkingArea,cc.xy(1,3)); |
759 |
|
760 |
btnWorkingAreaFromView.setActionCommand("...");
|
761 |
btnWorkingAreaFromView.setIcon(loadImage("org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/picker-envelope-from-mapcontrol.png"));
|
762 |
btnWorkingAreaFromView.setName("btnWorkingAreaFromView");
|
763 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
764 |
btnWorkingAreaFromView.setBorder(emptyborder1); |
765 |
jpanel1.add(btnWorkingAreaFromView,cc.xy(3,3)); |
766 |
|
767 |
btnWorkingAreaDialog.setActionCommand("...");
|
768 |
btnWorkingAreaDialog.setIcon(loadImage("addons/onlinecaptures/images/picker-envelope-from-mapcontrol.png"));
|
769 |
btnWorkingAreaDialog.setName("btnWorkingAreaDialog");
|
770 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
771 |
btnWorkingAreaDialog.setBorder(emptyborder2); |
772 |
jpanel1.add(btnWorkingAreaDialog,cc.xy(5,3)); |
773 |
|
774 |
btnWorkingAreaBookmarks.setActionCommand("...");
|
775 |
btnWorkingAreaBookmarks.setName("btnWorkingAreaBookmarks");
|
776 |
btnWorkingAreaBookmarks.setText("...");
|
777 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
778 |
btnWorkingAreaBookmarks.setBorder(emptyborder3); |
779 |
jpanel1.add(btnWorkingAreaBookmarks,cc.xy(5,1)); |
780 |
|
781 |
btnWorkingAreaHistory.setActionCommand("...");
|
782 |
btnWorkingAreaHistory.setName("btnWorkingAreaHistory");
|
783 |
btnWorkingAreaHistory.setText("...");
|
784 |
EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2); |
785 |
btnWorkingAreaHistory.setBorder(emptyborder4); |
786 |
jpanel1.add(btnWorkingAreaHistory,cc.xy(3,1)); |
787 |
|
788 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 }); |
789 |
return jpanel1;
|
790 |
} |
791 |
|
792 |
/**
|
793 |
* Initializer
|
794 |
*/
|
795 |
protected void initializePanel() |
796 |
{ |
797 |
setLayout(new BorderLayout()); |
798 |
add(createPanel(), BorderLayout.CENTER);
|
799 |
} |
800 |
|
801 |
|
802 |
} |