Revision 2019
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/tools/util/ToolsUtilManager.java | ||
---|---|---|
1 |
package org.gvsig.tools.util; |
|
2 |
|
|
3 |
import org.gvsig.desktopopen.DesktopOpen; |
|
4 |
import org.gvsig.htmlbuilder.HTMLBuilder; |
|
5 |
|
|
6 |
/** |
|
7 |
* gvSIG. Desktop Geographic Information System. |
|
8 |
* |
|
9 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
10 |
* |
|
11 |
* This program is free software; you can redistribute it and/or modify it under |
|
12 |
* the terms of the GNU General Public License as published by the Free Software |
|
13 |
* Foundation; either version 3 of the License, or (at your option) any later |
|
14 |
* version. |
|
15 |
* |
|
16 |
* This program is distributed in the hope that it will be useful, but WITHOUT |
|
17 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
18 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
|
19 |
* details. |
|
20 |
* |
|
21 |
* You should have received a copy of the GNU General Public License along with |
|
22 |
* this program; if not, write to the Free Software Foundation, Inc., 51 |
|
23 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
24 |
* |
|
25 |
* For any additional information, do not hesitate to contact us at info AT |
|
26 |
* gvsig.com, or visit our website www.gvsig.com. |
|
27 |
*/ |
|
28 |
/** |
|
29 |
* @author fdiaz |
|
30 |
* |
|
31 |
*/ |
|
32 |
public interface ToolsUtilManager { |
|
33 |
|
|
34 |
/** |
|
35 |
* @return |
|
36 |
*/ |
|
37 |
public InformationBuilder createInformationBuilder(); |
|
38 |
|
|
39 |
public DesktopOpen createDesktopOpen(); |
|
40 |
|
|
41 |
public HTMLBuilder createHTMLBuilder(); |
|
42 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/tools/util/InformationBuilder.java | ||
---|---|---|
1 |
package org.gvsig.tools.util; |
|
2 |
|
|
3 |
public interface InformationBuilder { |
|
4 |
|
|
5 |
public interface Element { |
|
6 |
|
|
7 |
public Element value(String format, Object... args); |
|
8 |
public String build(); |
|
9 |
} |
|
10 |
|
|
11 |
public interface TitleElement extends Element { |
|
12 |
|
|
13 |
@Override |
|
14 |
public TitleElement value(String format, Object... args); |
|
15 |
public TitleElement label(String label); |
|
16 |
public TitleElement labelkey(String labelkey); |
|
17 |
} |
|
18 |
|
|
19 |
public interface RawElement extends Element { |
|
20 |
|
|
21 |
@Override |
|
22 |
public RawElement value(String format, Object... args); |
|
23 |
} |
|
24 |
|
|
25 |
public interface TextElement extends RawElement { |
|
26 |
|
|
27 |
@Override |
|
28 |
public TextElement value(String format, Object... args); |
|
29 |
|
|
30 |
} |
|
31 |
|
|
32 |
public interface PropertyElement extends TextElement { |
|
33 |
|
|
34 |
public PropertyElement monospace(); |
|
35 |
|
|
36 |
public PropertyElement label(String label); |
|
37 |
|
|
38 |
public PropertyElement labelkey(String labelkey); |
|
39 |
|
|
40 |
@Override |
|
41 |
public PropertyElement value(String format, Object... args); |
|
42 |
|
|
43 |
} |
|
44 |
|
|
45 |
public InformationBuilder backgroundColor(String color); |
|
46 |
|
|
47 |
public InformationBuilder backgroundColorTitle(String color); |
|
48 |
|
|
49 |
public InformationBuilder backgroundColorPropertyLabel(String color); |
|
50 |
|
|
51 |
public InformationBuilder backgroundColorPropertyValue1(String color); |
|
52 |
|
|
53 |
public InformationBuilder backgroundColorPropertyValue2(String color); |
|
54 |
|
|
55 |
public TitleElement title(); |
|
56 |
|
|
57 |
public PropertyElement property(); |
|
58 |
|
|
59 |
public TextElement text(); |
|
60 |
|
|
61 |
public RawElement raw(); |
|
62 |
|
|
63 |
public String build(); |
|
64 |
|
|
65 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/tools/util/ToolsUtilLocator.java | ||
---|---|---|
1 |
package org.gvsig.tools.util; |
|
2 |
|
|
3 |
/** |
|
4 |
* gvSIG. Desktop Geographic Information System. |
|
5 |
* |
|
6 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
* |
|
8 |
* This program is free software; you can redistribute it and/or modify it under |
|
9 |
* the terms of the GNU General Public License as published by the Free Software |
|
10 |
* Foundation; either version 3 of the License, or (at your option) any later |
|
11 |
* version. |
|
12 |
* |
|
13 |
* This program is distributed in the hope that it will be useful, but WITHOUT |
|
14 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
15 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
|
16 |
* details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License along with |
|
19 |
* this program; if not, write to the Free Software Foundation, Inc., 51 |
|
20 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
21 |
* |
|
22 |
* For any additional information, do not hesitate to contact us at info AT |
|
23 |
* gvsig.com, or visit our website www.gvsig.com. |
|
24 |
*/ |
|
25 |
|
|
26 |
import org.gvsig.configurableactions.ConfigurableActionsMamager; |
|
27 |
import org.gvsig.filedialogchooser.FileDialogChooserManager; |
|
28 |
import org.gvsig.imageviewer.ImageViewerManager; |
|
29 |
import org.gvsig.propertypage.PropertiesPageManager; |
|
30 |
import org.gvsig.svgsupport.SVGSupportManager; |
|
31 |
import org.gvsig.tools.locator.AbstractLocator; |
|
32 |
import org.gvsig.tools.locator.Locator; |
|
33 |
import org.gvsig.tools.locator.LocatorException; |
|
34 |
|
|
35 |
/** |
|
36 |
* @author gvSIG Team |
|
37 |
* |
|
38 |
*/ |
|
39 |
@SuppressWarnings("rawtypes") |
|
40 |
public class ToolsUtilLocator extends AbstractLocator { |
|
41 |
|
|
42 |
private static final String LOCATOR_NAME = "ToolsUtilLocator"; |
|
43 |
|
|
44 |
public static final String TOOLS_UTIL_MANAGER_NAME = "org.gvsig.tools.util.manager"; |
|
45 |
private static final String TOOLS_UTIL_MANAGER_DESCRIPTION = "Tools utilities."; |
|
46 |
|
|
47 |
public static final String PROPERTIES_PAGE_MANAGER_NAME = "org.gvsig.tools.properties.page.manager"; |
|
48 |
private static final String PROPERTIES_PAGE_MANAGER_DESCRIPTION = "Properties page manager"; |
|
49 |
|
|
50 |
public static final String FILE_DIALOG_CHOOSER_MANAGER_NAME = "org.gvsig.filedialogchooser.manager"; |
|
51 |
private static final String FILE_DIALOG_CHOOSER_MANAGER_DESCRIPTION = "File dialog chooser."; |
|
52 |
|
|
53 |
public static final String PLUGINS_SVGSUPPORT_MANAGER_NAME = "SVGSupportManager"; |
|
54 |
private static final String PLUGINS_SVGSUPPORT_MANAGER_DESCRIPTION = "SVGSupportManager"; |
|
55 |
|
|
56 |
public static final String PLUGINS_IMAGEVIEWER_MANAGER_NAME = "ImageViewerManager"; |
|
57 |
private static final String PLUGINS_IMAGEVIEWER_MANAGER_DESCRIPTION = "ImageViewerManager"; |
|
58 |
|
|
59 |
public static final String CONFIGURABLE_ACTIONS_MANAGER_NAME = "ConfigurableActionsMamager"; |
|
60 |
private static final String CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION = "ConfigurableActionsMamager"; |
|
61 |
|
|
62 |
private static final ToolsUtilLocator instance = new ToolsUtilLocator(); |
|
63 |
|
|
64 |
private ToolsUtilLocator() { |
|
65 |
|
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* Return the singleton instance. |
|
70 |
* |
|
71 |
* @return the singleton instance |
|
72 |
*/ |
|
73 |
public static ToolsUtilLocator getInstance() { |
|
74 |
return instance; |
|
75 |
} |
|
76 |
|
|
77 |
@Override |
|
78 |
public String getLocatorName() { |
|
79 |
return LOCATOR_NAME; |
|
80 |
} |
|
81 |
|
|
82 |
/** |
|
83 |
* Return a reference to ToolsUtilManager. |
|
84 |
* |
|
85 |
* @return a reference to ToolsUtilManager |
|
86 |
* @throws LocatorException if there is no access to the class or the class |
|
87 |
* cannot be instantiated |
|
88 |
* @see Locator#get(String) |
|
89 |
*/ |
|
90 |
public static ToolsUtilManager getToolsUtilManager() |
|
91 |
throws LocatorException { |
|
92 |
return (ToolsUtilManager) getInstance().get(TOOLS_UTIL_MANAGER_NAME); |
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
96 |
* Registers the Class implementing the ToolsUtilManager interface. |
|
97 |
* |
|
98 |
* @param clazz implementing the ToolsUtilManager interface |
|
99 |
*/ |
|
100 |
public static void registerToolsUtilManager(Class clazz) { |
|
101 |
getInstance().register(TOOLS_UTIL_MANAGER_NAME, |
|
102 |
TOOLS_UTIL_MANAGER_DESCRIPTION, clazz); |
|
103 |
} |
|
104 |
|
|
105 |
public static void registerDefaultToolsUtilManager(Class clazz) { |
|
106 |
getInstance().registerDefault(TOOLS_UTIL_MANAGER_NAME, |
|
107 |
TOOLS_UTIL_MANAGER_DESCRIPTION, clazz); |
|
108 |
} |
|
109 |
|
|
110 |
public static FileDialogChooserManager getFileDialogChooserManager() |
|
111 |
throws LocatorException { |
|
112 |
return (FileDialogChooserManager) getInstance().get(FILE_DIALOG_CHOOSER_MANAGER_NAME); |
|
113 |
} |
|
114 |
|
|
115 |
public static void registerFileDialogChooserManager(Class clazz) { |
|
116 |
getInstance().register(FILE_DIALOG_CHOOSER_MANAGER_NAME, |
|
117 |
FILE_DIALOG_CHOOSER_MANAGER_DESCRIPTION, clazz); |
|
118 |
} |
|
119 |
|
|
120 |
public static void registerDefaultFileDialogChooserManager(Class clazz) { |
|
121 |
getInstance().registerDefault(FILE_DIALOG_CHOOSER_MANAGER_NAME, |
|
122 |
FILE_DIALOG_CHOOSER_MANAGER_DESCRIPTION, clazz); |
|
123 |
} |
|
124 |
|
|
125 |
//SVG support |
|
126 |
public static SVGSupportManager getSVGSupportManager() throws LocatorException { |
|
127 |
return (SVGSupportManager) getInstance().get(PLUGINS_SVGSUPPORT_MANAGER_NAME); |
|
128 |
} |
|
129 |
|
|
130 |
public static void registerSVGSupportManager(Class clazz) { |
|
131 |
getInstance().register(PLUGINS_SVGSUPPORT_MANAGER_NAME, PLUGINS_SVGSUPPORT_MANAGER_DESCRIPTION, |
|
132 |
clazz); |
|
133 |
} |
|
134 |
|
|
135 |
public static void registerDefaultSVGSupportManager(Class clazz) { |
|
136 |
getInstance().registerDefault(PLUGINS_SVGSUPPORT_MANAGER_NAME, |
|
137 |
PLUGINS_SVGSUPPORT_MANAGER_DESCRIPTION, clazz); |
|
138 |
} |
|
139 |
|
|
140 |
public static ImageViewerManager getImageViewerManager() throws LocatorException { |
|
141 |
return (ImageViewerManager) getInstance().get(PLUGINS_IMAGEVIEWER_MANAGER_NAME); |
|
142 |
} |
|
143 |
|
|
144 |
public static void registerImageViewertManager(Class clazz) { |
|
145 |
getInstance().register(PLUGINS_IMAGEVIEWER_MANAGER_NAME, PLUGINS_IMAGEVIEWER_MANAGER_DESCRIPTION, |
|
146 |
clazz); |
|
147 |
} |
|
148 |
|
|
149 |
public static void registerDefaultImageViewerManager(Class clazz) { |
|
150 |
getInstance().registerDefault(PLUGINS_IMAGEVIEWER_MANAGER_NAME, |
|
151 |
PLUGINS_IMAGEVIEWER_MANAGER_DESCRIPTION, clazz); |
|
152 |
} |
|
153 |
|
|
154 |
|
|
155 |
public static ConfigurableActionsMamager getConfigurableActionsMamager() throws LocatorException { |
|
156 |
return (ConfigurableActionsMamager) getInstance().get(CONFIGURABLE_ACTIONS_MANAGER_NAME); |
|
157 |
} |
|
158 |
|
|
159 |
public static void registerConfigurableActionsMamager(Class clazz) { |
|
160 |
getInstance().register(CONFIGURABLE_ACTIONS_MANAGER_NAME, CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION, |
|
161 |
clazz); |
|
162 |
} |
|
163 |
|
|
164 |
public static void registerDefaultConfigurableActionsMamager(Class clazz) { |
|
165 |
getInstance().registerDefault(CONFIGURABLE_ACTIONS_MANAGER_NAME, |
|
166 |
CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION, clazz); |
|
167 |
} |
|
168 |
|
|
169 |
|
|
170 |
public static PropertiesPageManager getPropertiesPageManager() throws LocatorException { |
|
171 |
return (PropertiesPageManager) getInstance().get(PROPERTIES_PAGE_MANAGER_NAME); |
|
172 |
} |
|
173 |
|
|
174 |
public static void registerPropertiesPageManager(Class clazz) { |
|
175 |
getInstance().register(PROPERTIES_PAGE_MANAGER_NAME, |
|
176 |
PROPERTIES_PAGE_MANAGER_DESCRIPTION, |
|
177 |
clazz); |
|
178 |
} |
|
179 |
|
|
180 |
public static void registerDefaultPropertiesPageManager(Class clazz) { |
|
181 |
getInstance().registerDefault( |
|
182 |
PROPERTIES_PAGE_MANAGER_NAME, |
|
183 |
PROPERTIES_PAGE_MANAGER_DESCRIPTION, clazz); |
|
184 |
} |
|
185 |
|
|
186 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/tools/util/ToolsUtilLibrary.java | ||
---|---|---|
1 |
package org.gvsig.tools.util; |
|
2 |
|
|
3 |
import org.gvsig.tools.ToolsLibrary; |
|
4 |
import org.gvsig.tools.library.AbstractLibrary; |
|
5 |
import org.gvsig.tools.library.LibraryException; |
|
6 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
|
7 |
|
|
8 |
/** |
|
9 |
* gvSIG. Desktop Geographic Information System. |
|
10 |
* |
|
11 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
12 |
* |
|
13 |
* This program is free software; you can redistribute it and/or |
|
14 |
* modify it under the terms of the GNU General Public License |
|
15 |
* as published by the Free Software Foundation; either version 3 |
|
16 |
* of the License, or (at your option) any later version. |
|
17 |
* |
|
18 |
* This program is distributed in the hope that it will be useful, |
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
* GNU General Public License for more details. |
|
22 |
* |
|
23 |
* You should have received a copy of the GNU General Public License |
|
24 |
* along with this program; if not, write to the Free Software |
|
25 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
26 |
* MA 02110-1301, USA. |
|
27 |
* |
|
28 |
* For any additional information, do not hesitate to contact us |
|
29 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
30 |
*/ |
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
@SuppressWarnings("unchecked") |
|
35 |
public class ToolsUtilLibrary extends AbstractLibrary { |
|
36 |
|
|
37 |
public void doRegistration() { |
|
38 |
super.doRegistration(); |
|
39 |
registerAsAPI(ToolsUtilLibrary.class); |
|
40 |
this.require(ToolsLibrary.class); |
|
41 |
} |
|
42 |
|
|
43 |
protected void doInitialize() throws LibraryException { |
|
44 |
|
|
45 |
} |
|
46 |
|
|
47 |
protected void doPostInitialize() throws LibraryException { |
|
48 |
// Validate there is any implementation registered. |
|
49 |
ToolsUtilManager manager = ToolsUtilLocator.getToolsUtilManager(); |
|
50 |
if (manager == null) { |
|
51 |
throw new ReferenceNotRegisteredException( |
|
52 |
ToolsUtilLocator.TOOLS_UTIL_MANAGER_NAME, ToolsUtilLocator |
|
53 |
.getInstance()); |
|
54 |
} |
|
55 |
|
|
56 |
} |
|
57 |
|
|
58 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/configurableactions/ConfigurableActionsMamager.java | ||
---|---|---|
1 |
package org.gvsig.configurableactions; |
|
2 |
|
|
3 |
import java.util.Collection; |
|
4 |
import javax.swing.Action; |
|
5 |
import javax.swing.JComponent; |
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
public interface ConfigurableActionsMamager { |
|
10 |
|
|
11 |
public void addConfigurableAction(String panelid, Action action); |
|
12 |
|
|
13 |
public void removeConfigurableAction(String panelid, String actionName); |
|
14 |
|
|
15 |
public void removeAllConfigurableActions(String panelid); |
|
16 |
|
|
17 |
public Collection<Action> getConfigurableActions(String panelid); |
|
18 |
|
|
19 |
public JComponent getConfigurableActionsComponent(String panelid, Object source); |
|
20 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/propertypage/PropertiesPage.java | ||
---|---|---|
1 |
package org.gvsig.propertypage; |
|
2 |
|
|
3 |
import org.gvsig.tools.swing.api.Component; |
|
4 |
import org.gvsig.tools.util.Invocable; |
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
public interface PropertiesPage extends Component { |
|
10 |
|
|
11 |
public interface SetPageEnabledEvent { |
|
12 |
public static int ID = 0xCAFE0001; |
|
13 |
public static String ACTION_COMMAND = "SetPageEnabled"; |
|
14 |
|
|
15 |
public Invocable getFilter(); |
|
16 |
public boolean isEnabled(); |
|
17 |
} |
|
18 |
|
|
19 |
public void setData(Object data); |
|
20 |
|
|
21 |
/** |
|
22 |
* Title of the properties page |
|
23 |
* |
|
24 |
* @return the title. |
|
25 |
*/ |
|
26 |
public String getTitle(); |
|
27 |
|
|
28 |
/** |
|
29 |
* The priority of this properties page. |
|
30 |
* When more high is the priority more to the left are set properties page. |
|
31 |
* |
|
32 |
* @return the priority of the properties page |
|
33 |
*/ |
|
34 |
public int getPriority(); |
|
35 |
|
|
36 |
/** |
|
37 |
* Called when the button accept is presed by the user. |
|
38 |
* If return false the panel is not hidden and do not call whenAccept of |
|
39 |
* other properties pages. |
|
40 |
* |
|
41 |
* @return false to cancel the user action. |
|
42 |
*/ |
|
43 |
public boolean whenAccept(); |
|
44 |
|
|
45 |
/** |
|
46 |
* Called when the button apply is presed by the user. |
|
47 |
* If return false the panel do not call whenApply of |
|
48 |
* other properties pages. |
|
49 |
* |
|
50 |
* @return false to cancel the user action. |
|
51 |
*/ |
|
52 |
public boolean whenApply(); |
|
53 |
|
|
54 |
/** |
|
55 |
* Called when the button accept is presed by the user. |
|
56 |
* If return false the panel is not hidden and do not call whenCancel of |
|
57 |
* other properties pages. |
|
58 |
* |
|
59 |
* @return false to cancel the user action. |
|
60 |
*/ |
|
61 |
public boolean whenCancel(); |
|
62 |
|
|
63 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/propertypage/PropertiesPageFactory.java | ||
---|---|---|
1 |
|
|
2 |
package org.gvsig.propertypage; |
|
3 |
|
|
4 |
public interface PropertiesPageFactory { |
|
5 |
|
|
6 |
public String getName(); |
|
7 |
|
|
8 |
/** |
|
9 |
* Return the group identifier. |
|
10 |
* The group identifier identify the object that store the properties that |
|
11 |
* this property page handle. Bty excample: |
|
12 |
* - Project |
|
13 |
* - View |
|
14 |
* - Layer |
|
15 |
* |
|
16 |
* @return the group identifier |
|
17 |
*/ |
|
18 |
public String getGroupID(); |
|
19 |
|
|
20 |
/** |
|
21 |
* Return true if this propeties page is enabled for the object. |
|
22 |
* |
|
23 |
* @param obj object that store the properties of this properties page. |
|
24 |
* @return true if the page is enabled |
|
25 |
*/ |
|
26 |
public boolean isVisible(Object obj); |
|
27 |
|
|
28 |
/** |
|
29 |
* Create a instance of the propeties page for the object. |
|
30 |
* |
|
31 |
* @param container, Container of the new page, usually the dialog. |
|
32 |
* @param data object that store the properties of this properties page. |
|
33 |
* @return the properties page |
|
34 |
*/ |
|
35 |
public PropertiesPage create(Object container, Object data); |
|
36 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/propertypage/BasePropertiesPagePanelLayout.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 |
|
|
7 |
package org.gvsig.propertypage; |
|
8 |
|
|
9 |
import java.awt.Dimension; |
|
10 |
import java.awt.GridBagConstraints; |
|
11 |
import java.awt.GridBagLayout; |
|
12 |
import javax.swing.BorderFactory; |
|
13 |
import javax.swing.Box; |
|
14 |
import javax.swing.JButton; |
|
15 |
import javax.swing.JLabel; |
|
16 |
import javax.swing.JPanel; |
|
17 |
import javax.swing.JScrollPane; |
|
18 |
import javax.swing.JTextArea; |
|
19 |
import javax.swing.border.BevelBorder; |
|
20 |
import javax.swing.border.SoftBevelBorder; |
|
21 |
import org.jdesktop.layout.GroupLayout; |
|
22 |
|
|
23 |
/** |
|
24 |
* |
|
25 |
* @author usuario |
|
26 |
*/ |
|
27 |
public class BasePropertiesPagePanelLayout extends javax.swing.JPanel { |
|
28 |
|
|
29 |
/** |
|
30 |
* Creates new form BasePropertiesPagePanelLayout |
|
31 |
*/ |
|
32 |
public BasePropertiesPagePanelLayout() { |
|
33 |
initComponents(); |
|
34 |
} |
|
35 |
|
|
36 |
/** |
|
37 |
* This method is called from within the constructor to |
|
38 |
* initialize the form. |
|
39 |
* WARNING: Do NOT modify this code. The content of this method is |
|
40 |
* always regenerated by the Form Editor. |
|
41 |
*/ |
|
42 |
@SuppressWarnings("unchecked") |
|
43 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
|
44 |
private void initComponents() { |
|
45 |
java.awt.GridBagConstraints gridBagConstraints; |
|
46 |
|
|
47 |
titleLabel = new javax.swing.JLabel(); |
|
48 |
applyButton = new javax.swing.JButton(); |
|
49 |
cancelButton = new javax.swing.JButton(); |
|
50 |
acceptButton = new javax.swing.JButton(); |
|
51 |
content = new javax.swing.JPanel(); |
|
52 |
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); |
|
53 |
|
|
54 |
java.awt.GridBagLayout layout = new java.awt.GridBagLayout(); |
|
55 |
layout.columnWidths = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0}; |
|
56 |
layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0}; |
|
57 |
setLayout(layout); |
|
58 |
|
|
59 |
titleLabel.setText("jLabel1"); |
|
60 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
61 |
gridBagConstraints.gridx = 2; |
|
62 |
gridBagConstraints.gridy = 2; |
|
63 |
gridBagConstraints.gridwidth = 7; |
|
64 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
65 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
|
66 |
add(titleLabel, gridBagConstraints); |
|
67 |
|
|
68 |
applyButton.setText("Apply"); |
|
69 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
70 |
gridBagConstraints.gridx = 6; |
|
71 |
gridBagConstraints.gridy = 6; |
|
72 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
73 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; |
|
74 |
gridBagConstraints.weightx = 0.1; |
|
75 |
add(applyButton, gridBagConstraints); |
|
76 |
|
|
77 |
cancelButton.setText("Cancel"); |
|
78 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
79 |
gridBagConstraints.gridx = 4; |
|
80 |
gridBagConstraints.gridy = 6; |
|
81 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
82 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; |
|
83 |
gridBagConstraints.weightx = 0.1; |
|
84 |
add(cancelButton, gridBagConstraints); |
|
85 |
|
|
86 |
acceptButton.setText("Accept"); |
|
87 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
88 |
gridBagConstraints.gridx = 8; |
|
89 |
gridBagConstraints.gridy = 6; |
|
90 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
91 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; |
|
92 |
gridBagConstraints.weightx = 0.1; |
|
93 |
add(acceptButton, gridBagConstraints); |
|
94 |
|
|
95 |
content.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
|
96 |
|
|
97 |
org.jdesktop.layout.GroupLayout contentLayout = new org.jdesktop.layout.GroupLayout(content); |
|
98 |
content.setLayout(contentLayout); |
|
99 |
contentLayout.setHorizontalGroup( |
|
100 |
contentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
101 |
.add(0, 388, Short.MAX_VALUE) |
|
102 |
); |
|
103 |
contentLayout.setVerticalGroup( |
|
104 |
contentLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) |
|
105 |
.add(0, 234, Short.MAX_VALUE) |
|
106 |
); |
|
107 |
|
|
108 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
109 |
gridBagConstraints.gridx = 2; |
|
110 |
gridBagConstraints.gridy = 4; |
|
111 |
gridBagConstraints.gridwidth = 7; |
|
112 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
|
113 |
gridBagConstraints.weightx = 1.0; |
|
114 |
gridBagConstraints.weighty = 1.0; |
|
115 |
add(content, gridBagConstraints); |
|
116 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
117 |
gridBagConstraints.gridx = 2; |
|
118 |
gridBagConstraints.gridy = 6; |
|
119 |
gridBagConstraints.weightx = 1.0; |
|
120 |
add(filler1, gridBagConstraints); |
|
121 |
}// </editor-fold>//GEN-END:initComponents |
|
122 |
|
|
123 |
|
|
124 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
125 |
protected javax.swing.JButton acceptButton; |
|
126 |
protected javax.swing.JButton applyButton; |
|
127 |
protected javax.swing.JButton cancelButton; |
|
128 |
protected javax.swing.JPanel content; |
|
129 |
protected javax.swing.Box.Filler filler1; |
|
130 |
protected javax.swing.JLabel titleLabel; |
|
131 |
// End of variables declaration//GEN-END:variables |
|
132 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/propertypage/BasePropertiesPageDialog.java | ||
---|---|---|
1 |
|
|
2 |
package org.gvsig.propertypage; |
|
3 |
|
|
4 |
import java.awt.BorderLayout; |
|
5 |
import java.awt.Component; |
|
6 |
import java.awt.event.ActionEvent; |
|
7 |
import java.awt.event.ActionListener; |
|
8 |
import java.util.List; |
|
9 |
import javax.swing.JComponent; |
|
10 |
import javax.swing.JTabbedPane; |
|
11 |
import org.gvsig.propertypage.PropertiesPage.SetPageEnabledEvent; |
|
12 |
import org.gvsig.tools.ToolsLocator; |
|
13 |
import org.gvsig.tools.i18n.I18nManager; |
|
14 |
import org.gvsig.tools.swing.api.ActionListenerSupport; |
|
15 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2; |
|
16 |
import org.gvsig.tools.util.Invocable; |
|
17 |
import org.gvsig.tools.util.ToolsUtilLocator; |
|
18 |
|
|
19 |
|
|
20 |
public class BasePropertiesPageDialog extends BasePropertiesPagePanelLayout implements org.gvsig.tools.swing.api.Component { |
|
21 |
public static final int ACTION_CANCEL = 0; |
|
22 |
public static final int ACTION_ACCEPT = 1; |
|
23 |
public static final int ACTION_APPLY = 2; |
|
24 |
|
|
25 |
private Object obj; |
|
26 |
private String groupID; |
|
27 |
private List<PropertiesPage> pages = null; |
|
28 |
private int userAction = ACTION_ACCEPT; |
|
29 |
private JTabbedPane tabbedPane = null; |
|
30 |
|
|
31 |
public BasePropertiesPageDialog() { |
|
32 |
} |
|
33 |
|
|
34 |
public BasePropertiesPageDialog(Object obj, String groupID) { |
|
35 |
init(groupID, obj); |
|
36 |
} |
|
37 |
|
|
38 |
protected void init(String groupID, Object obj) { |
|
39 |
this.obj = obj; |
|
40 |
this.groupID = groupID; |
|
41 |
PropertiesPageManager manager = ToolsUtilLocator.getPropertiesPageManager(); |
|
42 |
this.pages = manager.getPages(this.groupID, this, this.obj); |
|
43 |
initComponents(); |
|
44 |
} |
|
45 |
|
|
46 |
protected void initComponents() { |
|
47 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
48 |
|
|
49 |
this.content.setLayout(new BorderLayout()); |
|
50 |
Component contents = createPropertiesPagesPanel(); |
|
51 |
if( contents instanceof JTabbedPane ) { |
|
52 |
this.tabbedPane = (JTabbedPane) contents; |
|
53 |
} |
|
54 |
this.content.add(contents, BorderLayout.CENTER ); |
|
55 |
|
|
56 |
this.titleLabel.setText(""); |
|
57 |
|
|
58 |
this.acceptButton.setText(i18nManager.getTranslation("accept")); |
|
59 |
this.acceptButton.addActionListener( new ActionListener() { |
|
60 |
@Override |
|
61 |
public void actionPerformed(ActionEvent ae) { |
|
62 |
whenAccept(); |
|
63 |
} |
|
64 |
}); |
|
65 |
this.applyButton.setText(i18nManager.getTranslation("apply")); |
|
66 |
this.applyButton.addActionListener( new ActionListener() { |
|
67 |
@Override |
|
68 |
public void actionPerformed(ActionEvent ae) { |
|
69 |
whenApply(); |
|
70 |
} |
|
71 |
}); |
|
72 |
this.cancelButton.setText(i18nManager.getTranslation("cancel")); |
|
73 |
this.cancelButton.addActionListener( new ActionListener() { |
|
74 |
@Override |
|
75 |
public void actionPerformed(ActionEvent ae) { |
|
76 |
whenCancel(); |
|
77 |
} |
|
78 |
}); |
|
79 |
|
|
80 |
} |
|
81 |
|
|
82 |
protected List<PropertiesPage> getPages() { |
|
83 |
return pages; |
|
84 |
} |
|
85 |
|
|
86 |
protected PropertiesPage getPage(Class<? extends PropertiesPage> theClass) { |
|
87 |
for (PropertiesPage page : pages) { |
|
88 |
if( theClass.isInstance(page) ) { |
|
89 |
return page; |
|
90 |
} |
|
91 |
} |
|
92 |
return null; |
|
93 |
} |
|
94 |
|
|
95 |
protected boolean isButtonVisible(int button) { |
|
96 |
switch(button) { |
|
97 |
case WindowManager_v2.BUTTON_APPLY: |
|
98 |
return this.applyButton.isVisible(); |
|
99 |
case WindowManager_v2.BUTTON_OK: |
|
100 |
return acceptButton.isVisible(); |
|
101 |
case WindowManager_v2.BUTTON_CANCEL: |
|
102 |
return cancelButton.isVisible(); |
|
103 |
} |
|
104 |
return false; |
|
105 |
} |
|
106 |
|
|
107 |
protected void setButtonVisible(int button, boolean visible) { |
|
108 |
switch(button) { |
|
109 |
case WindowManager_v2.BUTTON_APPLY: |
|
110 |
this.applyButton.setVisible(visible); |
|
111 |
break; |
|
112 |
case WindowManager_v2.BUTTON_OK: |
|
113 |
this.acceptButton.setVisible(visible); |
|
114 |
break; |
|
115 |
case WindowManager_v2.BUTTON_CANCEL: |
|
116 |
this.cancelButton.setVisible(visible); |
|
117 |
break; |
|
118 |
} |
|
119 |
} |
|
120 |
|
|
121 |
protected void setButtonLabel(int button, String label) { |
|
122 |
switch(button) { |
|
123 |
case WindowManager_v2.BUTTON_APPLY: |
|
124 |
this.applyButton.setText(label); |
|
125 |
break; |
|
126 |
case WindowManager_v2.BUTTON_OK: |
|
127 |
this.acceptButton.setText(label); |
|
128 |
break; |
|
129 |
case WindowManager_v2.BUTTON_CANCEL: |
|
130 |
this.cancelButton.setText(label); |
|
131 |
break; |
|
132 |
} |
|
133 |
} |
|
134 |
|
|
135 |
protected boolean isButtonEnabled(int button) { |
|
136 |
switch(button) { |
|
137 |
case WindowManager_v2.BUTTON_APPLY: |
|
138 |
return this.applyButton.isEnabled(); |
|
139 |
case WindowManager_v2.BUTTON_OK: |
|
140 |
return acceptButton.isEnabled(); |
|
141 |
case WindowManager_v2.BUTTON_CANCEL: |
|
142 |
return cancelButton.isEnabled(); |
|
143 |
} |
|
144 |
return false; |
|
145 |
} |
|
146 |
|
|
147 |
protected void setButtonEnabled(int button, boolean visible) { |
|
148 |
switch(button) { |
|
149 |
case WindowManager_v2.BUTTON_APPLY: |
|
150 |
this.applyButton.setEnabled(visible); |
|
151 |
break; |
|
152 |
case WindowManager_v2.BUTTON_OK: |
|
153 |
this.acceptButton.setEnabled(visible); |
|
154 |
break; |
|
155 |
case WindowManager_v2.BUTTON_CANCEL: |
|
156 |
this.cancelButton.setEnabled(visible); |
|
157 |
break; |
|
158 |
} |
|
159 |
} |
|
160 |
|
|
161 |
protected Component createPropertiesPagesPanel() { |
|
162 |
if( this.pages.size()==1 && !useTabsAlwais() ) { |
|
163 |
PropertiesPage page = this.pages.get(0); |
|
164 |
return page.asJComponent(); |
|
165 |
} else { |
|
166 |
JTabbedPane theTabbedPane = new JTabbedPane(); |
|
167 |
for( int i=0; i<this.pages.size(); i++ ) { |
|
168 |
PropertiesPage page = this.pages.get(i); |
|
169 |
if( page instanceof ActionListenerSupport ) { |
|
170 |
((ActionListenerSupport)page).addActionListener(new ActionListener() { |
|
171 |
@Override |
|
172 |
public void actionPerformed(ActionEvent e) { |
|
173 |
if( e instanceof SetPageEnabledEvent ) { |
|
174 |
SetPageEnabledEvent ee = (SetPageEnabledEvent) e; |
|
175 |
setEnabledAt(ee.getFilter(), ee.isEnabled()); |
|
176 |
} |
|
177 |
} |
|
178 |
}); |
|
179 |
} |
|
180 |
theTabbedPane.addTab(page.getTitle(), page.asJComponent()); |
|
181 |
} |
|
182 |
return theTabbedPane; |
|
183 |
} |
|
184 |
} |
|
185 |
|
|
186 |
protected boolean useTabsAlwais() { |
|
187 |
return false; |
|
188 |
} |
|
189 |
|
|
190 |
public void whenAccept() { |
|
191 |
for( int i=0; i<this.pages.size(); i++ ) { |
|
192 |
PropertiesPage page = this.pages.get(i); |
|
193 |
if( ! page.whenAccept() ) { |
|
194 |
return; |
|
195 |
} |
|
196 |
} |
|
197 |
this.userAction = ACTION_ACCEPT; |
|
198 |
this.closeDialog(); |
|
199 |
} |
|
200 |
|
|
201 |
public void whenApply() { |
|
202 |
for( int i=0; i<this.pages.size(); i++ ) { |
|
203 |
PropertiesPage page = this.pages.get(i); |
|
204 |
if( ! page.whenApply() ) { |
|
205 |
return; |
|
206 |
} |
|
207 |
} |
|
208 |
this.userAction = ACTION_APPLY; |
|
209 |
} |
|
210 |
|
|
211 |
public void whenCancel() { |
|
212 |
for( int i=0; i<this.pages.size(); i++ ) { |
|
213 |
PropertiesPage page = this.pages.get(i); |
|
214 |
if( ! page.whenCancel() ) { |
|
215 |
return; |
|
216 |
} |
|
217 |
} |
|
218 |
this.userAction = ACTION_CANCEL; |
|
219 |
this.closeDialog(); |
|
220 |
} |
|
221 |
|
|
222 |
public int getUserAction() { |
|
223 |
return this.userAction; |
|
224 |
} |
|
225 |
|
|
226 |
protected void closeDialog() { |
|
227 |
this.setVisible(false); |
|
228 |
} |
|
229 |
|
|
230 |
@Override |
|
231 |
public JComponent asJComponent() { |
|
232 |
return this; |
|
233 |
} |
|
234 |
|
|
235 |
public void setEnabledAt(Invocable filter, boolean enabled) { |
|
236 |
if( this.tabbedPane==null ) { |
|
237 |
return; |
|
238 |
} |
|
239 |
for( int i=0; i<this.pages.size(); i++ ) { |
|
240 |
PropertiesPage page = this.pages.get(i); |
|
241 |
if( (Boolean)(filter.call(page)) ) { |
|
242 |
this.tabbedPane.setEnabledAt(i, enabled); |
|
243 |
} |
|
244 |
} |
|
245 |
} |
|
246 |
|
|
247 |
} |
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.198/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/propertypage/BasePropertiesPagePanelLayout.form | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
|
|
3 |
<Form version="1.8" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> |
|
4 |
<AuxValues> |
|
5 |
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> |
|
6 |
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> |
|
7 |
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="false"/> |
|
8 |
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> |
|
9 |
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> |
|
10 |
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> |
|
11 |
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> |
|
12 |
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> |
|
13 |
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="4"/> |
|
14 |
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/> |
|
15 |
</AuxValues> |
|
16 |
<SubComponents> |
|
17 |
<Component class="javax.swing.JLabel" name="titleLabel"> |
|
18 |
<Properties> |
|
19 |
<Property name="text" type="java.lang.String" value="jLabel1"/> |
|
20 |
</Properties> |
|
21 |
<Constraints> |
|
22 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
23 |
<GridBagConstraints gridX="2" gridY="2" gridWidth="7" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="21" weightX="0.0" weightY="0.0"/> |
|
24 |
</Constraint> |
|
25 |
</Constraints> |
|
26 |
</Component> |
|
27 |
<Component class="javax.swing.JButton" name="applyButton"> |
|
28 |
<Properties> |
|
29 |
<Property name="text" type="java.lang.String" value="Apply"/> |
|
30 |
</Properties> |
|
31 |
<Constraints> |
|
32 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
33 |
<GridBagConstraints gridX="6" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="22" weightX="0.1" weightY="0.0"/> |
|
34 |
</Constraint> |
|
35 |
</Constraints> |
|
36 |
</Component> |
|
37 |
<Component class="javax.swing.JButton" name="cancelButton"> |
|
38 |
<Properties> |
|
39 |
<Property name="text" type="java.lang.String" value="Cancel"/> |
|
40 |
</Properties> |
|
41 |
<Constraints> |
|
42 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
43 |
<GridBagConstraints gridX="4" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="22" weightX="0.1" weightY="0.0"/> |
|
44 |
</Constraint> |
|
45 |
</Constraints> |
|
46 |
</Component> |
|
47 |
<Component class="javax.swing.JButton" name="acceptButton"> |
|
48 |
<Properties> |
|
49 |
<Property name="text" type="java.lang.String" value="Accept"/> |
|
50 |
</Properties> |
|
51 |
<Constraints> |
|
52 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
53 |
<GridBagConstraints gridX="8" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="22" weightX="0.1" weightY="0.0"/> |
|
54 |
</Constraint> |
|
55 |
</Constraints> |
|
56 |
</Component> |
|
57 |
<Container class="javax.swing.JPanel" name="content"> |
|
58 |
<Properties> |
|
59 |
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
|
60 |
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> |
|
61 |
<EmptyBorder/> |
|
62 |
</Border> |
|
63 |
</Property> |
|
64 |
</Properties> |
|
65 |
<Constraints> |
|
66 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
67 |
<GridBagConstraints gridX="2" gridY="4" gridWidth="7" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="1.0"/> |
|
68 |
</Constraint> |
|
69 |
</Constraints> |
|
70 |
|
|
71 |
<Layout> |
|
72 |
<DimensionLayout dim="0"> |
|
73 |
<Group type="103" groupAlignment="0" attributes="0"> |
|
74 |
<EmptySpace min="0" pref="388" max="32767" attributes="0"/> |
|
75 |
</Group> |
|
76 |
</DimensionLayout> |
|
77 |
<DimensionLayout dim="1"> |
|
78 |
<Group type="103" groupAlignment="0" attributes="0"> |
|
79 |
<EmptySpace min="0" pref="234" max="32767" attributes="0"/> |
|
80 |
</Group> |
|
81 |
</DimensionLayout> |
|
82 |
</Layout> |
|
83 |
</Container> |
|
84 |
<Component class="javax.swing.Box$Filler" name="filler1"> |
|
85 |
<Properties> |
|
86 |
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> |
|
87 |
<Dimension value="[32767, 0]"/> |
|
88 |
</Property> |
|
89 |
</Properties> |
|
90 |
<AuxValues> |
|
91 |
<AuxValue name="classDetails" type="java.lang.String" value="Box.Filler.HorizontalGlue"/> |
|
92 |
</AuxValues> |
|
93 |
<Constraints> |
|
94 |
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> |
|
95 |
<GridBagConstraints gridX="2" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="0.0"/> |
|
96 |
</Constraint> |
|
97 |
</Constraints> |
|
98 |
</Component> |
|
99 |
</SubComponents> |
|
100 |
<LayoutCode> |
|
101 |
<CodeStatement> |
|
102 |
<CodeExpression id="1_layout"> |
|
103 |
<CodeVariable name="layout" type="4096" declaredType="java.awt.GridBagLayout"/> |
|
104 |
<ExpressionOrigin> |
|
105 |
<ExpressionProvider type="CodeConstructor"> |
|
106 |
<CodeConstructor class="java.awt.GridBagLayout" parameterTypes=""/> |
|
107 |
</ExpressionProvider> |
|
108 |
</ExpressionOrigin> |
|
109 |
</CodeExpression> |
|
110 |
<StatementProvider type="CodeExpression"> |
|
111 |
<CodeExpression id="1_layout"/> |
|
112 |
</StatementProvider> |
|
113 |
</CodeStatement> |
|
114 |
<CodeStatement> |
|
115 |
<CodeExpression id="1_layout"/> |
|
116 |
<StatementProvider type="CodeField"> |
|
117 |
<CodeField name="columnWidths" class="java.awt.GridBagLayout"/> |
|
118 |
</StatementProvider> |
|
119 |
<Parameters> |
|
120 |
<CodeExpression id="2"> |
|
121 |
<ExpressionOrigin> |
|
122 |
<Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> |
|
123 |
<PropertyValue value="[0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0]"/> |
|
124 |
</Value> |
|
125 |
</ExpressionOrigin> |
|
126 |
</CodeExpression> |
|
127 |
</Parameters> |
|
128 |
</CodeStatement> |
|
129 |
<CodeStatement> |
|
130 |
<CodeExpression id="1_layout"/> |
|
131 |
<StatementProvider type="CodeField"> |
|
132 |
<CodeField name="rowHeights" class="java.awt.GridBagLayout"/> |
|
133 |
</StatementProvider> |
|
134 |
<Parameters> |
|
135 |
<CodeExpression id="3"> |
|
136 |
<ExpressionOrigin> |
|
137 |
<Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> |
|
138 |
<PropertyValue value="[0, 4, 0, 4, 0, 4, 0, 4, 0]"/> |
|
139 |
</Value> |
|
140 |
</ExpressionOrigin> |
|
141 |
</CodeExpression> |
|
142 |
</Parameters> |
|
143 |
</CodeStatement> |
|
144 |
<CodeStatement> |
|
145 |
<CodeExpression id="4"> |
|
146 |
<ExpressionOrigin> |
|
147 |
<ExpressionProvider type="ComponentRef"> |
|
148 |
<ComponentRef name="."/> |
|
149 |
</ExpressionProvider> |
|
150 |
</ExpressionOrigin> |
|
151 |
</CodeExpression> |
|
152 |
<StatementProvider type="CodeMethod"> |
|
153 |
<CodeMethod name="setLayout" class="java.awt.Container" parameterTypes="java.awt.LayoutManager"/> |
|
154 |
</StatementProvider> |
|
155 |
<Parameters> |
|
156 |
<CodeExpression id="1_layout"/> |
|
157 |
</Parameters> |
|
158 |
</CodeStatement> |
|
159 |
<CodeStatement> |
|
160 |
<CodeExpression id="5_gridBagConstraints"> |
|
161 |
<CodeVariable name="gridBagConstraints" type="20480" declaredType="java.awt.GridBagConstraints"/> |
|
162 |
<ExpressionOrigin> |
|
163 |
<ExpressionProvider type="CodeConstructor"> |
|
164 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
165 |
</ExpressionProvider> |
|
166 |
</ExpressionOrigin> |
|
167 |
</CodeExpression> |
|
168 |
<StatementProvider type="CodeExpression"> |
|
169 |
<CodeExpression id="5_gridBagConstraints"/> |
|
170 |
</StatementProvider> |
|
171 |
</CodeStatement> |
|
172 |
<CodeStatement> |
|
173 |
<CodeExpression id="5_gridBagConstraints"/> |
|
174 |
<StatementProvider type="CodeField"> |
|
175 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
176 |
</StatementProvider> |
|
177 |
<Parameters> |
|
178 |
<CodeExpression id="6"> |
|
179 |
<ExpressionOrigin> |
|
180 |
<Value type="int" value="2"/> |
|
181 |
</ExpressionOrigin> |
|
182 |
</CodeExpression> |
|
183 |
</Parameters> |
|
184 |
</CodeStatement> |
|
185 |
<CodeStatement> |
|
186 |
<CodeExpression id="5_gridBagConstraints"/> |
|
187 |
<StatementProvider type="CodeField"> |
|
188 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
189 |
</StatementProvider> |
|
190 |
<Parameters> |
|
191 |
<CodeExpression id="7"> |
|
192 |
<ExpressionOrigin> |
|
193 |
<Value type="int" value="2"/> |
|
194 |
</ExpressionOrigin> |
|
195 |
</CodeExpression> |
|
196 |
</Parameters> |
|
197 |
</CodeStatement> |
|
198 |
<CodeStatement> |
|
199 |
<CodeExpression id="5_gridBagConstraints"/> |
|
200 |
<StatementProvider type="CodeField"> |
|
201 |
<CodeField name="gridwidth" class="java.awt.GridBagConstraints"/> |
|
202 |
</StatementProvider> |
|
203 |
<Parameters> |
|
204 |
<CodeExpression id="8"> |
|
205 |
<ExpressionOrigin> |
|
206 |
<Value type="int" value="7"/> |
|
207 |
</ExpressionOrigin> |
|
208 |
</CodeExpression> |
|
209 |
</Parameters> |
|
210 |
</CodeStatement> |
|
211 |
<CodeStatement> |
|
212 |
<CodeExpression id="5_gridBagConstraints"/> |
|
213 |
<StatementProvider type="CodeField"> |
|
214 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
215 |
</StatementProvider> |
|
216 |
<Parameters> |
|
217 |
<CodeExpression id="9"> |
|
218 |
<ExpressionOrigin> |
|
219 |
<Value type="int" value="2"/> |
|
220 |
</ExpressionOrigin> |
|
221 |
</CodeExpression> |
|
222 |
</Parameters> |
|
223 |
</CodeStatement> |
|
224 |
<CodeStatement> |
|
225 |
<CodeExpression id="5_gridBagConstraints"/> |
|
226 |
<StatementProvider type="CodeField"> |
|
227 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
228 |
</StatementProvider> |
|
229 |
<Parameters> |
|
230 |
<CodeExpression id="10"> |
|
231 |
<ExpressionOrigin> |
|
232 |
<Value type="int" value="21"/> |
|
233 |
</ExpressionOrigin> |
|
234 |
</CodeExpression> |
|
235 |
</Parameters> |
|
236 |
</CodeStatement> |
|
237 |
<CodeStatement> |
|
238 |
<CodeExpression id="4"/> |
|
239 |
<StatementProvider type="CodeMethod"> |
|
240 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
241 |
</StatementProvider> |
|
242 |
<Parameters> |
|
243 |
<CodeExpression id="11_titleLabel"> |
|
244 |
<CodeVariable name="titleLabel" type="8196" declaredType="javax.swing.JLabel"/> |
|
245 |
<ExpressionOrigin> |
|
246 |
<ExpressionProvider type="ComponentRef"> |
|
247 |
<ComponentRef name="titleLabel"/> |
|
248 |
</ExpressionProvider> |
|
249 |
</ExpressionOrigin> |
|
250 |
</CodeExpression> |
|
251 |
<CodeExpression id="5_gridBagConstraints"/> |
|
252 |
</Parameters> |
|
253 |
</CodeStatement> |
|
254 |
<CodeStatement> |
|
255 |
<CodeExpression id="12_gridBagConstraints"> |
|
256 |
<CodeVariable name="gridBagConstraints"/> |
|
257 |
<ExpressionOrigin> |
|
258 |
<ExpressionProvider type="CodeConstructor"> |
|
259 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
260 |
</ExpressionProvider> |
|
261 |
</ExpressionOrigin> |
|
262 |
</CodeExpression> |
|
263 |
<StatementProvider type="CodeExpression"> |
|
264 |
<CodeExpression id="12_gridBagConstraints"/> |
|
265 |
</StatementProvider> |
|
266 |
</CodeStatement> |
|
267 |
<CodeStatement> |
|
268 |
<CodeExpression id="12_gridBagConstraints"/> |
|
269 |
<StatementProvider type="CodeField"> |
|
270 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
271 |
</StatementProvider> |
|
272 |
<Parameters> |
|
273 |
<CodeExpression id="13"> |
|
274 |
<ExpressionOrigin> |
|
275 |
<Value type="int" value="6"/> |
|
276 |
</ExpressionOrigin> |
|
277 |
</CodeExpression> |
|
278 |
</Parameters> |
|
279 |
</CodeStatement> |
|
280 |
<CodeStatement> |
|
281 |
<CodeExpression id="12_gridBagConstraints"/> |
|
282 |
<StatementProvider type="CodeField"> |
|
283 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
284 |
</StatementProvider> |
|
285 |
<Parameters> |
|
286 |
<CodeExpression id="14"> |
|
287 |
<ExpressionOrigin> |
|
288 |
<Value type="int" value="6"/> |
|
289 |
</ExpressionOrigin> |
|
290 |
</CodeExpression> |
|
291 |
</Parameters> |
|
292 |
</CodeStatement> |
|
293 |
<CodeStatement> |
|
294 |
<CodeExpression id="12_gridBagConstraints"/> |
|
295 |
<StatementProvider type="CodeField"> |
|
296 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
297 |
</StatementProvider> |
|
298 |
<Parameters> |
|
299 |
<CodeExpression id="15"> |
|
300 |
<ExpressionOrigin> |
|
301 |
<Value type="int" value="2"/> |
|
302 |
</ExpressionOrigin> |
|
303 |
</CodeExpression> |
|
304 |
</Parameters> |
|
305 |
</CodeStatement> |
|
306 |
<CodeStatement> |
|
307 |
<CodeExpression id="12_gridBagConstraints"/> |
|
308 |
<StatementProvider type="CodeField"> |
|
309 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
310 |
</StatementProvider> |
|
311 |
<Parameters> |
|
312 |
<CodeExpression id="16"> |
|
313 |
<ExpressionOrigin> |
|
314 |
<Value type="int" value="22"/> |
|
315 |
</ExpressionOrigin> |
|
316 |
</CodeExpression> |
|
317 |
</Parameters> |
|
318 |
</CodeStatement> |
|
319 |
<CodeStatement> |
|
320 |
<CodeExpression id="12_gridBagConstraints"/> |
|
321 |
<StatementProvider type="CodeField"> |
|
322 |
<CodeField name="weightx" class="java.awt.GridBagConstraints"/> |
|
323 |
</StatementProvider> |
|
324 |
<Parameters> |
|
325 |
<CodeExpression id="17"> |
|
326 |
<ExpressionOrigin> |
|
327 |
<Value type="double" value="0.1"/> |
|
328 |
</ExpressionOrigin> |
|
329 |
</CodeExpression> |
|
330 |
</Parameters> |
|
331 |
</CodeStatement> |
|
332 |
<CodeStatement> |
|
333 |
<CodeExpression id="4"/> |
|
334 |
<StatementProvider type="CodeMethod"> |
|
335 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
336 |
</StatementProvider> |
|
337 |
<Parameters> |
|
338 |
<CodeExpression id="18_applyButton"> |
|
339 |
<CodeVariable name="applyButton" type="8196" declaredType="javax.swing.JButton"/> |
|
340 |
<ExpressionOrigin> |
|
341 |
<ExpressionProvider type="ComponentRef"> |
|
342 |
<ComponentRef name="applyButton"/> |
|
343 |
</ExpressionProvider> |
|
344 |
</ExpressionOrigin> |
|
345 |
</CodeExpression> |
|
346 |
<CodeExpression id="12_gridBagConstraints"/> |
|
347 |
</Parameters> |
|
348 |
</CodeStatement> |
|
349 |
<CodeStatement> |
|
350 |
<CodeExpression id="19_gridBagConstraints"> |
|
351 |
<CodeVariable name="gridBagConstraints"/> |
|
352 |
<ExpressionOrigin> |
|
353 |
<ExpressionProvider type="CodeConstructor"> |
|
354 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
355 |
</ExpressionProvider> |
|
356 |
</ExpressionOrigin> |
|
357 |
</CodeExpression> |
|
358 |
<StatementProvider type="CodeExpression"> |
|
359 |
<CodeExpression id="19_gridBagConstraints"/> |
|
360 |
</StatementProvider> |
|
361 |
</CodeStatement> |
|
362 |
<CodeStatement> |
|
363 |
<CodeExpression id="19_gridBagConstraints"/> |
|
364 |
<StatementProvider type="CodeField"> |
|
365 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
366 |
</StatementProvider> |
|
367 |
<Parameters> |
|
368 |
<CodeExpression id="20"> |
|
369 |
<ExpressionOrigin> |
|
370 |
<Value type="int" value="4"/> |
|
371 |
</ExpressionOrigin> |
|
372 |
</CodeExpression> |
|
373 |
</Parameters> |
|
374 |
</CodeStatement> |
|
375 |
<CodeStatement> |
|
376 |
<CodeExpression id="19_gridBagConstraints"/> |
|
377 |
<StatementProvider type="CodeField"> |
|
378 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
379 |
</StatementProvider> |
|
380 |
<Parameters> |
|
381 |
<CodeExpression id="21"> |
|
382 |
<ExpressionOrigin> |
|
383 |
<Value type="int" value="6"/> |
|
384 |
</ExpressionOrigin> |
|
385 |
</CodeExpression> |
|
386 |
</Parameters> |
|
387 |
</CodeStatement> |
|
388 |
<CodeStatement> |
|
389 |
<CodeExpression id="19_gridBagConstraints"/> |
|
390 |
<StatementProvider type="CodeField"> |
|
391 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
392 |
</StatementProvider> |
|
393 |
<Parameters> |
|
394 |
<CodeExpression id="22"> |
|
395 |
<ExpressionOrigin> |
|
396 |
<Value type="int" value="2"/> |
|
397 |
</ExpressionOrigin> |
|
398 |
</CodeExpression> |
|
399 |
</Parameters> |
|
400 |
</CodeStatement> |
|
401 |
<CodeStatement> |
|
402 |
<CodeExpression id="19_gridBagConstraints"/> |
|
403 |
<StatementProvider type="CodeField"> |
|
404 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
405 |
</StatementProvider> |
|
406 |
<Parameters> |
|
407 |
<CodeExpression id="23"> |
|
408 |
<ExpressionOrigin> |
|
409 |
<Value type="int" value="22"/> |
|
410 |
</ExpressionOrigin> |
|
411 |
</CodeExpression> |
|
412 |
</Parameters> |
|
413 |
</CodeStatement> |
|
414 |
<CodeStatement> |
|
415 |
<CodeExpression id="19_gridBagConstraints"/> |
|
416 |
<StatementProvider type="CodeField"> |
|
417 |
<CodeField name="weightx" class="java.awt.GridBagConstraints"/> |
|
418 |
</StatementProvider> |
|
419 |
<Parameters> |
|
420 |
<CodeExpression id="24"> |
|
421 |
<ExpressionOrigin> |
|
422 |
<Value type="double" value="0.1"/> |
|
423 |
</ExpressionOrigin> |
|
424 |
</CodeExpression> |
|
425 |
</Parameters> |
|
426 |
</CodeStatement> |
|
427 |
<CodeStatement> |
|
428 |
<CodeExpression id="4"/> |
|
429 |
<StatementProvider type="CodeMethod"> |
|
430 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
431 |
</StatementProvider> |
|
432 |
<Parameters> |
|
433 |
<CodeExpression id="25_cancelButton"> |
|
434 |
<CodeVariable name="cancelButton" type="8196" declaredType="javax.swing.JButton"/> |
|
435 |
<ExpressionOrigin> |
|
436 |
<ExpressionProvider type="ComponentRef"> |
|
437 |
<ComponentRef name="cancelButton"/> |
|
438 |
</ExpressionProvider> |
|
439 |
</ExpressionOrigin> |
|
440 |
</CodeExpression> |
|
441 |
<CodeExpression id="19_gridBagConstraints"/> |
|
442 |
</Parameters> |
|
443 |
</CodeStatement> |
|
444 |
<CodeStatement> |
|
445 |
<CodeExpression id="26_gridBagConstraints"> |
|
446 |
<CodeVariable name="gridBagConstraints"/> |
|
447 |
<ExpressionOrigin> |
|
448 |
<ExpressionProvider type="CodeConstructor"> |
|
449 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
450 |
</ExpressionProvider> |
|
451 |
</ExpressionOrigin> |
|
452 |
</CodeExpression> |
|
453 |
<StatementProvider type="CodeExpression"> |
|
454 |
<CodeExpression id="26_gridBagConstraints"/> |
|
455 |
</StatementProvider> |
|
456 |
</CodeStatement> |
|
457 |
<CodeStatement> |
|
458 |
<CodeExpression id="26_gridBagConstraints"/> |
|
459 |
<StatementProvider type="CodeField"> |
|
460 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
461 |
</StatementProvider> |
|
462 |
<Parameters> |
|
463 |
<CodeExpression id="27"> |
|
464 |
<ExpressionOrigin> |
|
465 |
<Value type="int" value="8"/> |
|
466 |
</ExpressionOrigin> |
|
467 |
</CodeExpression> |
|
468 |
</Parameters> |
|
469 |
</CodeStatement> |
|
470 |
<CodeStatement> |
|
471 |
<CodeExpression id="26_gridBagConstraints"/> |
|
472 |
<StatementProvider type="CodeField"> |
|
473 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
474 |
</StatementProvider> |
|
475 |
<Parameters> |
|
476 |
<CodeExpression id="28"> |
|
477 |
<ExpressionOrigin> |
|
478 |
<Value type="int" value="6"/> |
|
479 |
</ExpressionOrigin> |
|
480 |
</CodeExpression> |
|
481 |
</Parameters> |
|
482 |
</CodeStatement> |
|
483 |
<CodeStatement> |
|
484 |
<CodeExpression id="26_gridBagConstraints"/> |
|
485 |
<StatementProvider type="CodeField"> |
|
486 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
487 |
</StatementProvider> |
|
488 |
<Parameters> |
|
489 |
<CodeExpression id="29"> |
|
490 |
<ExpressionOrigin> |
|
491 |
<Value type="int" value="2"/> |
|
492 |
</ExpressionOrigin> |
|
493 |
</CodeExpression> |
|
494 |
</Parameters> |
|
495 |
</CodeStatement> |
|
496 |
<CodeStatement> |
|
497 |
<CodeExpression id="26_gridBagConstraints"/> |
|
498 |
<StatementProvider type="CodeField"> |
|
499 |
<CodeField name="anchor" class="java.awt.GridBagConstraints"/> |
|
500 |
</StatementProvider> |
|
501 |
<Parameters> |
|
502 |
<CodeExpression id="30"> |
|
503 |
<ExpressionOrigin> |
|
504 |
<Value type="int" value="22"/> |
|
505 |
</ExpressionOrigin> |
|
506 |
</CodeExpression> |
|
507 |
</Parameters> |
|
508 |
</CodeStatement> |
|
509 |
<CodeStatement> |
|
510 |
<CodeExpression id="26_gridBagConstraints"/> |
|
511 |
<StatementProvider type="CodeField"> |
|
512 |
<CodeField name="weightx" class="java.awt.GridBagConstraints"/> |
|
513 |
</StatementProvider> |
|
514 |
<Parameters> |
|
515 |
<CodeExpression id="31"> |
|
516 |
<ExpressionOrigin> |
|
517 |
<Value type="double" value="0.1"/> |
|
518 |
</ExpressionOrigin> |
|
519 |
</CodeExpression> |
|
520 |
</Parameters> |
|
521 |
</CodeStatement> |
|
522 |
<CodeStatement> |
|
523 |
<CodeExpression id="4"/> |
|
524 |
<StatementProvider type="CodeMethod"> |
|
525 |
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> |
|
526 |
</StatementProvider> |
|
527 |
<Parameters> |
|
528 |
<CodeExpression id="32_acceptButton"> |
|
529 |
<CodeVariable name="acceptButton" type="8196" declaredType="javax.swing.JButton"/> |
|
530 |
<ExpressionOrigin> |
|
531 |
<ExpressionProvider type="ComponentRef"> |
|
532 |
<ComponentRef name="acceptButton"/> |
|
533 |
</ExpressionProvider> |
|
534 |
</ExpressionOrigin> |
|
535 |
</CodeExpression> |
|
536 |
<CodeExpression id="26_gridBagConstraints"/> |
|
537 |
</Parameters> |
|
538 |
</CodeStatement> |
|
539 |
<CodeStatement> |
|
540 |
<CodeExpression id="33_gridBagConstraints"> |
|
541 |
<CodeVariable name="gridBagConstraints"/> |
|
542 |
<ExpressionOrigin> |
|
543 |
<ExpressionProvider type="CodeConstructor"> |
|
544 |
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> |
|
545 |
</ExpressionProvider> |
|
546 |
</ExpressionOrigin> |
|
547 |
</CodeExpression> |
|
548 |
<StatementProvider type="CodeExpression"> |
|
549 |
<CodeExpression id="33_gridBagConstraints"/> |
|
550 |
</StatementProvider> |
|
551 |
</CodeStatement> |
|
552 |
<CodeStatement> |
|
553 |
<CodeExpression id="33_gridBagConstraints"/> |
|
554 |
<StatementProvider type="CodeField"> |
|
555 |
<CodeField name="gridx" class="java.awt.GridBagConstraints"/> |
|
556 |
</StatementProvider> |
|
557 |
<Parameters> |
|
558 |
<CodeExpression id="34"> |
|
559 |
<ExpressionOrigin> |
|
560 |
<Value type="int" value="2"/> |
|
561 |
</ExpressionOrigin> |
|
562 |
</CodeExpression> |
|
563 |
</Parameters> |
|
564 |
</CodeStatement> |
|
565 |
<CodeStatement> |
|
566 |
<CodeExpression id="33_gridBagConstraints"/> |
|
567 |
<StatementProvider type="CodeField"> |
|
568 |
<CodeField name="gridy" class="java.awt.GridBagConstraints"/> |
|
569 |
</StatementProvider> |
|
570 |
<Parameters> |
|
571 |
<CodeExpression id="35"> |
|
572 |
<ExpressionOrigin> |
|
573 |
<Value type="int" value="4"/> |
|
574 |
</ExpressionOrigin> |
|
575 |
</CodeExpression> |
|
576 |
</Parameters> |
|
577 |
</CodeStatement> |
|
578 |
<CodeStatement> |
|
579 |
<CodeExpression id="33_gridBagConstraints"/> |
|
580 |
<StatementProvider type="CodeField"> |
|
581 |
<CodeField name="gridwidth" class="java.awt.GridBagConstraints"/> |
|
582 |
</StatementProvider> |
|
583 |
<Parameters> |
|
584 |
<CodeExpression id="36"> |
|
585 |
<ExpressionOrigin> |
|
586 |
<Value type="int" value="7"/> |
|
587 |
</ExpressionOrigin> |
|
588 |
</CodeExpression> |
|
589 |
</Parameters> |
|
590 |
</CodeStatement> |
|
591 |
<CodeStatement> |
|
592 |
<CodeExpression id="33_gridBagConstraints"/> |
|
593 |
<StatementProvider type="CodeField"> |
|
594 |
<CodeField name="fill" class="java.awt.GridBagConstraints"/> |
|
595 |
</StatementProvider> |
|
596 |
<Parameters> |
|
597 |
<CodeExpression id="37"> |
|
598 |
<ExpressionOrigin> |
|
599 |
<Value type="int" value="1"/> |
|
600 |
</ExpressionOrigin> |
|
601 |
</CodeExpression> |
|
602 |
</Parameters> |
Also available in: Unified diff