Revision 8379
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.102/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Mon May 22 23:40:44 CEST 2023 |
|
2 |
buildNumber=113 |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.102/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/java/org/gvsig/vcsgis/app/VCSGisDialogsHelper.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
|
|
23 |
package org.gvsig.vcsgis.app; |
|
24 |
|
|
25 |
import java.awt.event.ActionEvent; |
|
26 |
import java.awt.event.ComponentAdapter; |
|
27 |
import java.awt.event.ComponentEvent; |
|
28 |
import java.util.HashMap; |
|
29 |
import java.util.Map; |
|
30 |
import javax.swing.JPanel; |
|
31 |
import javax.swing.SwingUtilities; |
|
32 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
33 |
import org.gvsig.andami.ui.mdiManager.MDIManager; |
|
34 |
import org.gvsig.app.ApplicationLocator; |
|
35 |
import org.gvsig.tools.ToolsLocator; |
|
36 |
import org.gvsig.tools.i18n.I18nManager; |
|
37 |
import org.gvsig.tools.swing.api.Component; |
|
38 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
39 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
40 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
|
41 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2; |
|
42 |
import org.gvsig.vcsgis.swing.VCSGisPanel; |
|
43 |
import org.slf4j.Logger; |
|
44 |
import org.slf4j.LoggerFactory; |
|
45 |
|
|
46 |
/** |
|
47 |
* |
|
48 |
* @author gvSIG Team |
|
49 |
*/ |
|
50 |
public class VCSGisDialogsHelper { |
|
51 |
private static final Logger LOGGER = LoggerFactory.getLogger(VCSGisDialogsHelper.class); |
|
52 |
|
|
53 |
public static class VCSGisDialogInfo { |
|
54 |
|
|
55 |
private VCSGisPanel panel; |
|
56 |
private final String name; |
|
57 |
private final String title; |
|
58 |
private String header; |
|
59 |
private String okLabel; |
|
60 |
private boolean closed; |
|
61 |
private Runnable action; |
|
62 |
private Dialog dialog; |
|
63 |
private boolean autoclose; |
|
64 |
|
|
65 |
public VCSGisDialogInfo(String name, VCSGisPanel thePanel, String title) { |
|
66 |
this.name = name; |
|
67 |
this.panel = thePanel; |
|
68 |
this.title = title; |
|
69 |
this.closed = true; |
|
70 |
this.autoclose = false; |
|
71 |
|
|
72 |
this.panel.asJComponent().addComponentListener(new ComponentAdapter() { |
|
73 |
@Override |
|
74 |
public void componentHidden(ComponentEvent e) { |
|
75 |
closed = true; |
|
76 |
} |
|
77 |
}); |
|
78 |
} |
|
79 |
|
|
80 |
public VCSGisDialogInfo(String name, VCSGisPanel thePanel, String title, String header, String okLabel) { |
|
81 |
this(name, thePanel, title); |
|
82 |
this.header = header; |
|
83 |
this.okLabel = okLabel; |
|
84 |
} |
|
85 |
|
|
86 |
private void performDialogAction() { |
|
87 |
action.run(); |
|
88 |
} |
|
89 |
|
|
90 |
public void setAction(Runnable action) { |
|
91 |
this.action = action; |
|
92 |
} |
|
93 |
|
|
94 |
public Component getPanel() { |
|
95 |
return this.panel; |
|
96 |
} |
|
97 |
|
|
98 |
public boolean isClosed() { |
|
99 |
return this.closed; |
|
100 |
} |
|
101 |
|
|
102 |
public String getName() { |
|
103 |
return this.name; |
|
104 |
} |
|
105 |
|
|
106 |
public void setAutoclose(boolean autoclose) { |
|
107 |
this.autoclose = autoclose; |
|
108 |
} |
|
109 |
|
|
110 |
private Dialog createDialog() { |
|
111 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
112 |
WindowManager_v2 winManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
|
113 |
|
|
114 |
Dialog theDialog = winManager.createDialog( |
|
115 |
this.panel.asJComponent(), |
|
116 |
i18n.getTranslation(title), |
|
117 |
i18n.getTranslation(header), |
|
118 |
WindowManager_v2.BUTTONS_OK_CANCEL |
|
119 |
); |
|
120 |
theDialog.setAutoclose(false); |
|
121 |
|
|
122 |
this.panel.setDialog(theDialog); |
|
123 |
theDialog.setButtonLabel( |
|
124 |
WindowManager_v2.BUTTON_OK, |
|
125 |
i18n.getTranslation(okLabel) |
|
126 |
); |
|
127 |
theDialog.setButtonLabel( |
|
128 |
WindowManager_v2.BUTTON_CANCEL, |
|
129 |
i18n.getTranslation("_Close") |
|
130 |
); |
|
131 |
if (this.panel.isProcessing()) { |
|
132 |
theDialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, false); |
|
133 |
} |
|
134 |
theDialog.addActionListener((ActionEvent e) -> { |
|
135 |
switch (theDialog.getAction()) { |
|
136 |
case WindowManager_v2.BUTTON_OK: |
|
137 |
Thread task = new Thread(() -> { |
|
138 |
if(this.autoclose){ |
|
139 |
this.dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, false); |
|
140 |
} |
|
141 |
performDialogAction(); |
|
142 |
if(this.autoclose){ |
|
143 |
close(); |
|
144 |
} |
|
145 |
}, "VCSGis" + name); |
|
146 |
task.start(); |
|
147 |
break; |
|
148 |
case WindowManager_v2.BUTTON_CANCEL: |
|
149 |
close(); |
|
150 |
break; |
|
151 |
} |
|
152 |
}); |
|
153 |
return theDialog; |
|
154 |
} |
|
155 |
|
|
156 |
public void show() { |
|
157 |
show(null); |
|
158 |
} |
|
159 |
|
|
160 |
public void show(Map<String,Object> props) { |
|
161 |
if (!this.closed) { |
|
162 |
MDIManager manager = ApplicationLocator.getApplicationManager().getUIManager(); |
|
163 |
manager.moveToFrom(manager.getWindow((JPanel) this.panel.asJComponent())); |
|
164 |
return; |
|
165 |
} |
|
166 |
this.closed = false; |
|
167 |
if( this.action==null ) { |
|
168 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
169 |
WindowManager_v2 winManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
|
170 |
winManager.showWindow( |
|
171 |
this.panel.asJComponent(), |
|
172 |
i18n.getTranslation(this.title), |
|
173 |
WindowManager.MODE.WINDOW, |
|
174 |
props |
|
175 |
); |
|
176 |
} else { |
|
177 |
this.dialog = this.createDialog(); |
|
178 |
this.dialog.show(WindowManager.MODE.WINDOW, props); |
|
179 |
} |
|
180 |
} |
|
181 |
|
|
182 |
private void close() { |
|
183 |
if (this.closed || this.dialog == null) { |
|
184 |
this.panel = null; |
|
185 |
this.dialog = null; |
|
186 |
return; |
|
187 |
} |
|
188 |
if(!SwingUtilities.isEventDispatchThread()){ |
|
189 |
SwingUtilities.invokeLater(this::close); |
|
190 |
return; |
|
191 |
} |
|
192 |
this.dialog.asJComponent().setVisible(false); |
|
193 |
this.panel = null; |
|
194 |
this.dialog = null; |
|
195 |
} |
|
196 |
} |
|
197 |
|
|
198 |
private Map<String, VCSGisDialogInfo> dialogsInfo; |
|
199 |
|
|
200 |
public VCSGisDialogInfo getDialog(String name) { |
|
201 |
if (this.dialogsInfo == null) { |
|
202 |
return null; |
|
203 |
} |
|
204 |
VCSGisDialogInfo info = this.dialogsInfo.get(name); |
|
205 |
return info; |
|
206 |
} |
|
207 |
|
|
208 |
public VCSGisDialogInfo getOrCreateDialog(String name, VCSGisPanel panel, String title, String header, String okLabel, Runnable action) { |
|
209 |
if (this.dialogsInfo == null) { |
|
210 |
this.dialogsInfo = new HashMap<>(); |
|
211 |
} |
|
212 |
VCSGisDialogInfo info = this.dialogsInfo.get(name); |
|
213 |
if (info == null || info.isClosed() ) { |
|
214 |
info = new VCSGisDialogInfo(name, panel, title, header, okLabel); |
|
215 |
info.setAction(action); |
|
216 |
this.dialogsInfo.put(name, info); |
|
217 |
} |
|
218 |
return info; |
|
219 |
} |
|
220 |
|
|
221 |
public VCSGisDialogInfo getOrCreateDialog(String name, VCSGisPanel panel, String title) { |
|
222 |
if (this.dialogsInfo == null) { |
|
223 |
this.dialogsInfo = new HashMap<>(); |
|
224 |
} |
|
225 |
VCSGisDialogInfo info = this.dialogsInfo.get(name); |
|
226 |
if (info == null || info.isClosed()) { |
|
227 |
info = new VCSGisDialogInfo(name, panel, title); |
|
228 |
this.dialogsInfo.put(name, info); |
|
229 |
} |
|
230 |
return info; |
|
231 |
} |
|
232 |
|
|
233 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.102/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/java/org/gvsig/vcsgis/app/preferencespages/VCSGisPage.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.vcsgis.app.preferencespages; |
|
7 |
|
|
8 |
import com.jgoodies.forms.layout.CellConstraints; |
|
9 |
import javax.swing.DefaultComboBoxModel; |
|
10 |
import javax.swing.ImageIcon; |
|
11 |
import javax.swing.JPanel; |
|
12 |
import org.gvsig.andami.IconThemeHelper; |
|
13 |
import org.gvsig.andami.preferences.IPreference; |
|
14 |
import org.gvsig.andami.preferences.StoreException; |
|
15 |
import org.gvsig.fmap.dal.swing.featuretype.FeatureTypePanel; |
|
16 |
import org.gvsig.tools.ToolsLocator; |
|
17 |
import org.gvsig.tools.i18n.I18nManager; |
|
18 |
import org.gvsig.tools.swing.api.ListElement; |
|
19 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
20 |
import org.gvsig.tools.swing.api.ToolsSwingManager; |
|
21 |
import org.gvsig.tools.util.LabeledValue; |
|
22 |
import org.gvsig.tools.util.LabeledValueImpl; |
|
23 |
import org.gvsig.vcsgis.swing.VCSGisJRegisterWorkspace; |
|
24 |
import org.gvsig.vcsgis.swing.VCSGisSwingLocator; |
|
25 |
import org.gvsig.vcsgis.swing.VCSGisSwingManager; |
|
26 |
|
|
27 |
/** |
|
28 |
* |
|
29 |
* @author jjdelcerro |
|
30 |
*/ |
|
31 |
public class VCSGisPage extends VCSGisPageView implements IPreference { |
|
32 |
// |
|
33 |
// The class VCSGisPage can extend from AbstractPreferencePage, not JPanel, |
|
34 |
// if recreate it from the GUI builder change te class declaration to: |
|
35 |
// public abstract class VCSGisPageView extends AbstractPreferencePage |
|
36 |
|
|
37 |
private ImageIcon icon; |
|
38 |
public static String id = VCSGisPage.class.getName(); |
|
39 |
|
|
40 |
public VCSGisPage() { |
|
41 |
setParentID("org.gvsig.coreplugin.preferences.general.GeneralPage"); |
|
42 |
icon = IconThemeHelper.getImageIcon("vcsgis-preferences"); |
|
43 |
initComponents(); |
|
44 |
} |
|
45 |
|
|
46 |
private void initComponents() { |
|
47 |
VCSGisSwingManager swingManager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
48 |
|
|
49 |
this.translateAll(); |
|
50 |
|
|
51 |
VCSGisJRegisterWorkspace workspacesPanel = swingManager.createRegisterWorkspacePanel(); |
|
52 |
CellConstraints cc = new CellConstraints(); |
|
53 |
this.gridWorkspaces.add(workspacesPanel.asJComponent(),cc.xy(1,1)); |
|
54 |
DefaultComboBoxModel<LabeledValue<Integer>> model = new DefaultComboBoxModel(); |
|
55 |
model.addElement(new LabeledValueImpl<>("Edit only metadata", FeatureTypePanel.MODE_EDIT_ONLY_METADATA)); |
|
56 |
model.addElement(new LabeledValueImpl<>("Edit all", FeatureTypePanel.MODE_EDIT_ALL)); |
|
57 |
model.addElement(new LabeledValueImpl<>("Show only", FeatureTypePanel.MODE_SHOW_ONLY)); |
|
58 |
|
|
59 |
this.cboRepositoryEntityFeatureTypeEditorMode.setModel(model); |
|
60 |
|
|
61 |
} |
|
62 |
|
|
63 |
private void translateAll() { |
|
64 |
ToolsSwingManager manager = ToolsSwingLocator.getToolsSwingManager(); |
|
65 |
|
|
66 |
manager.translate(tabPreferences); |
|
67 |
manager.translate(chkCurrentDateAsEffectiveDateByDefaultInCommitPanel); |
|
68 |
manager.translate(chkEmptyEffectiveDateAllowedInCommitPanel); |
|
69 |
manager.translate(lblAdvanced); |
|
70 |
manager.translate(lblChangesPanel); |
|
71 |
manager.translate(lblRepositoryEntityFeatureTypeEditorMode); |
|
72 |
} |
|
73 |
|
|
74 |
@Override |
|
75 |
public void storeValues() throws StoreException { |
|
76 |
VCSGisSwingManager swingManager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
77 |
swingManager.setEmptyEffectiveDateAllowed(this.chkEmptyEffectiveDateAllowedInCommitPanel.isSelected()); |
|
78 |
swingManager.setCurrentDateAsEffectiveDateByDefault(this.chkCurrentDateAsEffectiveDateByDefaultInCommitPanel.isSelected()); |
|
79 |
LabeledValue<Integer> selectedMode = (LabeledValue<Integer>)this.cboRepositoryEntityFeatureTypeEditorMode.getSelectedItem(); |
|
80 |
if(selectedMode != null){ |
|
81 |
swingManager.setRepositoryEntityFeatureTypeEditorMode(selectedMode.getValue()); |
|
82 |
|
|
83 |
} |
|
84 |
} |
|
85 |
|
|
86 |
@Override |
|
87 |
public void setChangesApplied() { |
|
88 |
} |
|
89 |
|
|
90 |
@Override |
|
91 |
public String getID() { |
|
92 |
return id; |
|
93 |
} |
|
94 |
|
|
95 |
@Override |
|
96 |
public String getTitle() { |
|
97 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
98 |
return i18nManager.getTranslation("_VCSGis"); |
|
99 |
} |
|
100 |
|
|
101 |
@Override |
|
102 |
public JPanel getPanel() { |
|
103 |
return this; |
|
104 |
} |
|
105 |
|
|
106 |
@Override |
|
107 |
public void initializeValues() { |
|
108 |
VCSGisSwingManager swingManager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
109 |
this.chkEmptyEffectiveDateAllowedInCommitPanel.setSelected(swingManager.getEmptyEffectiveDateAllowed()); |
|
110 |
this.chkCurrentDateAsEffectiveDateByDefaultInCommitPanel.setSelected(swingManager.getCurrentDateAsEffectiveDateByDefault()); |
|
111 |
ListElement.setSelected(cboRepositoryEntityFeatureTypeEditorMode, swingManager.getRepositoryEntityFeatureTypeEditorMode()); |
|
112 |
} |
|
113 |
|
|
114 |
@Override |
|
115 |
public void initializeDefaults() { |
|
116 |
} |
|
117 |
|
|
118 |
@Override |
|
119 |
public ImageIcon getIcon() { |
|
120 |
return this.icon; |
|
121 |
} |
|
122 |
|
|
123 |
@Override |
|
124 |
public boolean isValueChanged() { |
|
125 |
return true; |
|
126 |
} |
|
127 |
|
|
128 |
@Override |
|
129 |
public boolean isResizeable() { |
|
130 |
return true; |
|
131 |
} |
|
132 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.102/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/java/org/gvsig/vcsgis/app/preferencespages/VCSGisPageView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/fdiaz/projects/gvSIG/org.gvsig.vcsgis/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/java/org/gvsig/vcsgis/app/preferencespages/VCSGisPageView.xml</at> |
|
28 |
<at name="rowspecs">CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">1</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.FormContainerComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">javax.swing.JTabbedPane</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">javax.swing.JTabbedPane</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="border"> |
|
57 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
58 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
59 |
<at name="name">border</at> |
|
60 |
</super> |
|
61 |
<at name="borders"> |
|
62 |
<object classname="java.util.LinkedList"> |
|
63 |
<item > |
|
64 |
<at name="value"> |
|
65 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
66 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
67 |
<at name="name">border</at> |
|
68 |
</super> |
|
69 |
</object> |
|
70 |
</at> |
|
71 |
</item> |
|
72 |
</object> |
|
73 |
</at> |
|
74 |
</object> |
|
75 |
</at> |
|
76 |
<at name="componentCount">2</at> |
|
77 |
<at name="name">tabPreferences</at> |
|
78 |
<at name="tabs"> |
|
79 |
<object classname="com.jeta.forms.store.properties.TabbedPaneProperties"> |
|
80 |
<at name="name">tabs</at> |
|
81 |
<at name="items"> |
|
82 |
<object classname="java.util.LinkedList"> |
|
83 |
<item > |
|
84 |
<at name="value"> |
|
85 |
<object classname="com.jeta.forms.store.properties.TabProperty"> |
|
86 |
<at name="name">tab</at> |
|
87 |
<at name="title">_General</at> |
|
88 |
<at name="icon"> |
|
89 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
90 |
<at name="embedded">false</at> |
|
91 |
<at name="width">0</at> |
|
92 |
<at name="height">0</at> |
|
93 |
</object> |
|
94 |
</at> |
|
95 |
<at name="form"> |
|
96 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
97 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
98 |
<at name="cellconstraints"> |
|
99 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
100 |
<at name="column">1</at> |
|
101 |
<at name="row">1</at> |
|
102 |
<at name="colspan">1</at> |
|
103 |
<at name="rowspan">1</at> |
|
104 |
<at name="halign">default</at> |
|
105 |
<at name="valign">default</at> |
|
106 |
<at name="insets" object="insets">0,0,0,0</at> |
|
107 |
</object> |
|
108 |
</at> |
|
109 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
110 |
</super> |
|
111 |
<at name="id">embedded.739377025</at> |
|
112 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
113 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
114 |
<at name="components"> |
|
115 |
<object classname="java.util.LinkedList"> |
|
116 |
<item > |
|
117 |
<at name="value"> |
|
118 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
119 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
120 |
<at name="cellconstraints"> |
|
121 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
122 |
<at name="column">2</at> |
|
123 |
<at name="row">4</at> |
|
124 |
<at name="colspan">1</at> |
|
125 |
<at name="rowspan">1</at> |
|
126 |
<at name="halign">default</at> |
|
127 |
<at name="valign">default</at> |
|
128 |
<at name="insets" object="insets">0,0,0,0</at> |
|
129 |
</object> |
|
130 |
</at> |
|
131 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
132 |
</super> |
|
133 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
134 |
<at name="beanclass">javax.swing.JCheckBox</at> |
|
135 |
<at name="beanproperties"> |
|
136 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
137 |
<at name="classname">javax.swing.JCheckBox</at> |
|
138 |
<at name="properties"> |
|
139 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
140 |
<at name="border"> |
|
141 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
142 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
143 |
<at name="name">border</at> |
|
144 |
</super> |
|
145 |
<at name="borders"> |
|
146 |
<object classname="java.util.LinkedList"> |
|
147 |
<item > |
|
148 |
<at name="value"> |
|
149 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
150 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
151 |
<at name="name">border</at> |
|
152 |
</super> |
|
153 |
</object> |
|
154 |
</at> |
|
155 |
</item> |
|
156 |
</object> |
|
157 |
</at> |
|
158 |
</object> |
|
159 |
</at> |
|
160 |
<at name="actionCommand">_Use_of_empty_effective_date_is_allowed</at> |
|
161 |
<at name="name">chkEmptyEffectiveDateAllowedInCommitPanel</at> |
|
162 |
<at name="width">1072</at> |
|
163 |
<at name="text">_Use_of_empty_effective_date_is_allowed</at> |
|
164 |
<at name="height">22</at> |
|
165 |
</object> |
|
166 |
</at> |
|
167 |
</object> |
|
168 |
</at> |
|
169 |
</object> |
|
170 |
</at> |
|
171 |
</item> |
|
172 |
<item > |
|
173 |
<at name="value"> |
|
174 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
175 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
176 |
<at name="cellconstraints"> |
|
177 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
178 |
<at name="column">2</at> |
|
179 |
<at name="row">6</at> |
|
180 |
<at name="colspan">1</at> |
|
181 |
<at name="rowspan">1</at> |
|
182 |
<at name="halign">default</at> |
|
183 |
<at name="valign">default</at> |
|
184 |
<at name="insets" object="insets">0,0,0,0</at> |
|
185 |
</object> |
|
186 |
</at> |
|
187 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
188 |
</super> |
|
189 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
190 |
<at name="beanclass">javax.swing.JCheckBox</at> |
|
191 |
<at name="beanproperties"> |
|
192 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
193 |
<at name="classname">javax.swing.JCheckBox</at> |
|
194 |
<at name="properties"> |
|
195 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
196 |
<at name="border"> |
|
197 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
198 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
199 |
<at name="name">border</at> |
|
200 |
</super> |
|
201 |
<at name="borders"> |
|
202 |
<object classname="java.util.LinkedList"> |
|
203 |
<item > |
|
204 |
<at name="value"> |
|
205 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
206 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
207 |
<at name="name">border</at> |
|
208 |
</super> |
|
209 |
</object> |
|
210 |
</at> |
|
211 |
</item> |
|
212 |
</object> |
|
213 |
</at> |
|
214 |
</object> |
|
215 |
</at> |
|
216 |
<at name="actionCommand">_Use_current_date_as_effective_date_by_default</at> |
|
217 |
<at name="name">chkCurrentDateAsEffectiveDateByDefaultInCommitPanel</at> |
|
218 |
<at name="width">1072</at> |
|
219 |
<at name="text">_Use_current_date_as_effective_date_by_default</at> |
|
220 |
<at name="height">22</at> |
|
221 |
</object> |
|
222 |
</at> |
|
223 |
</object> |
|
224 |
</at> |
|
225 |
</object> |
|
226 |
</at> |
|
227 |
</item> |
|
228 |
<item > |
|
229 |
<at name="value"> |
|
230 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
231 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
232 |
<at name="cellconstraints"> |
|
233 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
234 |
<at name="column">2</at> |
|
235 |
<at name="row">2</at> |
|
236 |
<at name="colspan">1</at> |
|
237 |
<at name="rowspan">1</at> |
|
238 |
<at name="halign">default</at> |
|
239 |
<at name="valign">default</at> |
|
240 |
<at name="insets" object="insets">0,0,0,0</at> |
|
241 |
</object> |
|
242 |
</at> |
|
243 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
244 |
</super> |
|
245 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
246 |
<at name="beanclass">com.jeta.forms.components.separator.TitledSeparator</at> |
|
247 |
<at name="beanproperties"> |
|
248 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
249 |
<at name="classname">com.jeta.forms.components.separator.TitledSeparator</at> |
|
250 |
<at name="properties"> |
|
251 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
252 |
<at name="border"> |
|
253 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
254 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
255 |
<at name="name">border</at> |
|
256 |
</super> |
|
257 |
<at name="borders"> |
|
258 |
<object classname="java.util.LinkedList"> |
|
259 |
<item > |
|
260 |
<at name="value"> |
|
261 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
262 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
263 |
<at name="name">border</at> |
|
264 |
</super> |
|
265 |
</object> |
|
266 |
</at> |
|
267 |
</item> |
|
268 |
</object> |
|
269 |
</at> |
|
270 |
</object> |
|
271 |
</at> |
|
272 |
<at name="name">lblChangesPanel</at> |
|
273 |
<at name="width">1072</at> |
|
274 |
<at name="text">_Changes_panel</at> |
|
275 |
<at name="height">17</at> |
|
276 |
</object> |
|
277 |
</at> |
|
278 |
</object> |
|
279 |
</at> |
|
280 |
</object> |
|
281 |
</at> |
|
282 |
</item> |
|
283 |
<item > |
|
284 |
<at name="value"> |
|
285 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
286 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
287 |
<at name="cellconstraints"> |
|
288 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
289 |
<at name="column">2</at> |
|
290 |
<at name="row">8</at> |
|
291 |
<at name="colspan">1</at> |
|
292 |
<at name="rowspan">1</at> |
|
293 |
<at name="halign">default</at> |
|
294 |
<at name="valign">default</at> |
|
295 |
<at name="insets" object="insets">0,0,0,0</at> |
|
296 |
</object> |
|
297 |
</at> |
|
298 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
299 |
</super> |
|
300 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
301 |
<at name="beanclass">com.jeta.forms.components.separator.TitledSeparator</at> |
|
302 |
<at name="beanproperties"> |
|
303 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
304 |
<at name="classname">com.jeta.forms.components.separator.TitledSeparator</at> |
|
305 |
<at name="properties"> |
|
306 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
307 |
<at name="border"> |
|
308 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
309 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
310 |
<at name="name">border</at> |
|
311 |
</super> |
|
312 |
<at name="borders"> |
|
313 |
<object classname="java.util.LinkedList"> |
|
314 |
<item > |
|
315 |
<at name="value"> |
|
316 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
317 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
318 |
<at name="name">border</at> |
|
319 |
</super> |
|
320 |
</object> |
|
321 |
</at> |
|
322 |
</item> |
|
323 |
</object> |
|
324 |
</at> |
|
325 |
</object> |
|
326 |
</at> |
|
327 |
<at name="name">lblAdvanced</at> |
|
328 |
<at name="width">1072</at> |
|
329 |
<at name="text">_Advanced</at> |
|
330 |
<at name="height">17</at> |
|
331 |
</object> |
|
332 |
</at> |
|
333 |
</object> |
|
334 |
</at> |
|
335 |
</object> |
|
336 |
</at> |
|
337 |
</item> |
|
338 |
<item > |
|
339 |
<at name="value"> |
|
340 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
341 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
342 |
<at name="cellconstraints"> |
|
343 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
344 |
<at name="column">2</at> |
|
345 |
<at name="row">10</at> |
|
346 |
<at name="colspan">1</at> |
|
347 |
<at name="rowspan">1</at> |
|
348 |
<at name="halign">default</at> |
|
349 |
<at name="valign">default</at> |
|
350 |
<at name="insets" object="insets">0,0,0,0</at> |
|
351 |
</object> |
|
352 |
</at> |
|
353 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
354 |
</super> |
|
355 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
356 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
357 |
<at name="beanproperties"> |
|
358 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
359 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
360 |
<at name="properties"> |
|
361 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
362 |
<at name="border"> |
|
363 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
364 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
365 |
<at name="name">border</at> |
|
366 |
</super> |
|
367 |
<at name="borders"> |
|
368 |
<object classname="java.util.LinkedList"> |
|
369 |
<item > |
|
370 |
<at name="value"> |
|
371 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
372 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
373 |
<at name="name">border</at> |
|
374 |
</super> |
|
375 |
</object> |
|
376 |
</at> |
|
377 |
</item> |
|
378 |
</object> |
|
379 |
</at> |
|
380 |
</object> |
|
381 |
</at> |
|
382 |
<at name="name">lblRepositoryEntityFeatureTypeEditorMode</at> |
|
383 |
<at name="width">1072</at> |
|
384 |
<at name="text">_VCS_Repository_entity_feature_type_editor_mode</at> |
|
385 |
<at name="fill"> |
|
386 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
387 |
<at name="name">fill</at> |
|
388 |
</object> |
|
389 |
</at> |
|
390 |
<at name="height">17</at> |
|
391 |
</object> |
|
392 |
</at> |
|
393 |
</object> |
|
394 |
</at> |
|
395 |
</object> |
|
396 |
</at> |
|
397 |
</item> |
|
398 |
<item > |
|
399 |
<at name="value"> |
|
400 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
401 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
402 |
<at name="cellconstraints"> |
|
403 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
404 |
<at name="column">2</at> |
|
405 |
<at name="row">12</at> |
|
406 |
<at name="colspan">1</at> |
|
407 |
<at name="rowspan">1</at> |
|
408 |
<at name="halign">default</at> |
|
409 |
<at name="valign">default</at> |
|
410 |
<at name="insets" object="insets">0,0,0,0</at> |
|
411 |
</object> |
|
412 |
</at> |
|
413 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
414 |
</super> |
|
415 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
416 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
417 |
<at name="beanproperties"> |
|
418 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
419 |
<at name="classname">javax.swing.JComboBox</at> |
|
420 |
<at name="properties"> |
|
421 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
422 |
<at name="border"> |
|
423 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
424 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
425 |
<at name="name">border</at> |
|
426 |
</super> |
|
427 |
<at name="borders"> |
|
428 |
<object classname="java.util.LinkedList"> |
|
429 |
<item > |
|
430 |
<at name="value"> |
|
431 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
432 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
433 |
<at name="name">border</at> |
|
434 |
</super> |
|
435 |
</object> |
|
436 |
</at> |
|
437 |
</item> |
|
438 |
</object> |
|
439 |
</at> |
|
440 |
</object> |
|
441 |
</at> |
|
442 |
<at name="name">cboRepositoryEntityFeatureTypeEditorMode</at> |
|
443 |
<at name="width">1072</at> |
|
444 |
<at name="items"> |
|
445 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
446 |
<at name="name">items</at> |
|
447 |
</object> |
|
448 |
</at> |
|
449 |
<at name="height">23</at> |
|
450 |
</object> |
|
451 |
</at> |
|
452 |
</object> |
|
453 |
</at> |
|
454 |
</object> |
|
455 |
</at> |
|
456 |
</item> |
|
457 |
</object> |
|
458 |
</at> |
|
459 |
<at name="properties"> |
|
460 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
461 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
462 |
<at name="properties"> |
|
463 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
464 |
<at name="border"> |
|
465 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
466 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
467 |
<at name="name">border</at> |
|
468 |
</super> |
|
469 |
<at name="borders"> |
|
470 |
<object classname="java.util.LinkedList"/> |
|
471 |
</at> |
|
472 |
</object> |
|
473 |
</at> |
|
474 |
<at name="name">tabPreferences</at> |
|
475 |
<at name="fill"> |
|
476 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
477 |
<at name="name">fill</at> |
|
478 |
</object> |
|
479 |
</at> |
|
480 |
<at name="scollBars"> |
|
481 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
482 |
<at name="name">scollBars</at> |
|
483 |
<at name="verticalpolicy">21</at> |
|
484 |
<at name="horizontalpolicy">31</at> |
|
485 |
<at name="border"> |
|
486 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
487 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
488 |
<at name="name">border</at> |
|
489 |
</super> |
|
490 |
<at name="borders"> |
|
491 |
<object classname="java.util.LinkedList"> |
|
492 |
<item > |
|
493 |
<at name="value"> |
|
494 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
495 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
496 |
<at name="name">border</at> |
|
497 |
</super> |
|
498 |
</object> |
|
499 |
</at> |
|
500 |
</item> |
|
501 |
</object> |
|
502 |
</at> |
|
503 |
</object> |
|
504 |
</at> |
|
505 |
</object> |
|
506 |
</at> |
|
507 |
</object> |
|
508 |
</at> |
|
509 |
</object> |
|
510 |
</at> |
|
511 |
<at name="cellpainters"> |
|
512 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
513 |
<at name="rows"> |
|
514 |
<object classname="[Ljava.lang.Object;" size="13"> |
|
515 |
<at name="item" index="0"> |
|
516 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
517 |
</at> |
|
518 |
<at name="item" index="1"> |
|
519 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
520 |
</at> |
|
521 |
<at name="item" index="2"> |
|
522 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
523 |
</at> |
|
524 |
<at name="item" index="3"> |
|
525 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
526 |
</at> |
|
527 |
<at name="item" index="4"> |
|
528 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
529 |
</at> |
|
530 |
<at name="item" index="5"> |
|
531 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
532 |
</at> |
|
533 |
<at name="item" index="6"> |
|
534 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
535 |
</at> |
|
536 |
<at name="item" index="7"> |
|
537 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
538 |
</at> |
|
539 |
<at name="item" index="8"> |
|
540 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
541 |
</at> |
|
542 |
<at name="item" index="9"> |
|
543 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
544 |
</at> |
|
545 |
<at name="item" index="10"> |
|
546 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
547 |
</at> |
|
548 |
<at name="item" index="11"> |
|
549 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
550 |
</at> |
|
551 |
<at name="item" index="12"> |
|
552 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
553 |
</at> |
|
554 |
</object> |
|
555 |
</at> |
|
556 |
</object> |
|
557 |
</at> |
|
558 |
<at name="rowgroups"> |
|
559 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
560 |
<at name="groups"> |
|
561 |
<object classname="java.util.HashMap"/> |
|
562 |
</at> |
|
563 |
</object> |
|
564 |
</at> |
|
565 |
<at name="colgroups"> |
|
566 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
567 |
<at name="groups"> |
|
568 |
<object classname="java.util.HashMap"/> |
|
569 |
</at> |
|
570 |
</object> |
|
571 |
</at> |
|
572 |
</object> |
|
573 |
</at> |
|
574 |
</object> |
|
575 |
</at> |
|
576 |
</item> |
|
577 |
<item > |
|
578 |
<at name="value"> |
|
579 |
<object classname="com.jeta.forms.store.properties.TabProperty"> |
|
580 |
<at name="name">tab</at> |
|
581 |
<at name="title">_Working_copies</at> |
|
582 |
<at name="icon"> |
|
583 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
584 |
<at name="embedded">false</at> |
|
585 |
<at name="width">0</at> |
|
586 |
<at name="height">0</at> |
|
587 |
</object> |
|
588 |
</at> |
|
589 |
<at name="form"> |
|
590 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
591 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
592 |
<at name="cellconstraints"> |
|
593 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
594 |
<at name="column">1</at> |
|
595 |
<at name="row">1</at> |
|
596 |
<at name="colspan">1</at> |
|
597 |
<at name="rowspan">1</at> |
|
598 |
<at name="halign">default</at> |
|
599 |
<at name="valign">default</at> |
|
600 |
<at name="insets" object="insets">0,0,0,0</at> |
|
601 |
</object> |
|
602 |
</at> |
|
603 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
604 |
</super> |
|
605 |
<at name="id">embedded.271909689</at> |
|
606 |
<at name="rowspecs">CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE</at> |
|
607 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
608 |
<at name="components"> |
|
609 |
<object classname="java.util.LinkedList"> |
|
610 |
<item > |
|
611 |
<at name="value"> |
|
612 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
613 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
614 |
<at name="cellconstraints"> |
|
615 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
616 |
<at name="column">2</at> |
|
617 |
<at name="row">2</at> |
|
618 |
<at name="colspan">1</at> |
|
619 |
<at name="rowspan">1</at> |
|
620 |
<at name="halign">default</at> |
|
621 |
<at name="valign">default</at> |
|
622 |
<at name="insets" object="insets">0,0,0,0</at> |
|
623 |
</object> |
|
624 |
</at> |
|
625 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
626 |
</super> |
|
627 |
<at name="id">embedded.252062546</at> |
|
628 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0)</at> |
|
629 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0)</at> |
|
630 |
<at name="components"> |
|
631 |
<object classname="java.util.LinkedList"/> |
|
632 |
</at> |
|
633 |
<at name="properties"> |
|
634 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
635 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
636 |
<at name="properties"> |
|
637 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
638 |
<at name="border"> |
|
639 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
640 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
641 |
<at name="name">border</at> |
|
642 |
</super> |
|
643 |
<at name="borders"> |
|
644 |
<object classname="java.util.LinkedList"/> |
|
645 |
</at> |
|
646 |
</object> |
|
647 |
</at> |
|
648 |
<at name="name">gridWorkspaces</at> |
|
649 |
<at name="fill"> |
|
650 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
651 |
<at name="name">fill</at> |
|
652 |
</object> |
|
653 |
</at> |
|
654 |
<at name="scollBars"> |
|
655 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
656 |
<at name="name">scollBars</at> |
|
657 |
<at name="verticalpolicy">21</at> |
|
658 |
<at name="horizontalpolicy">31</at> |
|
659 |
<at name="border"> |
|
660 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
661 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
662 |
<at name="name">border</at> |
|
663 |
</super> |
|
664 |
<at name="borders"> |
|
665 |
<object classname="java.util.LinkedList"> |
|
666 |
<item > |
|
667 |
<at name="value"> |
|
668 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
669 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
670 |
<at name="name">border</at> |
|
671 |
</super> |
|
672 |
</object> |
|
673 |
</at> |
|
674 |
</item> |
|
675 |
</object> |
|
676 |
</at> |
|
677 |
</object> |
|
678 |
</at> |
|
679 |
</object> |
|
680 |
</at> |
|
681 |
</object> |
|
682 |
</at> |
|
683 |
</object> |
|
684 |
</at> |
|
685 |
<at name="cellpainters"> |
|
686 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
687 |
<at name="rows"> |
|
688 |
<object classname="[Ljava.lang.Object;" size="1"> |
|
689 |
<at name="item" index="0"> |
|
690 |
<object classname="[Ljava.lang.Object;" size="1"/> |
|
691 |
</at> |
|
692 |
</object> |
|
693 |
</at> |
|
694 |
</object> |
|
695 |
</at> |
|
696 |
<at name="rowgroups"> |
|
697 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
698 |
<at name="groups"> |
|
699 |
<object classname="java.util.HashMap"/> |
|
700 |
</at> |
|
701 |
</object> |
|
702 |
</at> |
|
703 |
<at name="colgroups"> |
|
704 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
705 |
<at name="groups"> |
|
706 |
<object classname="java.util.HashMap"/> |
|
707 |
</at> |
|
708 |
</object> |
|
709 |
</at> |
|
710 |
</object> |
|
711 |
</at> |
|
712 |
</item> |
|
713 |
</object> |
|
714 |
</at> |
|
715 |
<at name="properties"> |
|
716 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
717 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
718 |
<at name="properties"> |
|
719 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
720 |
<at name="border"> |
|
721 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
722 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
723 |
<at name="name">border</at> |
|
724 |
</super> |
|
725 |
<at name="borders"> |
|
726 |
<object classname="java.util.LinkedList"/> |
|
727 |
</at> |
|
728 |
</object> |
|
729 |
</at> |
|
730 |
<at name="name"/> |
|
731 |
<at name="fill"> |
|
732 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
733 |
<at name="name">fill</at> |
|
734 |
</object> |
|
735 |
</at> |
|
736 |
<at name="scollBars"> |
|
737 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
738 |
<at name="name">scollBars</at> |
|
739 |
<at name="verticalpolicy">21</at> |
|
740 |
<at name="horizontalpolicy">31</at> |
|
741 |
<at name="border"> |
|
742 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
743 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
744 |
<at name="name">border</at> |
|
745 |
</super> |
|
746 |
<at name="borders"> |
|
747 |
<object classname="java.util.LinkedList"> |
|
748 |
<item > |
|
749 |
<at name="value"> |
|
750 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
751 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
752 |
<at name="name">border</at> |
|
753 |
</super> |
|
754 |
</object> |
|
755 |
</at> |
|
756 |
</item> |
|
757 |
</object> |
|
758 |
</at> |
|
759 |
</object> |
|
760 |
</at> |
|
761 |
</object> |
|
762 |
</at> |
|
763 |
</object> |
|
764 |
</at> |
|
765 |
</object> |
|
766 |
</at> |
|
767 |
<at name="cellpainters"> |
|
768 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
769 |
<at name="rows"> |
|
770 |
<object classname="[Ljava.lang.Object;" size="3"> |
|
771 |
<at name="item" index="0"> |
|
772 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
773 |
</at> |
|
774 |
<at name="item" index="1"> |
|
775 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
776 |
</at> |
|
777 |
<at name="item" index="2"> |
|
778 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
779 |
</at> |
|
780 |
</object> |
|
781 |
</at> |
|
782 |
</object> |
|
783 |
</at> |
|
784 |
<at name="rowgroups"> |
|
785 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
786 |
<at name="groups"> |
|
787 |
<object classname="java.util.HashMap"/> |
|
788 |
</at> |
|
789 |
</object> |
|
790 |
</at> |
|
791 |
<at name="colgroups"> |
|
792 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
793 |
<at name="groups"> |
|
794 |
<object classname="java.util.HashMap"/> |
|
795 |
</at> |
|
796 |
</object> |
|
797 |
</at> |
|
798 |
</object> |
|
799 |
</at> |
|
800 |
</object> |
|
801 |
</at> |
|
802 |
</item> |
|
803 |
</object> |
|
804 |
</at> |
|
805 |
</object> |
|
806 |
</at> |
|
807 |
<at name="width">1118</at> |
|
808 |
<at name="tabCount">2</at> |
|
809 |
<at name="height">717</at> |
|
810 |
</object> |
|
811 |
</at> |
|
812 |
</object> |
|
813 |
</at> |
|
814 |
</object> |
|
815 |
</at> |
|
816 |
</item> |
|
817 |
</object> |
|
818 |
</at> |
|
819 |
<at name="properties"> |
|
820 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
821 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
822 |
<at name="properties"> |
|
823 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
824 |
<at name="border"> |
|
825 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
826 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
827 |
<at name="name">border</at> |
|
828 |
</super> |
|
829 |
<at name="borders"> |
|
830 |
<object classname="java.util.LinkedList"/> |
|
831 |
</at> |
|
832 |
</object> |
|
833 |
</at> |
|
834 |
<at name="name"/> |
|
835 |
<at name="fill"> |
|
836 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
837 |
<at name="name">fill</at> |
|
838 |
</object> |
|
839 |
</at> |
|
840 |
<at name="scollBars"> |
|
841 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
842 |
<at name="name">scollBars</at> |
|
843 |
<at name="verticalpolicy">21</at> |
|
844 |
<at name="horizontalpolicy">31</at> |
|
845 |
<at name="border"> |
|
846 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
847 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
848 |
<at name="name">border</at> |
|
849 |
</super> |
|
850 |
<at name="borders"> |
|
851 |
<object classname="java.util.LinkedList"> |
|
852 |
<item > |
|
853 |
<at name="value"> |
|
854 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
855 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
856 |
<at name="name">border</at> |
|
857 |
</super> |
|
858 |
</object> |
|
859 |
</at> |
|
860 |
</item> |
|
861 |
</object> |
|
862 |
</at> |
|
863 |
</object> |
|
864 |
</at> |
|
865 |
</object> |
|
866 |
</at> |
|
867 |
</object> |
|
868 |
</at> |
|
869 |
</object> |
|
870 |
</at> |
|
871 |
<at name="cellpainters"> |
|
872 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
873 |
<at name="rows"> |
|
874 |
<object classname="[Ljava.lang.Object;" size="3"> |
|
875 |
<at name="item" index="0"> |
|
876 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
877 |
</at> |
|
878 |
<at name="item" index="1"> |
|
879 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
880 |
</at> |
|
881 |
<at name="item" index="2"> |
|
882 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
883 |
</at> |
|
884 |
</object> |
|
885 |
</at> |
|
886 |
</object> |
|
887 |
</at> |
|
888 |
<at name="rowgroups"> |
|
889 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
890 |
<at name="groups"> |
|
891 |
<object classname="java.util.HashMap"/> |
|
892 |
</at> |
|
893 |
</object> |
|
894 |
</at> |
|
895 |
<at name="colgroups"> |
|
896 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
897 |
<at name="groups"> |
|
898 |
<object classname="java.util.HashMap"/> |
|
899 |
</at> |
|
900 |
</object> |
|
901 |
</at> |
|
902 |
</object> |
|
903 |
</at> |
|
904 |
</object> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.102/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/java/org/gvsig/vcsgis/app/preferencespages/VCSGisPageView.java | ||
---|---|---|
1 |
package org.gvsig.vcsgis.app.preferencespages; |
|
2 |
|
|
3 |
import com.jeta.forms.components.separator.TitledSeparator; |
|
4 |
import com.jeta.open.i18n.I18NUtils; |
|
5 |
import com.jgoodies.forms.layout.CellConstraints; |
|
6 |
import com.jgoodies.forms.layout.FormLayout; |
|
7 |
import java.awt.BorderLayout; |
|
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.JCheckBox; |
|
14 |
import javax.swing.JComboBox; |
|
15 |
import javax.swing.JFrame; |
|
16 |
import javax.swing.JLabel; |
|
17 |
import javax.swing.JPanel; |
|
18 |
import javax.swing.JTabbedPane; |
|
19 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
|
20 |
|
|
21 |
|
|
22 |
public abstract class VCSGisPageView extends AbstractPreferencePage |
|
23 |
{ |
|
24 |
JTabbedPane tabPreferences = new JTabbedPane(); |
|
25 |
JPanel tabPreferences1 = new JPanel(); |
|
26 |
JCheckBox chkEmptyEffectiveDateAllowedInCommitPanel = new JCheckBox(); |
|
27 |
JCheckBox chkCurrentDateAsEffectiveDateByDefaultInCommitPanel = new JCheckBox(); |
|
28 |
TitledSeparator lblChangesPanel = new TitledSeparator(); |
|
29 |
TitledSeparator lblAdvanced = new TitledSeparator(); |
|
30 |
JLabel lblRepositoryEntityFeatureTypeEditorMode = new JLabel(); |
|
31 |
JComboBox cboRepositoryEntityFeatureTypeEditorMode = new JComboBox(); |
|
32 |
JPanel gridWorkspaces = new JPanel(); |
|
33 |
|
|
34 |
/** |
|
35 |
* Default constructor |
|
36 |
*/ |
|
37 |
public VCSGisPageView() |
|
38 |
{ |
|
39 |
initializePanel(); |
|
40 |
} |
|
41 |
|
|
42 |
/** |
|
43 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
44 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
45 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
46 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
47 |
*/ |
|
48 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
49 |
{ |
|
50 |
Dimension filler = new Dimension(10,10); |
|
51 |
|
|
52 |
boolean filled_cell_11 = false; |
|
53 |
CellConstraints cc = new CellConstraints(); |
|
54 |
if ( cols.length > 0 && rows.length > 0 ) |
|
55 |
{ |
|
56 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
57 |
{ |
|
58 |
/** add a rigid area */ |
|
59 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
60 |
filled_cell_11 = true; |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
for( int index = 0; index < cols.length; index++ ) |
|
65 |
{ |
|
66 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
67 |
{ |
|
68 |
continue; |
|
69 |
} |
|
70 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
71 |
} |
|
72 |
|
|
73 |
for( int index = 0; index < rows.length; index++ ) |
|
74 |
{ |
|
75 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
76 |
{ |
|
77 |
continue; |
|
78 |
} |
|
79 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
80 |
} |
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* Helper method to load an image file from the CLASSPATH |
|
86 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
87 |
* @return an ImageIcon instance with the specified image file |
|
88 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
89 |
*/ |
|
90 |
public ImageIcon loadImage( String imageName ) |
|
91 |
{ |
|
92 |
try |
|
93 |
{ |
|
94 |
ClassLoader classloader = getClass().getClassLoader(); |
|
95 |
java.net.URL url = classloader.getResource( imageName ); |
|
96 |
if ( url != null ) |
|
97 |
{ |
|
98 |
ImageIcon icon = new ImageIcon( url ); |
|
99 |
return icon; |
|
100 |
} |
|
101 |
} |
|
102 |
catch( Exception e ) |
|
103 |
{ |
|
104 |
e.printStackTrace(); |
|
105 |
} |
|
106 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* Method for recalculating the component orientation for |
|
111 |
* right-to-left Locales. |
|
112 |
* @param orientation the component orientation to be applied |
|
113 |
*/ |
|
114 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
115 |
{ |
|
116 |
// Not yet implemented... |
|
117 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
118 |
super.applyComponentOrientation(orientation); |
|
119 |
} |
|
120 |
|
|
121 |
public JPanel createPanel() |
|
122 |
{ |
|
123 |
JPanel jpanel1 = new JPanel(); |
|
124 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
125 |
CellConstraints cc = new CellConstraints(); |
|
126 |
jpanel1.setLayout(formlayout1); |
|
127 |
|
|
128 |
tabPreferences.setName("tabPreferences"); |
|
129 |
tabPreferences.addTab("_General",null,createtabPreferences()); |
|
130 |
tabPreferences.addTab("_Working_copies",null,createPanel1()); |
|
131 |
jpanel1.add(tabPreferences,cc.xy(2,2)); |
|
132 |
|
|
133 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
|
134 |
return jpanel1; |
|
135 |
} |
|
136 |
|
|
137 |
public JPanel createtabPreferences() |
|
138 |
{ |
|
139 |
tabPreferences1.setName("tabPreferences"); |
|
140 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
|
141 |
CellConstraints cc = new CellConstraints(); |
|
142 |
tabPreferences1.setLayout(formlayout1); |
|
143 |
|
|
144 |
chkEmptyEffectiveDateAllowedInCommitPanel.setActionCommand("_Use_of_empty_effective_date_is_allowed"); |
|
145 |
chkEmptyEffectiveDateAllowedInCommitPanel.setName("chkEmptyEffectiveDateAllowedInCommitPanel"); |
|
146 |
chkEmptyEffectiveDateAllowedInCommitPanel.setText("_Use_of_empty_effective_date_is_allowed"); |
|
147 |
tabPreferences1.add(chkEmptyEffectiveDateAllowedInCommitPanel,cc.xy(2,4)); |
|
148 |
|
|
149 |
chkCurrentDateAsEffectiveDateByDefaultInCommitPanel.setActionCommand("_Use_current_date_as_effective_date_by_default"); |
|
150 |
chkCurrentDateAsEffectiveDateByDefaultInCommitPanel.setName("chkCurrentDateAsEffectiveDateByDefaultInCommitPanel"); |
|
151 |
chkCurrentDateAsEffectiveDateByDefaultInCommitPanel.setText("_Use_current_date_as_effective_date_by_default"); |
|
152 |
tabPreferences1.add(chkCurrentDateAsEffectiveDateByDefaultInCommitPanel,cc.xy(2,6)); |
|
153 |
|
|
154 |
lblChangesPanel.setName("lblChangesPanel"); |
|
155 |
lblChangesPanel.setText("_Changes_panel"); |
|
156 |
tabPreferences1.add(lblChangesPanel,cc.xy(2,2)); |
|
157 |
|
|
158 |
lblAdvanced.setName("lblAdvanced"); |
|
159 |
lblAdvanced.setText("_Advanced"); |
|
160 |
tabPreferences1.add(lblAdvanced,cc.xy(2,8)); |
|
161 |
|
|
162 |
lblRepositoryEntityFeatureTypeEditorMode.setName("lblRepositoryEntityFeatureTypeEditorMode"); |
|
163 |
lblRepositoryEntityFeatureTypeEditorMode.setText("_VCS_Repository_entity_feature_type_editor_mode"); |
|
164 |
tabPreferences1.add(lblRepositoryEntityFeatureTypeEditorMode,cc.xy(2,10)); |
|
165 |
|
|
166 |
cboRepositoryEntityFeatureTypeEditorMode.setName("cboRepositoryEntityFeatureTypeEditorMode"); |
|
167 |
tabPreferences1.add(cboRepositoryEntityFeatureTypeEditorMode,cc.xy(2,12)); |
|
168 |
|
|
169 |
addFillComponents(tabPreferences1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 }); |
|
170 |
return tabPreferences1; |
|
171 |
} |
|
172 |
|
|
173 |
public JPanel createPanel1() |
|
174 |
{ |
|
175 |
JPanel jpanel1 = new JPanel(); |
|
176 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
177 |
CellConstraints cc = new CellConstraints(); |
|
178 |
jpanel1.setLayout(formlayout1); |
|
179 |
|
|
180 |
jpanel1.add(creategridWorkspaces(),cc.xy(2,2)); |
|
181 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
|
182 |
return jpanel1; |
|
183 |
} |
|
184 |
|
|
185 |
public JPanel creategridWorkspaces() |
|
186 |
{ |
|
187 |
gridWorkspaces.setName("gridWorkspaces"); |
|
188 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
|
189 |
CellConstraints cc = new CellConstraints(); |
|
190 |
gridWorkspaces.setLayout(formlayout1); |
|
191 |
|
|
192 |
addFillComponents(gridWorkspaces,new int[]{ 1 },new int[]{ 1 }); |
|
193 |
return gridWorkspaces; |
|
194 |
} |
|
195 |
|
|
196 |
/** |
|
197 |
* Initializer |
|
198 |
*/ |
|
199 |
protected void initializePanel() |
|
200 |
{ |
|
201 |
setLayout(new BorderLayout()); |
|
202 |
add(createPanel(), BorderLayout.CENTER); |
|
203 |
} |
|
204 |
|
|
205 |
|
Also available in: Unified diff