Revision 981
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
94 | 94 |
<include>org.scala-lang:scalap</include> |
95 | 95 |
--> |
96 | 96 |
<include>jline:jline</include> |
97 |
|
|
98 |
|
|
97 |
|
|
99 | 98 |
</includes> |
100 | 99 |
</dependencySet> |
101 | 100 |
|
101 |
<dependencySet> |
|
102 |
<useProjectArtifact>false</useProjectArtifact> |
|
103 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
104 |
<outputDirectory>lib</outputDirectory> |
|
105 |
<includes> |
|
106 |
<!-- |
|
107 |
JGit support runtime libraries |
|
108 |
--> |
|
109 |
<include>org.eclipse.jgit:org.eclipse.jgit</include> |
|
110 |
<include>com.jcraft:jsch</include> |
|
111 |
<include>com.googlecode.javaewah:JavaEWAH</include> |
|
112 |
<include>org.apache.httpcomponents:httpclient</include> |
|
113 |
<include>org.apache.httpcomponents:httpcore</include> |
|
114 |
</includes> |
|
115 |
</dependencySet> |
|
102 | 116 |
|
117 |
<dependencySet> |
|
118 |
<useProjectArtifact>false</useProjectArtifact> |
|
119 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
120 |
<outputDirectory>lib</outputDirectory> |
|
121 |
<includes> |
|
122 |
<!-- |
|
123 |
ICEPDF support runtime libraries |
|
124 |
--> |
|
125 |
<include>org.icepdf.os:icepdf-viewer</include> |
|
126 |
<include>org.icepdf.os:icepdf-core</include> |
|
127 |
</includes> |
|
128 |
</dependencySet> |
|
129 |
|
|
130 |
<dependencySet> |
|
131 |
<useProjectArtifact>false</useProjectArtifact> |
|
132 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
133 |
<outputDirectory>lib</outputDirectory> |
|
134 |
<includes> |
|
135 |
<!-- |
|
136 |
flexmark-java, Markdown support libreries |
|
137 |
--> |
|
138 |
<include>com.vladsch.flexmark:flexmark-all</include> |
|
139 |
<include>com.vladsch.flexmark:flexmark</include> |
|
140 |
<include>com.vladsch.flexmark:flexmark-ext-abbreviation</include> |
|
141 |
<include>com.vladsch.flexmark:flexmark-ext-anchorlink</include> |
|
142 |
<include>com.vladsch.flexmark:flexmark-ext-aside</include> |
|
143 |
<include>com.vladsch.flexmark:flexmark-ext-autolink</include> |
|
144 |
<include>org.nibor.autolink:autolink</include> |
|
145 |
<include>com.vladsch.flexmark:flexmark-ext-definition</include> |
|
146 |
<include>com.vladsch.flexmark:flexmark-ext-emoji</include> |
|
147 |
<include>com.vladsch.flexmark:flexmark-ext-escaped-character</include> |
|
148 |
<include>com.vladsch.flexmark:flexmark-ext-footnotes</include> |
|
149 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-issues</include> |
|
150 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-strikethrough</include> |
|
151 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-tables</include> |
|
152 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-tasklist</include> |
|
153 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-users</include> |
|
154 |
<include>com.vladsch.flexmark:flexmark-ext-jekyll-front-matter</include> |
|
155 |
<include>com.vladsch.flexmark:flexmark-ext-jekyll-tag</include> |
|
156 |
<include>com.vladsch.flexmark:flexmark-ext-ins</include> |
|
157 |
<include>com.vladsch.flexmark:flexmark-ext-xwiki-macros</include> |
|
158 |
<include>com.vladsch.flexmark:flexmark-ext-superscript</include> |
|
159 |
<include>com.vladsch.flexmark:flexmark-ext-tables</include> |
|
160 |
<include>com.vladsch.flexmark:flexmark-ext-toc</include> |
|
161 |
<include>com.vladsch.flexmark:flexmark-ext-typographic</include> |
|
162 |
<include>com.vladsch.flexmark:flexmark-ext-wikilink</include> |
|
163 |
<include>com.vladsch.flexmark:flexmark-ext-yaml-front-matter</include> |
|
164 |
<include>com.vladsch.flexmark:flexmark-formatter</include> |
|
165 |
<include>com.vladsch.flexmark:flexmark-html-parser</include> |
|
166 |
<include>org.jsoup:jsoup</include> |
|
167 |
<include>com.vladsch.flexmark:flexmark-jira-converter</include> |
|
168 |
<include>com.vladsch.flexmark:flexmark-pdf-converter</include> |
|
169 |
<include>com.openhtmltopdf:openhtmltopdf-core</include> |
|
170 |
<include>com.openhtmltopdf:openhtmltopdf-pdfbox</include> |
|
171 |
<include>org.apache.pdfbox:pdfbox</include> |
|
172 |
<include>org.apache.pdfbox:fontbox</include> |
|
173 |
<include>com.openhtmltopdf:openhtmltopdf-rtl-support</include> |
|
174 |
<include>com.ibm.icu:icu4j</include> |
|
175 |
<include>com.openhtmltopdf:openhtmltopdf-jsoup-dom-converter</include> |
|
176 |
<include>com.vladsch.flexmark:flexmark-profile-pegdown</include> |
|
177 |
<include>com.vladsch.flexmark:flexmark-util</include> |
|
178 |
<include>com.vladsch.flexmark:flexmark-youtrack-converter</include> |
|
179 |
</includes> |
|
180 |
</dependencySet> |
|
181 |
|
|
103 | 182 |
</dependencySets> |
104 | 183 |
|
105 | 184 |
</assembly> |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/libs.inf | ||
---|---|---|
6 | 6 |
version = |
7 | 7 |
|
8 | 8 |
[Folder] |
9 |
path = ../lib/gvsig/libs
|
|
9 |
path = ../lib |
|
10 | 10 |
|
11 | 11 |
|
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/pom.xml | ||
---|---|---|
234 | 234 |
<artifactId>antlr-runtime</artifactId> |
235 | 235 |
<!-- Ojo que forzamos una version en concreto --> |
236 | 236 |
<version>3.5.2</version> |
237 |
</dependency> |
|
238 |
|
|
239 |
<!-- JGit runtime dependencies --> |
|
240 |
<dependency> |
|
241 |
<groupId>org.eclipse.jgit</groupId> |
|
242 |
<artifactId>org.eclipse.jgit</artifactId> |
|
243 |
<scope>runtime</scope> |
|
237 | 244 |
</dependency> |
245 |
|
|
246 |
<dependency> |
|
247 |
<groupId>org.icepdf.os</groupId> |
|
248 |
<artifactId>icepdf-viewer</artifactId> |
|
249 |
<version>6.2.2</version> |
|
250 |
<exclusions> |
|
251 |
<exclusion> |
|
252 |
<groupId>batik</groupId> |
|
253 |
<artifactId>batik-awt-util</artifactId> |
|
254 |
</exclusion> |
|
255 |
<exclusion> |
|
256 |
<groupId>batik</groupId> |
|
257 |
<artifactId>batik-dom</artifactId> |
|
258 |
</exclusion> |
|
259 |
<exclusion> |
|
260 |
<groupId>batik</groupId> |
|
261 |
<artifactId>batik-svg-dom</artifactId> |
|
262 |
</exclusion> |
|
263 |
<exclusion> |
|
264 |
<groupId>batik</groupId> |
|
265 |
<artifactId>batik-svggen</artifactId> |
|
266 |
</exclusion> |
|
267 |
<exclusion> |
|
268 |
<groupId>batik</groupId> |
|
269 |
<artifactId>batik-util</artifactId> |
|
270 |
</exclusion> |
|
271 |
<exclusion> |
|
272 |
<groupId>batik</groupId> |
|
273 |
<artifactId>batik-xml</artifactId> |
|
274 |
</exclusion> |
|
275 |
</exclusions> |
|
276 |
|
|
277 |
</dependency> |
|
278 |
|
|
279 |
<dependency> |
|
280 |
<groupId>com.vladsch.flexmark</groupId> |
|
281 |
<artifactId>flexmark-all</artifactId> |
|
282 |
<version>0.27.0</version> |
|
283 |
</dependency> |
|
284 |
|
|
238 | 285 |
</dependencies> |
239 | 286 |
|
240 | 287 |
|
241 | 288 |
org.gvsig.scripting/trunk/org.gvsig.scripting/pom.xml | ||
---|---|---|
212 | 212 |
<artifactId>jstyleparser</artifactId> |
213 | 213 |
<version>1.18</version> |
214 | 214 |
</dependency> |
215 |
<dependency> |
|
216 |
<groupId>org.eclipse.jgit</groupId> |
|
217 |
<artifactId>org.eclipse.jgit</artifactId> |
|
218 |
<version>4.9.0.201710071750-r</version> |
|
219 |
</dependency> |
|
215 | 220 |
|
216 | 221 |
</dependencies> |
217 | 222 |
</dependencyManagement> |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.api/src/main/java/org/gvsig/scripting/ScriptingUnit.java | ||
---|---|---|
87 | 87 |
*/ |
88 | 88 |
public void setVersion(String version); |
89 | 89 |
|
90 |
public void reload(); |
|
91 |
|
|
90 | 92 |
/** |
91 | 93 |
* Changes the ID of a ScriptingUnit and the name of the files and/or directories associated |
92 | 94 |
* |
... | ... | |
152 | 154 |
public void setProperty(String name, String value); |
153 | 155 |
|
154 | 156 |
public Map<String,String> getProperties(); |
157 |
|
|
158 |
public boolean isASystemUnit(); |
|
155 | 159 |
} |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.impl/src/main/java/org/gvsig/scripting/impl/DefaultScriptingScript.java | ||
---|---|---|
305 | 305 |
} |
306 | 306 |
loadInf(prefs); |
307 | 307 |
} |
308 |
this.setCode(null); |
|
308 | 309 |
this.setSaved(true); |
309 | 310 |
} |
310 | 311 |
|
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.impl/src/main/java/org/gvsig/scripting/impl/DefaultScriptingFolder.java | ||
---|---|---|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
String id = FilenameUtils.getBaseName(afile.getAbsolutePath()); |
114 |
if( StringUtils.isBlank(id) ) { |
|
115 |
id = afile.getName(); |
|
116 |
} |
|
114 | 117 |
ScriptingFolder parent; |
115 | 118 |
if (FilenameUtils.equalsNormalizedOnSystem(this.getFile().getAbsolutePath(), file.getParentFile().getAbsolutePath())) { |
116 | 119 |
parent = this; |
... | ... | |
123 | 126 |
|
124 | 127 |
} else if (file.isFile()) { |
125 | 128 |
if (!file.getName().endsWith(".inf")) { |
126 |
file = new File(file.getParentFile(), |
|
127 |
FilenameUtils.getBaseName(file.getName()) + ".inf"); |
|
129 |
file = new File(file.getParentFile(),id + ".inf"); |
|
128 | 130 |
} |
129 | 131 |
if (!file.exists()) { |
130 | 132 |
logger.warn("Can't get Unit, file '" + file.getAbsolutePath() + "' not exists."); |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.impl/src/main/java/org/gvsig/scripting/impl/AbstractUnit.java | ||
---|---|---|
6 | 6 |
import java.io.IOException; |
7 | 7 |
import java.util.HashMap; |
8 | 8 |
import java.util.HashSet; |
9 |
import java.util.List; |
|
9 | 10 |
import java.util.Map; |
10 | 11 |
import java.util.Set; |
12 |
import java.util.logging.Level; |
|
11 | 13 |
|
12 | 14 |
import org.ini4j.Ini; |
13 | 15 |
import org.slf4j.Logger; |
... | ... | |
83 | 85 |
public abstract void load(ScriptingFolder folder, String id); |
84 | 86 |
|
85 | 87 |
@Override |
88 |
public void reload() { |
|
89 |
this.load( this.getParent(), this.getId()); |
|
90 |
} |
|
91 |
|
|
92 |
@Override |
|
86 | 93 |
public String toString() { |
87 | 94 |
if (this.getName() == null) { |
88 | 95 |
return "(" + this.getClass().getSimpleName() + ")"; |
... | ... | |
309 | 316 |
return this.properties.get(name); |
310 | 317 |
} |
311 | 318 |
|
319 |
@Override |
|
312 | 320 |
public Map<String,String> getProperties() { |
313 | 321 |
return this.properties; |
314 | 322 |
} |
323 |
|
|
324 |
@Override |
|
325 |
public boolean isASystemUnit() { |
|
326 |
String pathUnit; |
|
327 |
try { |
|
328 |
pathUnit = this.getParent().getFile().getCanonicalPath(); |
|
329 |
} catch (IOException ex) { |
|
330 |
pathUnit = this.getParent().getFile().getAbsolutePath(); |
|
331 |
} |
|
332 |
if( !pathUnit.endsWith(File.separator) ) { |
|
333 |
pathUnit = pathUnit + File.separator; |
|
334 |
} |
|
335 |
List<File> libs = this.getManager().getLibFolders(); |
|
336 |
for( File lib : libs ) { |
|
337 |
String pathLib; |
|
338 |
try { |
|
339 |
pathLib = lib.getCanonicalPath(); |
|
340 |
} catch (IOException ex) { |
|
341 |
pathLib = lib.getAbsolutePath(); |
|
342 |
} |
|
343 |
if( !pathLib.endsWith(File.separator) ) { |
|
344 |
pathLib = pathLib + File.separator; |
|
345 |
} |
|
346 |
if( pathUnit.startsWith(pathLib) ) { |
|
347 |
return true; |
|
348 |
} |
|
349 |
} |
|
350 |
return false; |
|
351 |
} |
|
315 | 352 |
|
316 | 353 |
} |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/DefaultJScriptingBrowser.java | ||
---|---|---|
339 | 339 |
|
340 | 340 |
private void fireDefaultAction(TreePath path) { |
341 | 341 |
ScriptingUnit unit = (ScriptingUnit) path.getLastPathComponent(); |
342 |
unit.reload(); |
|
342 | 343 |
ActionEvent ae = new DefaultBrowserActionEvent( |
343 | 344 |
this, |
344 | 345 |
DEFAULT_ACTION, |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/ExternalFileEditorView.xml | ||
---|---|---|
25 | 25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
26 | 26 |
</super> |
27 | 27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/ExternalFileEditorView.xml</at> |
28 |
<at name="rowspecs">CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE</at>
|
|
29 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at>
|
|
28 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0)</at>
|
|
29 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0)</at>
|
|
30 | 30 |
<at name="components"> |
31 | 31 |
<object classname="java.util.LinkedList"> |
32 | 32 |
<item > |
... | ... | |
35 | 35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
36 | 36 |
<at name="cellconstraints"> |
37 | 37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
38 |
<at name="column">2</at>
|
|
39 |
<at name="row">2</at>
|
|
38 |
<at name="column">1</at>
|
|
39 |
<at name="row">1</at>
|
|
40 | 40 |
<at name="colspan">1</at> |
41 | 41 |
<at name="rowspan">1</at> |
42 | 42 |
<at name="halign">default</at> |
... | ... | |
44 | 44 |
<at name="insets" object="insets">0,0,0,0</at> |
45 | 45 |
</object> |
46 | 46 |
</at> |
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
|
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.FormContainerComponent</at>
|
|
48 | 48 |
</super> |
49 | 49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at>
|
|
50 |
<at name="beanclass">javax.swing.JTabbedPane</at>
|
|
51 | 51 |
<at name="beanproperties"> |
52 | 52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at>
|
|
53 |
<at name="classname">javax.swing.JTabbedPane</at>
|
|
54 | 54 |
<at name="properties"> |
55 | 55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
56 | 56 |
<at name="border"> |
... | ... | |
73 | 73 |
</at> |
74 | 74 |
</object> |
75 | 75 |
</at> |
76 |
<at name="name">lblName</at> |
|
77 |
<at name="width">58</at> |
|
78 |
<at name="text">Name</at> |
|
79 |
<at name="fill"> |
|
80 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
81 |
<at name="name">fill</at> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
<at name="height">14</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">4</at> |
|
99 |
<at name="row">2</at> |
|
100 |
<at name="colspan">1</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">javax.swing.JTextField</at> |
|
111 |
<at name="beanproperties"> |
|
112 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
113 |
<at name="classname">javax.swing.JTextField</at> |
|
114 |
<at name="properties"> |
|
115 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
116 |
<at name="border"> |
|
117 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
118 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
119 |
<at name="name">border</at> |
|
120 |
</super> |
|
121 |
<at name="borders"> |
|
76 |
<at name="tabPlacement">3</at> |
|
77 |
<at name="name">tabEditor</at> |
|
78 |
<at name="tabs"> |
|
79 |
<object classname="com.jeta.forms.store.properties.TabbedPaneProperties"> |
|
80 |
<at name="name">tabs</at> |
|
81 |
<at name="items"> |
|
122 | 82 |
<object classname="java.util.LinkedList"> |
123 | 83 |
<item > |
124 | 84 |
<at name="value"> |
125 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
126 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
127 |
<at name="name">border</at> |
|
128 |
</super> |
|
85 |
<object classname="com.jeta.forms.store.properties.TabProperty"> |
|
86 |
<at name="name">tab</at> |
|
87 |
<at name="title">Properties</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.484358629</at> |
|
112 |
<at name="rowspecs">CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE</at> |
|
113 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,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">6</at> |
|
124 |
<at name="colspan">3</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.JPanel</at> |
|
135 |
<at name="beanproperties"> |
|
136 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
137 |
<at name="classname">javax.swing.JPanel</at> |
|
138 |
<at name="properties"> |
|
139 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
140 |
<at name="name">addtionalPanel</at> |
|
141 |
<at name="width">812</at> |
|
142 |
<at name="height">268</at> |
|
143 |
</object> |
|
144 |
</at> |
|
145 |
</object> |
|
146 |
</at> |
|
147 |
</object> |
|
148 |
</at> |
|
149 |
</item> |
|
150 |
<item > |
|
151 |
<at name="value"> |
|
152 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
153 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
154 |
<at name="cellconstraints"> |
|
155 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
156 |
<at name="column">2</at> |
|
157 |
<at name="row">4</at> |
|
158 |
<at name="colspan">1</at> |
|
159 |
<at name="rowspan">1</at> |
|
160 |
<at name="halign">default</at> |
|
161 |
<at name="valign">default</at> |
|
162 |
<at name="insets" object="insets">0,0,0,0</at> |
|
163 |
</object> |
|
164 |
</at> |
|
165 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
166 |
</super> |
|
167 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
168 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
169 |
<at name="beanproperties"> |
|
170 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
171 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
172 |
<at name="properties"> |
|
173 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
174 |
<at name="border"> |
|
175 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
176 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
177 |
<at name="name">border</at> |
|
178 |
</super> |
|
179 |
<at name="borders"> |
|
180 |
<object classname="java.util.LinkedList"> |
|
181 |
<item > |
|
182 |
<at name="value"> |
|
183 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
184 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
185 |
<at name="name">border</at> |
|
186 |
</super> |
|
187 |
</object> |
|
188 |
</at> |
|
189 |
</item> |
|
190 |
</object> |
|
191 |
</at> |
|
192 |
</object> |
|
193 |
</at> |
|
194 |
<at name="name">lblMimeType</at> |
|
195 |
<at name="width">58</at> |
|
196 |
<at name="text">Mime type</at> |
|
197 |
<at name="fill"> |
|
198 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
199 |
<at name="name">fill</at> |
|
200 |
</object> |
|
201 |
</at> |
|
202 |
<at name="height">14</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
</object> |
|
206 |
</at> |
|
207 |
</object> |
|
208 |
</at> |
|
209 |
</item> |
|
210 |
<item > |
|
211 |
<at name="value"> |
|
212 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
213 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
214 |
<at name="cellconstraints"> |
|
215 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
216 |
<at name="column">4</at> |
|
217 |
<at name="row">4</at> |
|
218 |
<at name="colspan">1</at> |
|
219 |
<at name="rowspan">1</at> |
|
220 |
<at name="halign">default</at> |
|
221 |
<at name="valign">default</at> |
|
222 |
<at name="insets" object="insets">0,0,0,0</at> |
|
223 |
</object> |
|
224 |
</at> |
|
225 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
226 |
</super> |
|
227 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
228 |
<at name="beanclass">javax.swing.JTextField</at> |
|
229 |
<at name="beanproperties"> |
|
230 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
231 |
<at name="classname">javax.swing.JTextField</at> |
|
232 |
<at name="properties"> |
|
233 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
234 |
<at name="border"> |
|
235 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
236 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
237 |
<at name="name">border</at> |
|
238 |
</super> |
|
239 |
<at name="borders"> |
|
240 |
<object classname="java.util.LinkedList"> |
|
241 |
<item > |
|
242 |
<at name="value"> |
|
243 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
244 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
245 |
<at name="name">border</at> |
|
246 |
</super> |
|
247 |
</object> |
|
248 |
</at> |
|
249 |
</item> |
|
250 |
</object> |
|
251 |
</at> |
|
252 |
</object> |
|
253 |
</at> |
|
254 |
<at name="background" object="color">236,233,216</at> |
|
255 |
<at name="editable">false</at> |
|
256 |
<at name="name">txtMimeType</at> |
|
257 |
<at name="width">743</at> |
|
258 |
<at name="height">20</at> |
|
259 |
</object> |
|
260 |
</at> |
|
261 |
</object> |
|
262 |
</at> |
|
263 |
</object> |
|
264 |
</at> |
|
265 |
</item> |
|
266 |
<item > |
|
267 |
<at name="value"> |
|
268 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
269 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
270 |
<at name="cellconstraints"> |
|
271 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
272 |
<at name="column">4</at> |
|
273 |
<at name="row">2</at> |
|
274 |
<at name="colspan">1</at> |
|
275 |
<at name="rowspan">1</at> |
|
276 |
<at name="halign">default</at> |
|
277 |
<at name="valign">default</at> |
|
278 |
<at name="insets" object="insets">0,0,0,0</at> |
|
279 |
</object> |
|
280 |
</at> |
|
281 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
282 |
</super> |
|
283 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
284 |
<at name="beanclass">javax.swing.JTextField</at> |
|
285 |
<at name="beanproperties"> |
|
286 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
287 |
<at name="classname">javax.swing.JTextField</at> |
|
288 |
<at name="properties"> |
|
289 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
290 |
<at name="border"> |
|
291 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
292 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
293 |
<at name="name">border</at> |
|
294 |
</super> |
|
295 |
<at name="borders"> |
|
296 |
<object classname="java.util.LinkedList"> |
|
297 |
<item > |
|
298 |
<at name="value"> |
|
299 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
300 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
301 |
<at name="name">border</at> |
|
302 |
</super> |
|
303 |
</object> |
|
304 |
</at> |
|
305 |
</item> |
|
306 |
</object> |
|
307 |
</at> |
|
308 |
</object> |
|
309 |
</at> |
|
310 |
<at name="background" object="color">236,233,216</at> |
|
311 |
<at name="editable">false</at> |
|
312 |
<at name="name">txtName</at> |
|
313 |
<at name="width">743</at> |
|
314 |
<at name="height">20</at> |
|
315 |
</object> |
|
316 |
</at> |
|
317 |
</object> |
|
318 |
</at> |
|
319 |
</object> |
|
320 |
</at> |
|
321 |
</item> |
|
322 |
<item > |
|
323 |
<at name="value"> |
|
324 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
325 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
326 |
<at name="cellconstraints"> |
|
327 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
328 |
<at name="column">2</at> |
|
329 |
<at name="row">2</at> |
|
330 |
<at name="colspan">1</at> |
|
331 |
<at name="rowspan">1</at> |
|
332 |
<at name="halign">default</at> |
|
333 |
<at name="valign">default</at> |
|
334 |
<at name="insets" object="insets">0,0,0,0</at> |
|
335 |
</object> |
|
336 |
</at> |
|
337 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
338 |
</super> |
|
339 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
340 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
341 |
<at name="beanproperties"> |
|
342 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
343 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
344 |
<at name="properties"> |
|
345 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
346 |
<at name="border"> |
|
347 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
348 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
349 |
<at name="name">border</at> |
|
350 |
</super> |
|
351 |
<at name="borders"> |
|
352 |
<object classname="java.util.LinkedList"> |
|
353 |
<item > |
|
354 |
<at name="value"> |
|
355 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
356 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
357 |
<at name="name">border</at> |
|
358 |
</super> |
|
359 |
</object> |
|
360 |
</at> |
|
361 |
</item> |
|
362 |
</object> |
|
363 |
</at> |
|
364 |
</object> |
|
365 |
</at> |
|
366 |
<at name="name">lblName</at> |
|
367 |
<at name="width">58</at> |
|
368 |
<at name="text">Name</at> |
|
369 |
<at name="fill"> |
|
370 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
371 |
<at name="name">fill</at> |
|
372 |
</object> |
|
373 |
</at> |
|
374 |
<at name="height">14</at> |
|
375 |
</object> |
|
376 |
</at> |
|
377 |
</object> |
|
378 |
</at> |
|
379 |
</object> |
|
380 |
</at> |
|
381 |
</item> |
|
382 |
<item > |
|
383 |
<at name="value"> |
|
384 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
385 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
386 |
<at name="cellconstraints"> |
|
387 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
388 |
<at name="column">4</at> |
|
389 |
<at name="row">8</at> |
|
390 |
<at name="colspan">1</at> |
|
391 |
<at name="rowspan">1</at> |
|
392 |
<at name="halign">default</at> |
|
393 |
<at name="valign">default</at> |
|
394 |
<at name="insets" object="insets">0,0,0,0</at> |
|
395 |
</object> |
|
396 |
</at> |
|
397 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
398 |
</super> |
|
399 |
<at name="id">embedded.737951868</at> |
|
400 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
|
401 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE</at> |
|
402 |
<at name="components"> |
|
403 |
<object classname="java.util.LinkedList"> |
|
404 |
<item > |
|
405 |
<at name="value"> |
|
406 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
407 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
408 |
<at name="cellconstraints"> |
|
409 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
410 |
<at name="column">2</at> |
|
411 |
<at name="row">1</at> |
|
412 |
<at name="colspan">1</at> |
|
413 |
<at name="rowspan">1</at> |
|
414 |
<at name="halign">default</at> |
|
415 |
<at name="valign">default</at> |
|
416 |
<at name="insets" object="insets">0,0,0,0</at> |
|
417 |
</object> |
|
418 |
</at> |
|
419 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
420 |
</super> |
|
421 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
422 |
<at name="beanclass">javax.swing.JButton</at> |
|
423 |
<at name="beanproperties"> |
|
424 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
425 |
<at name="classname">javax.swing.JButton</at> |
|
426 |
<at name="properties"> |
|
427 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
428 |
<at name="border"> |
|
429 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
430 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
431 |
<at name="name">border</at> |
|
432 |
</super> |
|
433 |
<at name="borders"> |
|
434 |
<object classname="java.util.LinkedList"> |
|
435 |
<item > |
|
436 |
<at name="value"> |
|
437 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
438 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
439 |
<at name="name">border</at> |
|
440 |
</super> |
|
441 |
</object> |
|
442 |
</at> |
|
443 |
</item> |
|
444 |
</object> |
|
445 |
</at> |
|
446 |
</object> |
|
447 |
</at> |
|
448 |
<at name="actionCommand">Open with system editor</at> |
|
449 |
<at name="name">btnOpenWithSystemEditor</at> |
|
450 |
<at name="width">172</at> |
|
451 |
<at name="text">Open with system editor</at> |
|
452 |
<at name="height">22</at> |
|
453 |
</object> |
|
454 |
</at> |
|
455 |
</object> |
|
456 |
</at> |
|
457 |
</object> |
|
458 |
</at> |
|
459 |
</item> |
|
460 |
</object> |
|
461 |
</at> |
|
462 |
<at name="properties"> |
|
463 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
464 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
465 |
<at name="properties"> |
|
466 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
467 |
<at name="border"> |
|
468 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
469 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
470 |
<at name="name">border</at> |
|
471 |
</super> |
|
472 |
<at name="borders"> |
|
473 |
<object classname="java.util.LinkedList"/> |
|
474 |
</at> |
|
475 |
</object> |
|
476 |
</at> |
|
477 |
<at name="name"/> |
|
478 |
<at name="fill"> |
|
479 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
480 |
<at name="name">fill</at> |
|
481 |
</object> |
|
482 |
</at> |
|
483 |
<at name="scollBars"> |
|
484 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
485 |
<at name="name">scollBars</at> |
|
486 |
<at name="verticalpolicy">21</at> |
|
487 |
<at name="horizontalpolicy">31</at> |
|
488 |
<at name="border"> |
|
489 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
490 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
491 |
<at name="name">border</at> |
|
492 |
</super> |
|
493 |
<at name="borders"> |
|
494 |
<object classname="java.util.LinkedList"> |
|
495 |
<item > |
|
496 |
<at name="value"> |
|
497 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
498 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
499 |
<at name="name">border</at> |
|
500 |
</super> |
|
501 |
</object> |
|
502 |
</at> |
|
503 |
</item> |
|
504 |
</object> |
|
505 |
</at> |
|
506 |
</object> |
|
507 |
</at> |
|
508 |
</object> |
|
509 |
</at> |
|
510 |
</object> |
|
511 |
</at> |
|
512 |
</object> |
|
513 |
</at> |
|
514 |
<at name="cellpainters"> |
|
515 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
516 |
<at name="rows"> |
|
517 |
<object classname="[Ljava.lang.Object;" size="1"> |
|
518 |
<at name="item" index="0"> |
|
519 |
<object classname="[Ljava.lang.Object;" size="2"/> |
|
520 |
</at> |
|
521 |
</object> |
|
522 |
</at> |
|
523 |
</object> |
|
524 |
</at> |
|
525 |
<at name="rowgroups"> |
|
526 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
527 |
<at name="groups"> |
|
528 |
<object classname="java.util.HashMap"/> |
|
529 |
</at> |
|
530 |
</object> |
|
531 |
</at> |
|
532 |
<at name="colgroups"> |
|
533 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
534 |
<at name="groups"> |
|
535 |
<object classname="java.util.HashMap"/> |
|
536 |
</at> |
|
537 |
</object> |
|
538 |
</at> |
|
539 |
</object> |
|
540 |
</at> |
|
541 |
</item> |
|
542 |
</object> |
|
543 |
</at> |
|
544 |
<at name="properties"> |
|
545 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
546 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
547 |
<at name="properties"> |
|
548 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
549 |
<at name="border"> |
|
550 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
551 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
552 |
<at name="name">border</at> |
|
553 |
</super> |
|
554 |
<at name="borders"> |
|
555 |
<object classname="java.util.LinkedList"/> |
|
556 |
</at> |
|
557 |
</object> |
|
558 |
</at> |
|
559 |
<at name="name"/> |
|
560 |
<at name="fill"> |
|
561 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
562 |
<at name="name">fill</at> |
|
563 |
</object> |
|
564 |
</at> |
|
565 |
<at name="scollBars"> |
|
566 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
567 |
<at name="name">scollBars</at> |
|
568 |
<at name="verticalpolicy">21</at> |
|
569 |
<at name="horizontalpolicy">31</at> |
|
570 |
<at name="border"> |
|
571 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
572 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
573 |
<at name="name">border</at> |
|
574 |
</super> |
|
575 |
<at name="borders"> |
|
576 |
<object classname="java.util.LinkedList"> |
|
577 |
<item > |
|
578 |
<at name="value"> |
|
579 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
580 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
581 |
<at name="name">border</at> |
|
582 |
</super> |
|
583 |
</object> |
|
584 |
</at> |
|
585 |
</item> |
|
586 |
</object> |
|
587 |
</at> |
|
588 |
</object> |
|
589 |
</at> |
|
590 |
</object> |
|
591 |
</at> |
|
592 |
</object> |
|
593 |
</at> |
|
594 |
</object> |
|
595 |
</at> |
|
596 |
<at name="cellpainters"> |
|
597 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
598 |
<at name="rows"> |
|
599 |
<object classname="[Ljava.lang.Object;" size="9"> |
|
600 |
<at name="item" index="0"> |
|
601 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
602 |
</at> |
|
603 |
<at name="item" index="1"> |
|
604 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
605 |
</at> |
|
606 |
<at name="item" index="2"> |
|
607 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
608 |
</at> |
|
609 |
<at name="item" index="3"> |
|
610 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
611 |
</at> |
|
612 |
<at name="item" index="4"> |
|
613 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
614 |
</at> |
|
615 |
<at name="item" index="5"> |
|
616 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
617 |
</at> |
|
618 |
<at name="item" index="6"> |
|
619 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
620 |
</at> |
|
621 |
<at name="item" index="7"> |
|
622 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
623 |
</at> |
|
624 |
<at name="item" index="8"> |
|
625 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
626 |
</at> |
|
627 |
</object> |
|
628 |
</at> |
|
629 |
</object> |
|
630 |
</at> |
|
631 |
<at name="rowgroups"> |
|
632 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
633 |
<at name="groups"> |
|
634 |
<object classname="java.util.HashMap"/> |
|
635 |
</at> |
|
636 |
</object> |
|
637 |
</at> |
|
638 |
<at name="colgroups"> |
|
639 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
640 |
<at name="groups"> |
|
641 |
<object classname="java.util.HashMap"/> |
|
642 |
</at> |
|
643 |
</object> |
|
644 |
</at> |
|
645 |
</object> |
|
646 |
</at> |
|
129 | 647 |
</object> |
130 | 648 |
</at> |
131 | 649 |
</item> |
... | ... | |
133 | 651 |
</at> |
134 | 652 |
</object> |
135 | 653 |
</at> |
136 |
<at name="background" object="color">236,233,216</at> |
|
137 |
<at name="editable">false</at> |
|
138 |
<at name="name">txtName</at> |
|
139 |
<at name="width">463</at> |
|
140 |
<at name="height">20</at> |
|
654 |
<at name="width">857</at> |
|
655 |
<at name="height">476</at> |
|
141 | 656 |
</object> |
142 | 657 |
</at> |
143 | 658 |
</object> |
... | ... | |
145 | 660 |
</object> |
146 | 661 |
</at> |
147 | 662 |
</item> |
148 |
<item > |
|
149 |
<at name="value"> |
|
150 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
151 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
152 |
<at name="cellconstraints"> |
|
153 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
154 |
<at name="column">2</at> |
|
155 |
<at name="row">4</at> |
|
156 |
<at name="colspan">1</at> |
|
157 |
<at name="rowspan">1</at> |
|
158 |
<at name="halign">default</at> |
|
159 |
<at name="valign">default</at> |
|
160 |
<at name="insets" object="insets">0,0,0,0</at> |
|
161 |
</object> |
|
162 |
</at> |
|
163 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
164 |
</super> |
|
165 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
166 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
167 |
<at name="beanproperties"> |
|
168 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
169 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
170 |
<at name="properties"> |
|
171 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
172 |
<at name="border"> |
|
173 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
174 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
175 |
<at name="name">border</at> |
|
176 |
</super> |
|
177 |
<at name="borders"> |
|
178 |
<object classname="java.util.LinkedList"> |
|
179 |
<item > |
|
180 |
<at name="value"> |
|
181 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
182 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
183 |
<at name="name">border</at> |
|
184 |
</super> |
|
185 |
</object> |
|
186 |
</at> |
|
187 |
</item> |
|
188 |
</object> |
|
189 |
</at> |
|
190 |
</object> |
|
191 |
</at> |
|
192 |
<at name="name">lblMimeType</at> |
|
193 |
<at name="width">58</at> |
|
194 |
<at name="text">Mime type</at> |
|
195 |
<at name="fill"> |
|
196 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
197 |
<at name="name">fill</at> |
|
198 |
</object> |
|
199 |
</at> |
|
200 |
<at name="height">14</at> |
|
201 |
</object> |
|
202 |
</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
</object> |
|
206 |
</at> |
|
207 |
</item> |
|
208 |
<item > |
|
209 |
<at name="value"> |
|
210 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
211 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
212 |
<at name="cellconstraints"> |
|
213 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
214 |
<at name="column">4</at> |
|
215 |
<at name="row">4</at> |
|
216 |
<at name="colspan">1</at> |
|
217 |
<at name="rowspan">1</at> |
|
218 |
<at name="halign">default</at> |
|
219 |
<at name="valign">default</at> |
|
220 |
<at name="insets" object="insets">0,0,0,0</at> |
|
221 |
</object> |
|
222 |
</at> |
|
223 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
224 |
</super> |
|
225 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
226 |
<at name="beanclass">javax.swing.JTextField</at> |
|
227 |
<at name="beanproperties"> |
|
228 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
229 |
<at name="classname">javax.swing.JTextField</at> |
|
230 |
<at name="properties"> |
|
231 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
232 |
<at name="border"> |
|
233 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
234 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
235 |
<at name="name">border</at> |
|
236 |
</super> |
|
237 |
<at name="borders"> |
|
238 |
<object classname="java.util.LinkedList"> |
|
239 |
<item > |
|
240 |
<at name="value"> |
|
241 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
242 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
243 |
<at name="name">border</at> |
|
244 |
</super> |
|
245 |
</object> |
|
246 |
</at> |
|
247 |
</item> |
|
248 |
</object> |
|
249 |
</at> |
|
250 |
</object> |
|
251 |
</at> |
|
252 |
<at name="background" object="color">236,233,216</at> |
|
253 |
<at name="editable">false</at> |
|
254 |
<at name="name">txtMimeType</at> |
|
255 |
<at name="width">463</at> |
|
256 |
<at name="height">20</at> |
|
257 |
</object> |
|
258 |
</at> |
|
259 |
</object> |
|
260 |
</at> |
|
261 |
</object> |
|
262 |
</at> |
|
263 |
</item> |
|
264 |
<item > |
|
265 |
<at name="value"> |
|
266 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
267 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
268 |
<at name="cellconstraints"> |
|
269 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
270 |
<at name="column">2</at> |
|
271 |
<at name="row">6</at> |
|
272 |
<at name="colspan">3</at> |
|
273 |
<at name="rowspan">1</at> |
|
274 |
<at name="halign">default</at> |
|
275 |
<at name="valign">default</at> |
|
276 |
<at name="insets" object="insets">0,0,0,0</at> |
|
277 |
</object> |
|
278 |
</at> |
|
279 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
280 |
</super> |
|
281 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
282 |
<at name="beanclass">javax.swing.JPanel</at> |
|
283 |
<at name="beanproperties"> |
|
284 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
285 |
<at name="classname">javax.swing.JPanel</at> |
|
286 |
<at name="properties"> |
|
287 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
288 |
<at name="name">addtionalPanel</at> |
|
289 |
<at name="width">532</at> |
|
290 |
<at name="height">480</at> |
|
291 |
</object> |
|
292 |
</at> |
|
293 |
</object> |
|
294 |
</at> |
|
295 |
</object> |
|
296 |
</at> |
|
297 |
</item> |
|
298 | 663 |
</object> |
299 | 664 |
</at> |
300 | 665 |
<at name="properties"> |
... | ... | |
352 | 717 |
<at name="cellpainters"> |
353 | 718 |
<object classname="com.jeta.forms.store.support.Matrix"> |
354 | 719 |
<at name="rows"> |
355 |
<object classname="[Ljava.lang.Object;" size="7">
|
|
720 |
<object classname="[Ljava.lang.Object;" size="1">
|
|
356 | 721 |
<at name="item" index="0"> |
357 |
<object classname="[Ljava.lang.Object;" size="5"/>
|
|
722 |
<object classname="[Ljava.lang.Object;" size="1"/>
|
|
358 | 723 |
</at> |
359 |
<at name="item" index="1"> |
|
360 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
361 |
</at> |
|
362 |
<at name="item" index="2"> |
|
363 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
364 |
</at> |
|
365 |
<at name="item" index="3"> |
|
366 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
367 |
</at> |
|
368 |
<at name="item" index="4"> |
|
369 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
370 |
</at> |
|
371 |
<at name="item" index="5"> |
|
372 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
373 |
</at> |
|
374 |
<at name="item" index="6"> |
|
375 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
376 |
</at> |
|
377 | 724 |
</object> |
378 | 725 |
</at> |
379 | 726 |
</object> |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/ExternalFileEditorView.java | ||
---|---|---|
10 | 10 |
import java.awt.Dimension; |
11 | 11 |
import javax.swing.Box; |
12 | 12 |
import javax.swing.ImageIcon; |
13 |
import javax.swing.JButton; |
|
13 | 14 |
import javax.swing.JFrame; |
14 | 15 |
import javax.swing.JLabel; |
15 | 16 |
import javax.swing.JPanel; |
17 |
import javax.swing.JTabbedPane; |
|
16 | 18 |
import javax.swing.JTextField; |
17 | 19 |
|
18 | 20 |
|
19 | 21 |
public class ExternalFileEditorView extends JPanel |
20 | 22 |
{ |
21 |
JLabel lblName = new JLabel();
|
|
22 |
JTextField txtName = new JTextField();
|
|
23 |
JTabbedPane tabEditor = new JTabbedPane();
|
|
24 |
JPanel addtionalPanel = new JPanel();
|
|
23 | 25 |
JLabel lblMimeType = new JLabel(); |
24 | 26 |
JTextField txtMimeType = new JTextField(); |
25 |
JPanel addtionalPanel = new JPanel(); |
|
27 |
JTextField txtName = new JTextField(); |
|
28 |
JLabel lblName = new JLabel(); |
|
29 |
JButton btnOpenWithSystemEditor = new JButton(); |
|
26 | 30 |
|
27 | 31 |
/** |
28 | 32 |
* Default constructor |
... | ... | |
114 | 118 |
public JPanel createPanel() |
115 | 119 |
{ |
116 | 120 |
JPanel jpanel1 = new JPanel(); |
117 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE");
|
|
121 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
|
|
118 | 122 |
CellConstraints cc = new CellConstraints(); |
119 | 123 |
jpanel1.setLayout(formlayout1); |
120 | 124 |
|
121 |
lblName.setName("lblName"); |
|
122 |
lblName.setText("Name"); |
|
123 |
jpanel1.add(lblName,cc.xy(2,2)); |
|
125 |
tabEditor.setName("tabEditor"); |
|
126 |
tabEditor.setTabPlacement(JTabbedPane.BOTTOM); |
|
127 |
tabEditor.addTab("Properties",null,createPanel1()); |
|
128 |
jpanel1.add(tabEditor,cc.xy(1,1)); |
|
124 | 129 |
|
125 |
txtName.setBackground(new Color(236,233,216)); |
|
126 |
txtName.setEditable(false); |
|
127 |
txtName.setName("txtName"); |
|
128 |
jpanel1.add(txtName,cc.xy(4,2)); |
|
130 |
addFillComponents(jpanel1,new int[0],new int[0]); |
|
131 |
return jpanel1; |
|
132 |
} |
|
129 | 133 |
|
134 |
public JPanel createPanel1() |
|
135 |
{ |
|
136 |
JPanel jpanel1 = new JPanel(); |
|
137 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE"); |
|
138 |
CellConstraints cc = new CellConstraints(); |
|
139 |
jpanel1.setLayout(formlayout1); |
|
140 |
|
|
141 |
addtionalPanel.setName("addtionalPanel"); |
|
142 |
jpanel1.add(addtionalPanel,cc.xywh(2,6,3,1)); |
|
143 |
|
|
130 | 144 |
lblMimeType.setName("lblMimeType"); |
131 | 145 |
lblMimeType.setText("Mime type"); |
132 | 146 |
jpanel1.add(lblMimeType,cc.xy(2,4)); |
... | ... | |
136 | 150 |
txtMimeType.setName("txtMimeType"); |
137 | 151 |
jpanel1.add(txtMimeType,cc.xy(4,4)); |
138 | 152 |
|
139 |
addtionalPanel.setName("addtionalPanel"); |
|
140 |
jpanel1.add(addtionalPanel,cc.xywh(2,6,3,1)); |
|
153 |
txtName.setBackground(new Color(236,233,216)); |
|
154 |
txtName.setEditable(false); |
|
155 |
txtName.setName("txtName"); |
|
156 |
jpanel1.add(txtName,cc.xy(4,2)); |
|
141 | 157 |
|
142 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
|
158 |
lblName.setName("lblName"); |
|
159 |
lblName.setText("Name"); |
|
160 |
jpanel1.add(lblName,cc.xy(2,2)); |
|
161 |
|
|
162 |
jpanel1.add(createPanel2(),cc.xy(4,8)); |
|
163 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
|
143 | 164 |
return jpanel1; |
144 | 165 |
} |
145 | 166 |
|
167 |
public JPanel createPanel2() |
|
168 |
{ |
|
169 |
JPanel jpanel1 = new JPanel(); |
|
170 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
171 |
CellConstraints cc = new CellConstraints(); |
|
172 |
jpanel1.setLayout(formlayout1); |
|
173 |
|
|
174 |
btnOpenWithSystemEditor.setActionCommand("Open with system editor"); |
|
175 |
btnOpenWithSystemEditor.setName("btnOpenWithSystemEditor"); |
|
176 |
btnOpenWithSystemEditor.setText("Open with system editor"); |
|
177 |
jpanel1.add(btnOpenWithSystemEditor,cc.xy(2,1)); |
|
178 |
|
|
179 |
addFillComponents(jpanel1,new int[]{ 1 },new int[]{ 1 }); |
|
180 |
return jpanel1; |
|
181 |
} |
|
182 |
|
|
146 | 183 |
/** |
147 | 184 |
* Initializer |
148 | 185 |
*/ |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/ExternalFileEditor.java | ||
---|---|---|
1 | 1 |
package org.gvsig.scripting.swing.impl.composer.editors; |
2 | 2 |
|
3 |
import java.awt.event.ActionEvent; |
|
4 |
import java.awt.event.ActionListener; |
|
3 | 5 |
import java.beans.PropertyChangeListener; |
4 | 6 |
import javax.swing.JComponent; |
5 | 7 |
import javax.swing.JPanel; |
8 |
import org.gvsig.desktopopen.DesktopOpen; |
|
6 | 9 |
import org.gvsig.scripting.ScriptingExternalFile; |
7 | 10 |
import org.gvsig.scripting.ScriptingUnit; |
8 | 11 |
import org.gvsig.scripting.swing.api.JEditor; |
12 |
import org.gvsig.tools.util.ToolsUtilLocator; |
|
9 | 13 |
|
10 | 14 |
public class ExternalFileEditor extends ExternalFileEditorView implements JEditor { |
11 | 15 |
|
12 | 16 |
private static final long serialVersionUID = 8464025131135752977L; |
13 | 17 |
private ScriptingExternalFile unit; |
14 | 18 |
|
19 |
public ExternalFileEditor() { |
|
20 |
this.initComponents(); |
|
21 |
} |
|
22 |
|
|
15 | 23 |
public ExternalFileEditor(ScriptingUnit unit) { |
16 |
this.initComponents();
|
|
24 |
this(); |
|
17 | 25 |
this.set(unit); |
18 | 26 |
} |
19 | 27 |
|
20 | 28 |
private void initComponents() { |
21 | 29 |
// TODO: translations |
30 |
this.btnOpenWithSystemEditor.addActionListener(new ActionListener() { |
|
31 |
@Override |
|
32 |
public void actionPerformed(ActionEvent e) { |
|
33 |
doOpenWithSystemEditor(); |
|
34 |
} |
|
35 |
}); |
|
22 | 36 |
} |
23 | 37 |
|
38 |
private void doOpenWithSystemEditor() { |
|
39 |
DesktopOpen desktop = ToolsUtilLocator.getToolsUtilManager().createDesktopOpen(); |
|
40 |
desktop.browse(this.unit.getExternalFile().toURI()); |
|
41 |
} |
|
42 |
|
|
24 | 43 |
@Override |
25 | 44 |
public ScriptingUnit getUnit() { |
26 | 45 |
return this.unit; |
... | ... | |
63 | 82 |
public JPanel getAdditionalPanel() { |
64 | 83 |
return this.addtionalPanel; |
65 | 84 |
} |
85 |
|
|
86 |
public void addPanel(String name, JComponent panel) { |
|
87 |
this.tabEditor.addTab(name, panel); |
|
88 |
} |
|
89 |
|
|
66 | 90 |
} |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/ScriptEditor.java | ||
---|---|---|
124 | 124 |
this.script = (ScriptingScript) unit; |
125 | 125 |
this.propertiesPanel.set(unit); |
126 | 126 |
this.textEditor.setText(this.script.getMimeType(), this.script.getCode()); |
127 |
if( unit.isASystemUnit() ) { |
|
128 |
this.textEditor.getJTextComponent().setEditable(false); |
|
129 |
} else { |
|
130 |
this.textEditor.getJTextComponent().setEditable(true); |
|
131 |
} |
|
127 | 132 |
} |
128 | 133 |
|
129 | 134 |
@Override |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/editors/TextEditor.java | ||
---|---|---|
113 | 113 |
this.unit = (ScriptingExternalFile) unit; |
114 | 114 |
this.propertiesPanel.set(unit); |
115 | 115 |
this.textEditor.setText(this.unit.getMimeType(), this.unit.getContentsAsText()); |
116 |
if( unit.isASystemUnit() ) { |
|
117 |
this.textEditor.getJTextComponent().setEditable(false); |
|
118 |
} else { |
|
119 |
this.textEditor.getJTextComponent().setEditable(true); |
|
120 |
} |
|
116 | 121 |
} |
117 | 122 |
|
118 | 123 |
|
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/pom.xml | ||
---|---|---|
90 | 90 |
<groupId>org.gvsig</groupId> |
91 | 91 |
<artifactId>org.gvsig.installer.swing.api</artifactId> |
92 | 92 |
<scope>compile</scope> |
93 |
</dependency> |
|
94 |
|
|
93 |
</dependency> |
|
94 |
<dependency> |
|
95 |
<groupId>org.gvsig</groupId> |
|
96 |
<artifactId>org.gvsig.tools.util.api</artifactId> |
|
97 |
<scope>compile</scope> |
|
98 |
</dependency> |
|
95 | 99 |
</dependencies> |
96 | 100 |
<build> |
97 | 101 |
<plugins> |
Also available in: Unified diff