Revision 43386
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/webbrowser/WebBrowserFactory.java | ||
---|---|---|
1 |
|
|
2 |
package org.gvsig.webbrowser; |
|
3 |
|
|
4 |
import org.gvsig.webbrowser.jfx.JFXWebBrowserPanel; |
|
5 |
|
|
6 |
|
|
7 |
public class WebBrowserFactory { |
|
8 |
|
|
9 |
public static WebBrowserPanel createWebBrowserPanel() { |
|
10 |
return new JFXWebBrowserPanel(); |
|
11 |
} |
|
12 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/webbrowser/WebBrowserPanel.java | ||
---|---|---|
1 |
|
|
2 |
package org.gvsig.webbrowser; |
|
3 |
|
|
4 |
import java.net.URL; |
|
5 |
import org.gvsig.tools.swing.api.Component; |
|
6 |
|
|
7 |
public interface WebBrowserPanel extends Component { |
|
8 |
|
|
9 |
String getPage(); |
|
10 |
|
|
11 |
void setPage(URL url); |
|
12 |
|
|
13 |
void setPage(String url); |
|
14 |
|
|
15 |
String getTitle(); |
|
16 |
|
|
17 |
void setContent(final String content, final String contentType); |
|
18 |
|
|
19 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/webbrowser/jfx/JFXWebBrowserPanel.java | ||
---|---|---|
1 |
package org.gvsig.webbrowser.jfx; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
import java.awt.Dimension; |
|
5 |
import java.awt.event.ActionEvent; |
|
6 |
import java.awt.event.ActionListener; |
|
7 |
import java.awt.event.KeyAdapter; |
|
8 |
import java.awt.event.KeyEvent; |
|
9 |
import java.net.MalformedURLException; |
|
10 |
import java.net.URL; |
|
11 |
import java.text.MessageFormat; |
|
12 |
import org.gvsig.webbrowser.WebBrowserPanel; |
|
13 |
import javafx.event.EventHandler; |
|
14 |
import javafx.beans.value.ChangeListener; |
|
15 |
import javafx.beans.value.ObservableValue; |
|
16 |
import javafx.application.Platform; |
|
17 |
import javafx.concurrent.Worker; |
|
18 |
import javafx.embed.swing.JFXPanel; |
|
19 |
import javafx.scene.web.WebView; |
|
20 |
import javafx.scene.Scene; |
|
21 |
import javafx.scene.web.WebEngine; |
|
22 |
import javafx.scene.web.WebEvent; |
|
23 |
import javax.swing.ImageIcon; |
|
24 |
import javax.swing.JComponent; |
|
25 |
import javax.swing.JTextField; |
|
26 |
|
|
27 |
public class JFXWebBrowserPanel extends JFXWebBrowserPanelView implements WebBrowserPanel { |
|
28 |
|
|
29 |
private static final long serialVersionUID = -5048314340699267249L; |
|
30 |
|
|
31 |
private JFXWebBrowser browser; |
|
32 |
|
|
33 |
private class JFXWebBrowser extends JFXPanel { |
|
34 |
|
|
35 |
private static final long serialVersionUID = 3021277085276506035L; |
|
36 |
|
|
37 |
private WebView view; |
|
38 |
private WebEngine engine; |
|
39 |
private Scene scene; |
|
40 |
|
|
41 |
private class MyEventHandler implements EventHandler<WebEvent<String>> { |
|
42 |
|
|
43 |
@Override |
|
44 |
public void handle(WebEvent<String> event) { |
|
45 |
if( event.getEventType() == WebEvent.STATUS_CHANGED ) { |
|
46 |
String s = event.getData(); |
|
47 |
if( s == null ) { |
|
48 |
lblStatus.setText(""); |
|
49 |
} else { |
|
50 |
lblStatus.setText(s); |
|
51 |
} |
|
52 |
|
|
53 |
} |
|
54 |
} |
|
55 |
} |
|
56 |
|
|
57 |
private class MyChangeListener implements ChangeListener<Worker.State> { |
|
58 |
|
|
59 |
@Override |
|
60 |
public void changed(ObservableValue<? extends Worker.State> ov, Worker.State oldState, Worker.State newState) { |
|
61 |
if( newState == Worker.State.SUCCEEDED ) { |
|
62 |
txtURL.setText(engine.getLocation()); |
|
63 |
} |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
public JFXWebBrowser() { |
|
68 |
this.view = null; |
|
69 |
this.engine = null; |
|
70 |
this.scene = null; |
|
71 |
|
|
72 |
Platform.runLater(new Runnable() { |
|
73 |
@Override |
|
74 |
public void run() { |
|
75 |
createScene(); |
|
76 |
} |
|
77 |
}); |
|
78 |
Platform.setImplicitExit(false); |
|
79 |
} |
|
80 |
|
|
81 |
private void createScene() { |
|
82 |
this.view = new WebView(); |
|
83 |
this.engine = this.view.getEngine(); |
|
84 |
this.engine.setOnStatusChanged(new MyEventHandler()); |
|
85 |
this.engine.getLoadWorker().stateProperty().addListener(new MyChangeListener()); |
|
86 |
this.engine.setJavaScriptEnabled(true); |
|
87 |
this.scene = new Scene(this.view); |
|
88 |
this.setScene(this.scene); |
|
89 |
} |
|
90 |
|
|
91 |
private void load(URL url) { |
|
92 |
this.engine.load(url.toString()); |
|
93 |
this.revalidate(); |
|
94 |
} |
|
95 |
|
|
96 |
private void loadContent(String content, String contentType) { |
|
97 |
this.engine.loadContent(content, contentType); |
|
98 |
this.revalidate(); |
|
99 |
} |
|
100 |
|
|
101 |
private void goHistory(int index) { |
|
102 |
this.engine.getHistory().go(index); |
|
103 |
} |
|
104 |
|
|
105 |
public void setPage(final URL url) { |
|
106 |
Platform.runLater(new Runnable() { |
|
107 |
@Override |
|
108 |
public void run() { |
|
109 |
load(url); |
|
110 |
} |
|
111 |
}); |
|
112 |
} |
|
113 |
|
|
114 |
public void setContent(final String content, final String contentType) { |
|
115 |
Platform.runLater(new Runnable() { |
|
116 |
@Override |
|
117 |
public void run() { |
|
118 |
loadContent(content, contentType); |
|
119 |
} |
|
120 |
}); |
|
121 |
} |
|
122 |
|
|
123 |
public void goPrevious() { |
|
124 |
Platform.runLater(new Runnable() { |
|
125 |
@Override |
|
126 |
public void run() { |
|
127 |
goHistory(-1); |
|
128 |
} |
|
129 |
}); |
|
130 |
} |
|
131 |
|
|
132 |
public void goNext() { |
|
133 |
Platform.runLater(new Runnable() { |
|
134 |
@Override |
|
135 |
public void run() { |
|
136 |
goHistory(1); |
|
137 |
} |
|
138 |
}); |
|
139 |
} |
|
140 |
|
|
141 |
public String getPage() { |
|
142 |
return this.engine.getLocation(); |
|
143 |
} |
|
144 |
|
|
145 |
public String getTitle() { |
|
146 |
return this.engine.getTitle(); |
|
147 |
} |
|
148 |
|
|
149 |
public Object executeScript(String js) { |
|
150 |
Object r = this.engine.executeScript(js); |
|
151 |
return r; |
|
152 |
} |
|
153 |
|
|
154 |
public void find(final String text, final boolean backwards) { |
|
155 |
try { |
|
156 |
Platform.runLater(new Runnable() { |
|
157 |
@Override |
|
158 |
public void run() { |
|
159 |
String script = MessageFormat.format( |
|
160 |
"window.find(\"{0}\",false,{1},true)", |
|
161 |
text, |
|
162 |
backwards ? "true" : "false" |
|
163 |
); |
|
164 |
|
|
165 |
} |
|
166 |
}); |
|
167 |
} catch (Throwable th) { |
|
168 |
|
|
169 |
} |
|
170 |
} |
|
171 |
|
|
172 |
} |
|
173 |
|
|
174 |
public JFXWebBrowserPanel() { |
|
175 |
this.initComponents(); |
|
176 |
} |
|
177 |
|
|
178 |
private void initComponents() { |
|
179 |
this.browser = new JFXWebBrowser(); |
|
180 |
this.containerBrowser.setLayout(new BorderLayout()); |
|
181 |
this.containerBrowser.add(this.browser, BorderLayout.CENTER); |
|
182 |
|
|
183 |
this.btnPrevious.setIcon(imageIcon("images/arrow_left.png")); |
|
184 |
this.btnNext.setIcon(imageIcon("images/arrow_right.png")); |
|
185 |
this.btnRefresh.setIcon(imageIcon("images/arrow_refresh.png")); |
|
186 |
this.btnConfig.setIcon(imageIcon("images/add.png")); |
|
187 |
this.btnSearchPrevious.setIcon(imageIcon("images/arrow_up.png")); |
|
188 |
this.btnSearchNext.setIcon(imageIcon("images/arrow_down.png")); |
|
189 |
this.imgSearch.setIcon(imageIcon("images/search.png")); |
|
190 |
|
|
191 |
this.txtURL.addKeyListener(new KeyAdapter() { |
|
192 |
@Override |
|
193 |
public void keyPressed(KeyEvent keyEvent) { |
|
194 |
if( keyEvent.getKeyChar() == '\n' ) { |
|
195 |
setPage(txtURL.getText()); |
|
196 |
} |
|
197 |
} |
|
198 |
}); |
|
199 |
this.txtSearch.addKeyListener(new KeyAdapter() { |
|
200 |
@Override |
|
201 |
public void keyPressed(KeyEvent event) { |
|
202 |
JTextField jtext = txtSearch; |
|
203 |
if( event.getKeyChar() == 0x1b ) { // ESC |
|
204 |
jtext.setText(""); |
|
205 |
browser.find("", true); |
|
206 |
} else if( event.getKeyChar() == '\n' ) { |
|
207 |
browser.find(jtext.getText(), true); |
|
208 |
} |
|
209 |
} |
|
210 |
}); |
|
211 |
this.btnSearchPrevious.addActionListener(new ActionListener() { |
|
212 |
@Override |
|
213 |
public void actionPerformed(ActionEvent e) { |
|
214 |
browser.find(txtSearch.getText(),false); |
|
215 |
} |
|
216 |
}); |
|
217 |
this.btnSearchNext.addActionListener(new ActionListener() { |
|
218 |
@Override |
|
219 |
public void actionPerformed(ActionEvent e) { |
|
220 |
browser.find(txtSearch.getText(),true); |
|
221 |
} |
|
222 |
}); |
|
223 |
this.btnPrevious.addActionListener(new ActionListener() { |
|
224 |
@Override |
|
225 |
public void actionPerformed(ActionEvent e) { |
|
226 |
browser.goPrevious(); |
|
227 |
} |
|
228 |
}); |
|
229 |
this.btnNext.addActionListener(new ActionListener() { |
|
230 |
@Override |
|
231 |
public void actionPerformed(ActionEvent e) { |
|
232 |
browser.goNext(); |
|
233 |
} |
|
234 |
}); |
|
235 |
this.setPreferredSize(new Dimension(600, 500)); |
|
236 |
} |
|
237 |
|
|
238 |
private ImageIcon imageIcon(String res) { |
|
239 |
URL url = this.getClass().getResource(res); |
|
240 |
if( url == null ) { |
|
241 |
return new ImageIcon(); |
|
242 |
} |
|
243 |
return new ImageIcon(url); |
|
244 |
} |
|
245 |
|
|
246 |
@Override |
|
247 |
public void setPage(String url) { |
|
248 |
try { |
|
249 |
this.setPage(new URL(url)); |
|
250 |
} catch (MalformedURLException ex) { |
|
251 |
throw new RuntimeException(ex); |
|
252 |
} |
|
253 |
} |
|
254 |
|
|
255 |
@Override |
|
256 |
public void setPage(URL url) { |
|
257 |
this.txtURL.setText(url.toString()); |
|
258 |
this.browser.setPage(url); |
|
259 |
} |
|
260 |
|
|
261 |
@Override |
|
262 |
public String getPage() { |
|
263 |
return this.browser.getPage(); |
|
264 |
} |
|
265 |
|
|
266 |
@Override |
|
267 |
public void setContent(final String content, final String contentType) { |
|
268 |
this.browser.setContent(content, contentType); |
|
269 |
} |
|
270 |
|
|
271 |
@Override |
|
272 |
public String getTitle() { |
|
273 |
return this.browser.getTitle(); |
|
274 |
} |
|
275 |
|
|
276 |
@Override |
|
277 |
public JComponent asJComponent() { |
|
278 |
return this; |
|
279 |
} |
|
280 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/webbrowser/jfx/JFXWebBrowserPanelView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/gvSIG/plugins/org.gvsig.scripting.app.mainplugin/scripts/addons/ScriptingComposerTools/javadocviewer/webbrowserpanel/browserpanel.xml</at> |
|
28 |
<at name="path">addons/ScriptingComposerTools/javadocviewer/webbrowserpanel/browserpanel.xml</at> |
|
29 |
<at name="rowspecs">CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE</at> |
|
30 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
|
31 |
<at name="components"> |
|
32 |
<object classname="java.util.LinkedList"> |
|
33 |
<item > |
|
34 |
<at name="value"> |
|
35 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
36 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
37 |
<at name="cellconstraints"> |
|
38 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
39 |
<at name="column">8</at> |
|
40 |
<at name="row">2</at> |
|
41 |
<at name="colspan">1</at> |
|
42 |
<at name="rowspan">1</at> |
|
43 |
<at name="halign">default</at> |
|
44 |
<at name="valign">default</at> |
|
45 |
<at name="insets" object="insets">0,0,0,0</at> |
|
46 |
</object> |
|
47 |
</at> |
|
48 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
49 |
</super> |
|
50 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
51 |
<at name="beanclass">javax.swing.JTextField</at> |
|
52 |
<at name="beanproperties"> |
|
53 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
54 |
<at name="classname">javax.swing.JTextField</at> |
|
55 |
<at name="properties"> |
|
56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
57 |
<at name="border"> |
|
58 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
59 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
60 |
<at name="name">border</at> |
|
61 |
</super> |
|
62 |
<at name="borders"> |
|
63 |
<object classname="java.util.LinkedList"> |
|
64 |
<item > |
|
65 |
<at name="value"> |
|
66 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
</object> |
|
71 |
</at> |
|
72 |
</item> |
|
73 |
</object> |
|
74 |
</at> |
|
75 |
</object> |
|
76 |
</at> |
|
77 |
<at name="name">txtURL</at> |
|
78 |
<at name="width">843</at> |
|
79 |
<at name="height">20</at> |
|
80 |
</object> |
|
81 |
</at> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
</object> |
|
85 |
</at> |
|
86 |
</item> |
|
87 |
<item > |
|
88 |
<at name="value"> |
|
89 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
90 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
91 |
<at name="cellconstraints"> |
|
92 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
93 |
<at name="column">2</at> |
|
94 |
<at name="row">4</at> |
|
95 |
<at name="colspan">9</at> |
|
96 |
<at name="rowspan">1</at> |
|
97 |
<at name="halign">fill</at> |
|
98 |
<at name="valign">fill</at> |
|
99 |
<at name="insets" object="insets">0,0,0,0</at> |
|
100 |
</object> |
|
101 |
</at> |
|
102 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
103 |
</super> |
|
104 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
105 |
<at name="beanclass">javax.swing.JPanel</at> |
|
106 |
<at name="beanproperties"> |
|
107 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
108 |
<at name="classname">javax.swing.JPanel</at> |
|
109 |
<at name="properties"> |
|
110 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
111 |
<at name="name">containerBrowser</at> |
|
112 |
<at name="width">935</at> |
|
113 |
<at name="height">466</at> |
|
114 |
</object> |
|
115 |
</at> |
|
116 |
</object> |
|
117 |
</at> |
|
118 |
</object> |
|
119 |
</at> |
|
120 |
</item> |
|
121 |
<item > |
|
122 |
<at name="value"> |
|
123 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
124 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
125 |
<at name="cellconstraints"> |
|
126 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
127 |
<at name="column">2</at> |
|
128 |
<at name="row">6</at> |
|
129 |
<at name="colspan">9</at> |
|
130 |
<at name="rowspan">1</at> |
|
131 |
<at name="halign">default</at> |
|
132 |
<at name="valign">default</at> |
|
133 |
<at name="insets" object="insets">0,0,0,0</at> |
|
134 |
</object> |
|
135 |
</at> |
|
136 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
137 |
</super> |
|
138 |
<at name="id">embedded.1838006420</at> |
|
139 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
|
140 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MIN(12DLU;DEFAULT):GROW(0.3),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.7)</at> |
|
141 |
<at name="components"> |
|
142 |
<object classname="java.util.LinkedList"> |
|
143 |
<item > |
|
144 |
<at name="value"> |
|
145 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
146 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
147 |
<at name="cellconstraints"> |
|
148 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
149 |
<at name="column">3</at> |
|
150 |
<at name="row">1</at> |
|
151 |
<at name="colspan">1</at> |
|
152 |
<at name="rowspan">1</at> |
|
153 |
<at name="halign">default</at> |
|
154 |
<at name="valign">default</at> |
|
155 |
<at name="insets" object="insets">0,0,0,0</at> |
|
156 |
</object> |
|
157 |
</at> |
|
158 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
159 |
</super> |
|
160 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
161 |
<at name="beanclass">javax.swing.JTextField</at> |
|
162 |
<at name="beanproperties"> |
|
163 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
164 |
<at name="classname">javax.swing.JTextField</at> |
|
165 |
<at name="properties"> |
|
166 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
167 |
<at name="border"> |
|
168 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
169 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
170 |
<at name="name">border</at> |
|
171 |
</super> |
|
172 |
<at name="borders"> |
|
173 |
<object classname="java.util.LinkedList"> |
|
174 |
<item > |
|
175 |
<at name="value"> |
|
176 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
177 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
178 |
<at name="name">border</at> |
|
179 |
</super> |
|
180 |
</object> |
|
181 |
</at> |
|
182 |
</item> |
|
183 |
</object> |
|
184 |
</at> |
|
185 |
</object> |
|
186 |
</at> |
|
187 |
<at name="name">txtSearch</at> |
|
188 |
<at name="width">259</at> |
|
189 |
<at name="height">20</at> |
|
190 |
</object> |
|
191 |
</at> |
|
192 |
</object> |
|
193 |
</at> |
|
194 |
</object> |
|
195 |
</at> |
|
196 |
</item> |
|
197 |
<item > |
|
198 |
<at name="value"> |
|
199 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
200 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
201 |
<at name="cellconstraints"> |
|
202 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
203 |
<at name="column">9</at> |
|
204 |
<at name="row">1</at> |
|
205 |
<at name="colspan">1</at> |
|
206 |
<at name="rowspan">1</at> |
|
207 |
<at name="halign">fill</at> |
|
208 |
<at name="valign">fill</at> |
|
209 |
<at name="insets" object="insets">0,0,0,0</at> |
|
210 |
</object> |
|
211 |
</at> |
|
212 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
213 |
</super> |
|
214 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
215 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
216 |
<at name="beanproperties"> |
|
217 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
218 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
219 |
<at name="properties"> |
|
220 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
221 |
<at name="border"> |
|
222 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
223 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
224 |
<at name="name">border</at> |
|
225 |
</super> |
|
226 |
<at name="borders"> |
|
227 |
<object classname="java.util.LinkedList"> |
|
228 |
<item > |
|
229 |
<at name="value"> |
|
230 |
<object classname="com.jeta.forms.store.properties.LineBorderProperty"> |
|
231 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
232 |
<at name="name">border</at> |
|
233 |
</super> |
|
234 |
<at name="thickness">1</at> |
|
235 |
<at name="color"> |
|
236 |
<object classname="com.jeta.forms.store.properties.ColorProperty"> |
|
237 |
<at name="name">dyncolor</at> |
|
238 |
<at name="colorkey">Button.shadow</at> |
|
239 |
</object> |
|
240 |
</at> |
|
241 |
<at name="curved">false</at> |
|
242 |
</object> |
|
243 |
</at> |
|
244 |
</item> |
|
245 |
<item > |
|
246 |
<at name="value"> |
|
247 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
248 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
249 |
<at name="name">border</at> |
|
250 |
</super> |
|
251 |
</object> |
|
252 |
</at> |
|
253 |
</item> |
|
254 |
</object> |
|
255 |
</at> |
|
256 |
</object> |
|
257 |
</at> |
|
258 |
<at name="name">lblStatus</at> |
|
259 |
<at name="width">587</at> |
|
260 |
<at name="fill"> |
|
261 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
262 |
<at name="name">fill</at> |
|
263 |
</object> |
|
264 |
</at> |
|
265 |
<at name="height">20</at> |
|
266 |
</object> |
|
267 |
</at> |
|
268 |
</object> |
|
269 |
</at> |
|
270 |
</object> |
|
271 |
</at> |
|
272 |
</item> |
|
273 |
<item > |
|
274 |
<at name="value"> |
|
275 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
276 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
277 |
<at name="cellconstraints"> |
|
278 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
279 |
<at name="column">1</at> |
|
280 |
<at name="row">1</at> |
|
281 |
<at name="colspan">1</at> |
|
282 |
<at name="rowspan">1</at> |
|
283 |
<at name="halign">default</at> |
|
284 |
<at name="valign">default</at> |
|
285 |
<at name="insets" object="insets">0,0,0,0</at> |
|
286 |
</object> |
|
287 |
</at> |
|
288 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
289 |
</super> |
|
290 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
291 |
<at name="beanclass">com.jeta.forms.components.image.ImageComponent</at> |
|
292 |
<at name="beanproperties"> |
|
293 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
294 |
<at name="classname">com.jeta.forms.components.image.ImageComponent</at> |
|
295 |
<at name="properties"> |
|
296 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
297 |
<at name="border"> |
|
298 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
299 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
300 |
<at name="name">border</at> |
|
301 |
</super> |
|
302 |
<at name="borders"> |
|
303 |
<object classname="java.util.LinkedList"> |
|
304 |
<item > |
|
305 |
<at name="value"> |
|
306 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
307 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
308 |
<at name="name">border</at> |
|
309 |
</super> |
|
310 |
</object> |
|
311 |
</at> |
|
312 |
</item> |
|
313 |
</object> |
|
314 |
</at> |
|
315 |
</object> |
|
316 |
</at> |
|
317 |
<at name="name">imgSearch</at> |
|
318 |
<at name="width">16</at> |
|
319 |
<at name="height">16</at> |
|
320 |
</object> |
|
321 |
</at> |
|
322 |
</object> |
|
323 |
</at> |
|
324 |
</object> |
|
325 |
</at> |
|
326 |
</item> |
|
327 |
<item > |
|
328 |
<at name="value"> |
|
329 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
330 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
331 |
<at name="cellconstraints"> |
|
332 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
333 |
<at name="column">5</at> |
|
334 |
<at name="row">1</at> |
|
335 |
<at name="colspan">1</at> |
|
336 |
<at name="rowspan">1</at> |
|
337 |
<at name="halign">default</at> |
|
338 |
<at name="valign">default</at> |
|
339 |
<at name="insets" object="insets">0,0,0,0</at> |
|
340 |
</object> |
|
341 |
</at> |
|
342 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
343 |
</super> |
|
344 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
345 |
<at name="beanclass">javax.swing.JButton</at> |
|
346 |
<at name="beanproperties"> |
|
347 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
348 |
<at name="classname">javax.swing.JButton</at> |
|
349 |
<at name="properties"> |
|
350 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
351 |
<at name="border"> |
|
352 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
353 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
354 |
<at name="name">border</at> |
|
355 |
</super> |
|
356 |
<at name="borders"> |
|
357 |
<object classname="java.util.LinkedList"> |
|
358 |
<item > |
|
359 |
<at name="value"> |
|
360 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
361 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
362 |
<at name="name">border</at> |
|
363 |
</super> |
|
364 |
<at name="top">0</at> |
|
365 |
<at name="left">0</at> |
|
366 |
<at name="bottom">0</at> |
|
367 |
<at name="right">0</at> |
|
368 |
</object> |
|
369 |
</at> |
|
370 |
</item> |
|
371 |
</object> |
|
372 |
</at> |
|
373 |
</object> |
|
374 |
</at> |
|
375 |
<at name="name">btnSearchNext</at> |
|
376 |
<at name="width">12</at> |
|
377 |
<at name="height">12</at> |
|
378 |
</object> |
|
379 |
</at> |
|
380 |
</object> |
|
381 |
</at> |
|
382 |
</object> |
|
383 |
</at> |
|
384 |
</item> |
|
385 |
<item > |
|
386 |
<at name="value"> |
|
387 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
388 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
389 |
<at name="cellconstraints"> |
|
390 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
391 |
<at name="column">7</at> |
|
392 |
<at name="row">1</at> |
|
393 |
<at name="colspan">1</at> |
|
394 |
<at name="rowspan">1</at> |
|
395 |
<at name="halign">default</at> |
|
396 |
<at name="valign">default</at> |
|
397 |
<at name="insets" object="insets">0,0,0,0</at> |
|
398 |
</object> |
|
399 |
</at> |
|
400 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
401 |
</super> |
|
402 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
403 |
<at name="beanclass">javax.swing.JButton</at> |
|
404 |
<at name="beanproperties"> |
|
405 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
406 |
<at name="classname">javax.swing.JButton</at> |
|
407 |
<at name="properties"> |
|
408 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
409 |
<at name="border"> |
|
410 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
411 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
412 |
<at name="name">border</at> |
|
413 |
</super> |
|
414 |
<at name="borders"> |
|
415 |
<object classname="java.util.LinkedList"> |
|
416 |
<item > |
|
417 |
<at name="value"> |
|
418 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
419 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
420 |
<at name="name">border</at> |
|
421 |
</super> |
|
422 |
<at name="top">0</at> |
|
423 |
<at name="left">0</at> |
|
424 |
<at name="bottom">0</at> |
|
425 |
<at name="right">0</at> |
|
426 |
</object> |
|
427 |
</at> |
|
428 |
</item> |
|
429 |
</object> |
|
430 |
</at> |
|
431 |
</object> |
|
432 |
</at> |
|
433 |
<at name="name">btnSearchPrevious</at> |
|
434 |
<at name="width">12</at> |
|
435 |
<at name="height">12</at> |
|
436 |
</object> |
|
437 |
</at> |
|
438 |
</object> |
|
439 |
</at> |
|
440 |
</object> |
|
441 |
</at> |
|
442 |
</item> |
|
443 |
</object> |
|
444 |
</at> |
|
445 |
<at name="properties"> |
|
446 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
447 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
448 |
<at name="properties"> |
|
449 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
450 |
<at name="border"> |
|
451 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
452 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
453 |
<at name="name">border</at> |
|
454 |
</super> |
|
455 |
<at name="borders"> |
|
456 |
<object classname="java.util.LinkedList"/> |
|
457 |
</at> |
|
458 |
</object> |
|
459 |
</at> |
|
460 |
<at name="name"/> |
|
461 |
<at name="fill"> |
|
462 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
463 |
<at name="name">fill</at> |
|
464 |
</object> |
|
465 |
</at> |
|
466 |
<at name="scollBars"> |
|
467 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
468 |
<at name="name">scollBars</at> |
|
469 |
<at name="verticalpolicy">21</at> |
|
470 |
<at name="horizontalpolicy">31</at> |
|
471 |
<at name="border"> |
|
472 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
473 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
474 |
<at name="name">border</at> |
|
475 |
</super> |
|
476 |
<at name="borders"> |
|
477 |
<object classname="java.util.LinkedList"> |
|
478 |
<item > |
|
479 |
<at name="value"> |
|
480 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
481 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
482 |
<at name="name">border</at> |
|
483 |
</super> |
|
484 |
</object> |
|
485 |
</at> |
|
486 |
</item> |
|
487 |
</object> |
|
488 |
</at> |
|
489 |
</object> |
|
490 |
</at> |
|
491 |
</object> |
|
492 |
</at> |
|
493 |
</object> |
|
494 |
</at> |
|
495 |
</object> |
|
496 |
</at> |
|
497 |
<at name="cellpainters"> |
|
498 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
499 |
<at name="rows"> |
|
500 |
<object classname="[Ljava.lang.Object;" size="1"> |
|
501 |
<at name="item" index="0"> |
|
502 |
<object classname="[Ljava.lang.Object;" size="9"/> |
|
503 |
</at> |
|
504 |
</object> |
|
505 |
</at> |
|
506 |
</object> |
|
507 |
</at> |
|
508 |
<at name="rowgroups"> |
|
509 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
510 |
<at name="groups"> |
|
511 |
<object classname="java.util.HashMap"/> |
|
512 |
</at> |
|
513 |
</object> |
|
514 |
</at> |
|
515 |
<at name="colgroups"> |
|
516 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
517 |
<at name="groups"> |
|
518 |
<object classname="java.util.HashMap"/> |
|
519 |
</at> |
|
520 |
</object> |
|
521 |
</at> |
|
522 |
</object> |
|
523 |
</at> |
|
524 |
</item> |
|
525 |
<item > |
|
526 |
<at name="value"> |
|
527 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
528 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
529 |
<at name="cellconstraints"> |
|
530 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
531 |
<at name="column">2</at> |
|
532 |
<at name="row">2</at> |
|
533 |
<at name="colspan">1</at> |
|
534 |
<at name="rowspan">1</at> |
|
535 |
<at name="halign">fill</at> |
|
536 |
<at name="valign">fill</at> |
|
537 |
<at name="insets" object="insets">0,0,0,0</at> |
|
538 |
</object> |
|
539 |
</at> |
|
540 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
541 |
</super> |
|
542 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
543 |
<at name="beanclass">javax.swing.JButton</at> |
|
544 |
<at name="beanproperties"> |
|
545 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
546 |
<at name="classname">javax.swing.JButton</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 |
<item > |
|
557 |
<at name="value"> |
|
558 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
559 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
560 |
<at name="name">border</at> |
|
561 |
</super> |
|
562 |
<at name="top">0</at> |
|
563 |
<at name="left">0</at> |
|
564 |
<at name="bottom">0</at> |
|
565 |
<at name="right">0</at> |
|
566 |
</object> |
|
567 |
</at> |
|
568 |
</item> |
|
569 |
</object> |
|
570 |
</at> |
|
571 |
</object> |
|
572 |
</at> |
|
573 |
<at name="name">btnPrevious</at> |
|
574 |
<at name="width">12</at> |
|
575 |
<at name="height">20</at> |
|
576 |
</object> |
|
577 |
</at> |
|
578 |
</object> |
|
579 |
</at> |
|
580 |
</object> |
|
581 |
</at> |
|
582 |
</item> |
|
583 |
<item > |
|
584 |
<at name="value"> |
|
585 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
586 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
587 |
<at name="cellconstraints"> |
|
588 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
589 |
<at name="column">4</at> |
|
590 |
<at name="row">2</at> |
|
591 |
<at name="colspan">1</at> |
|
592 |
<at name="rowspan">1</at> |
|
593 |
<at name="halign">fill</at> |
|
594 |
<at name="valign">fill</at> |
|
595 |
<at name="insets" object="insets">0,0,0,0</at> |
|
596 |
</object> |
|
597 |
</at> |
|
598 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
599 |
</super> |
|
600 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
601 |
<at name="beanclass">javax.swing.JButton</at> |
|
602 |
<at name="beanproperties"> |
|
603 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
604 |
<at name="classname">javax.swing.JButton</at> |
|
605 |
<at name="properties"> |
|
606 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
607 |
<at name="border"> |
|
608 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
609 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
610 |
<at name="name">border</at> |
|
611 |
</super> |
|
612 |
<at name="borders"> |
|
613 |
<object classname="java.util.LinkedList"> |
|
614 |
<item > |
|
615 |
<at name="value"> |
|
616 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
617 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
618 |
<at name="name">border</at> |
|
619 |
</super> |
|
620 |
<at name="top">0</at> |
|
621 |
<at name="left">0</at> |
|
622 |
<at name="bottom">0</at> |
|
623 |
<at name="right">0</at> |
|
624 |
</object> |
|
625 |
</at> |
|
626 |
</item> |
|
627 |
</object> |
|
628 |
</at> |
|
629 |
</object> |
|
630 |
</at> |
|
631 |
<at name="name">btnNext</at> |
|
632 |
<at name="width">12</at> |
|
633 |
<at name="height">20</at> |
|
634 |
</object> |
|
635 |
</at> |
|
636 |
</object> |
|
637 |
</at> |
|
638 |
</object> |
|
639 |
</at> |
|
640 |
</item> |
|
641 |
<item > |
|
642 |
<at name="value"> |
|
643 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
644 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
645 |
<at name="cellconstraints"> |
|
646 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
647 |
<at name="column">6</at> |
|
648 |
<at name="row">2</at> |
|
649 |
<at name="colspan">1</at> |
|
650 |
<at name="rowspan">1</at> |
|
651 |
<at name="halign">fill</at> |
|
652 |
<at name="valign">fill</at> |
|
653 |
<at name="insets" object="insets">0,0,0,0</at> |
|
654 |
</object> |
|
655 |
</at> |
|
656 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
657 |
</super> |
|
658 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
659 |
<at name="beanclass">javax.swing.JButton</at> |
|
660 |
<at name="beanproperties"> |
|
661 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
662 |
<at name="classname">javax.swing.JButton</at> |
|
663 |
<at name="properties"> |
|
664 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
665 |
<at name="border"> |
|
666 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
667 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
668 |
<at name="name">border</at> |
|
669 |
</super> |
|
670 |
<at name="borders"> |
|
671 |
<object classname="java.util.LinkedList"> |
|
672 |
<item > |
|
673 |
<at name="value"> |
|
674 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
675 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
676 |
<at name="name">border</at> |
|
677 |
</super> |
|
678 |
<at name="top">0</at> |
|
679 |
<at name="left">0</at> |
|
680 |
<at name="bottom">0</at> |
|
681 |
<at name="right">0</at> |
|
682 |
</object> |
|
683 |
</at> |
|
684 |
</item> |
|
685 |
</object> |
|
686 |
</at> |
|
687 |
</object> |
|
688 |
</at> |
|
689 |
<at name="name">btnRefresh</at> |
|
690 |
<at name="width">12</at> |
|
691 |
<at name="enabled">false</at> |
|
692 |
<at name="height">20</at> |
|
693 |
</object> |
|
694 |
</at> |
|
695 |
</object> |
|
696 |
</at> |
|
697 |
</object> |
|
698 |
</at> |
|
699 |
</item> |
|
700 |
<item > |
|
701 |
<at name="value"> |
|
702 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
703 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
704 |
<at name="cellconstraints"> |
|
705 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
706 |
<at name="column">10</at> |
|
707 |
<at name="row">2</at> |
|
708 |
<at name="colspan">1</at> |
|
709 |
<at name="rowspan">1</at> |
|
710 |
<at name="halign">fill</at> |
|
711 |
<at name="valign">fill</at> |
|
712 |
<at name="insets" object="insets">0,0,0,0</at> |
|
713 |
</object> |
|
714 |
</at> |
|
715 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
716 |
</super> |
|
717 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
718 |
<at name="beanclass">javax.swing.JButton</at> |
|
719 |
<at name="beanproperties"> |
|
720 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
721 |
<at name="classname">javax.swing.JButton</at> |
|
722 |
<at name="properties"> |
|
723 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
724 |
<at name="border"> |
|
725 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
726 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
727 |
<at name="name">border</at> |
|
728 |
</super> |
|
729 |
<at name="borders"> |
|
730 |
<object classname="java.util.LinkedList"> |
|
731 |
<item > |
|
732 |
<at name="value"> |
|
733 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
734 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
735 |
<at name="name">border</at> |
|
736 |
</super> |
|
737 |
<at name="top">0</at> |
|
738 |
<at name="left">0</at> |
|
739 |
<at name="bottom">0</at> |
|
740 |
<at name="right">0</at> |
|
741 |
</object> |
|
742 |
</at> |
|
743 |
</item> |
|
744 |
</object> |
|
745 |
</at> |
|
746 |
</object> |
|
747 |
</at> |
|
748 |
<at name="name">btnConfig</at> |
|
749 |
<at name="width">12</at> |
|
750 |
<at name="enabled">false</at> |
|
751 |
<at name="height">20</at> |
|
752 |
</object> |
|
753 |
</at> |
|
754 |
</object> |
|
755 |
</at> |
|
756 |
</object> |
|
757 |
</at> |
|
758 |
</item> |
|
759 |
</object> |
|
760 |
</at> |
|
761 |
<at name="properties"> |
|
762 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
763 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
764 |
<at name="properties"> |
|
765 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
766 |
<at name="border"> |
|
767 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
768 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
769 |
<at name="name">border</at> |
|
770 |
</super> |
|
771 |
<at name="borders"> |
|
772 |
<object classname="java.util.LinkedList"/> |
|
773 |
</at> |
|
774 |
</object> |
|
775 |
</at> |
|
776 |
<at name="name"/> |
|
777 |
<at name="fill"> |
|
778 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
779 |
<at name="name">fill</at> |
|
780 |
</object> |
|
781 |
</at> |
|
782 |
<at name="scollBars"> |
|
783 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
784 |
<at name="name">scollBars</at> |
|
785 |
<at name="verticalpolicy">21</at> |
|
786 |
<at name="horizontalpolicy">31</at> |
|
787 |
<at name="border"> |
|
788 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
789 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
790 |
<at name="name">border</at> |
|
791 |
</super> |
|
792 |
<at name="borders"> |
|
793 |
<object classname="java.util.LinkedList"> |
|
794 |
<item > |
|
795 |
<at name="value"> |
|
796 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
797 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
798 |
<at name="name">border</at> |
|
799 |
</super> |
|
800 |
</object> |
|
801 |
</at> |
|
802 |
</item> |
|
803 |
</object> |
|
804 |
</at> |
|
805 |
</object> |
|
806 |
</at> |
|
807 |
</object> |
|
808 |
</at> |
|
809 |
</object> |
|
810 |
</at> |
|
811 |
</object> |
|
812 |
</at> |
|
813 |
<at name="cellpainters"> |
|
814 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
815 |
<at name="rows"> |
|
816 |
<object classname="[Ljava.lang.Object;" size="7"> |
|
817 |
<at name="item" index="0"> |
|
818 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
819 |
</at> |
|
820 |
<at name="item" index="1"> |
|
821 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
822 |
</at> |
|
823 |
<at name="item" index="2"> |
|
824 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
825 |
</at> |
|
826 |
<at name="item" index="3"> |
|
827 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
828 |
</at> |
|
829 |
<at name="item" index="4"> |
|
830 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
831 |
</at> |
|
832 |
<at name="item" index="5"> |
|
833 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
834 |
</at> |
|
835 |
<at name="item" index="6"> |
|
836 |
<object classname="[Ljava.lang.Object;" size="11"/> |
|
837 |
</at> |
|
838 |
</object> |
|
839 |
</at> |
|
840 |
</object> |
|
841 |
</at> |
|
842 |
<at name="rowgroups"> |
|
843 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
844 |
<at name="groups"> |
|
845 |
<object classname="java.util.HashMap"/> |
|
846 |
</at> |
|
847 |
</object> |
|
848 |
</at> |
|
849 |
<at name="colgroups"> |
|
850 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
851 |
<at name="groups"> |
|
852 |
<object classname="java.util.HashMap"/> |
|
853 |
</at> |
|
854 |
</object> |
|
855 |
</at> |
|
856 |
</object> |
|
857 |
</at> |
|
858 |
</object> |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/webbrowser/jfx/JFXWebBrowserPanelView.java | ||
---|---|---|
1 |
package org.gvsig.webbrowser.jfx; |
|
2 |
|
|
3 |
import com.jeta.forms.components.image.ImageComponent; |
|
4 |
import com.jeta.open.i18n.I18NUtils; |
|
5 |
import com.jgoodies.forms.layout.CellConstraints; |
|
6 |
import com.jgoodies.forms.layout.FormLayout; |
|
7 |
import java.awt.BorderLayout; |
|
8 |
import java.awt.Color; |
|
9 |
import java.awt.ComponentOrientation; |
|
10 |
import java.awt.Container; |
|
11 |
import java.awt.Dimension; |
|
12 |
import javax.swing.Box; |
|
13 |
import javax.swing.ImageIcon; |
|
14 |
import javax.swing.JButton; |
|
15 |
import javax.swing.JFrame; |
|
16 |
import javax.swing.JLabel; |
|
17 |
import javax.swing.JPanel; |
|
18 |
import javax.swing.JTextField; |
|
19 |
import javax.swing.border.EmptyBorder; |
|
20 |
import javax.swing.border.LineBorder; |
|
21 |
|
|
22 |
|
|
23 |
public class JFXWebBrowserPanelView extends JPanel |
|
24 |
{ |
|
25 |
JTextField txtURL = new JTextField(); |
|
26 |
JPanel containerBrowser = new JPanel(); |
|
27 |
JTextField txtSearch = new JTextField(); |
|
28 |
JLabel lblStatus = new JLabel(); |
|
29 |
ImageComponent imgSearch = new ImageComponent(); |
|
30 |
JButton btnSearchNext = new JButton(); |
|
31 |
JButton btnSearchPrevious = new JButton(); |
|
32 |
JButton btnPrevious = new JButton(); |
|
33 |
JButton btnNext = new JButton(); |
|
34 |
JButton btnRefresh = new JButton(); |
|
35 |
JButton btnConfig = new JButton(); |
|
36 |
|
|
37 |
/** |
|
38 |
* Default constructor |
|
39 |
*/ |
|
40 |
public JFXWebBrowserPanelView() |
|
41 |
{ |
|
42 |
initializePanel(); |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
47 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
48 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
49 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
50 |
*/ |
|
51 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
52 |
{ |
|
53 |
Dimension filler = new Dimension(10,10); |
|
54 |
|
|
55 |
boolean filled_cell_11 = false; |
|
56 |
CellConstraints cc = new CellConstraints(); |
|
57 |
if ( cols.length > 0 && rows.length > 0 ) |
|
58 |
{ |
|
59 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
60 |
{ |
|
61 |
/** add a rigid area */ |
|
62 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
63 |
filled_cell_11 = true; |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
for( int index = 0; index < cols.length; index++ ) |
|
68 |
{ |
|
69 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
70 |
{ |
|
71 |
continue; |
|
72 |
} |
|
73 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
74 |
} |
|
75 |
|
|
76 |
for( int index = 0; index < rows.length; index++ ) |
|
77 |
{ |
|
78 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
79 |
{ |
|
80 |
continue; |
|
81 |
} |
|
82 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
83 |
} |
|
84 |
|
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* Helper method to load an image file from the CLASSPATH |
|
89 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
90 |
* @return an ImageIcon instance with the specified image file |
|
91 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
92 |
*/ |
|
93 |
public ImageIcon loadImage( String imageName ) |
|
94 |
{ |
|
95 |
try |
|
96 |
{ |
|
97 |
ClassLoader classloader = getClass().getClassLoader(); |
|
98 |
java.net.URL url = classloader.getResource( imageName ); |
|
99 |
if ( url != null ) |
|
100 |
{ |
|
101 |
ImageIcon icon = new ImageIcon( url ); |
|
102 |
return icon; |
|
103 |
} |
|
104 |
} |
|
105 |
catch( Exception e ) |
|
106 |
{ |
|
107 |
e.printStackTrace(); |
|
108 |
} |
|
109 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
110 |
} |
|
111 |
|
|
112 |
/** |
|
113 |
* Method for recalculating the component orientation for |
|
114 |
* right-to-left Locales. |
|
115 |
* @param orientation the component orientation to be applied |
|
116 |
*/ |
|
117 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
118 |
{ |
|
119 |
// Not yet implemented... |
|
120 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
121 |
super.applyComponentOrientation(orientation); |
|
122 |
} |
|
123 |
|
|
124 |
public JPanel createPanel() |
|
125 |
{ |
|
126 |
JPanel jpanel1 = new JPanel(); |
|
127 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE"); |
|
128 |
CellConstraints cc = new CellConstraints(); |
|
129 |
jpanel1.setLayout(formlayout1); |
|
130 |
|
|
131 |
txtURL.setName("txtURL"); |
|
132 |
jpanel1.add(txtURL,cc.xy(8,2)); |
|
133 |
|
|
134 |
containerBrowser.setName("containerBrowser"); |
|
135 |
jpanel1.add(containerBrowser,new CellConstraints(2,4,9,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
136 |
|
|
137 |
jpanel1.add(createPanel1(),cc.xywh(2,6,9,1)); |
|
138 |
btnPrevious.setName("btnPrevious"); |
|
139 |
EmptyBorder emptyborder1 = new EmptyBorder(0,0,0,0); |
|
140 |
btnPrevious.setBorder(emptyborder1); |
|
141 |
jpanel1.add(btnPrevious,new CellConstraints(2,2,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
142 |
|
|
143 |
btnNext.setName("btnNext"); |
|
144 |
EmptyBorder emptyborder2 = new EmptyBorder(0,0,0,0); |
|
145 |
btnNext.setBorder(emptyborder2); |
|
146 |
jpanel1.add(btnNext,new CellConstraints(4,2,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
147 |
|
|
148 |
btnRefresh.setEnabled(false); |
|
149 |
btnRefresh.setName("btnRefresh"); |
|
150 |
EmptyBorder emptyborder3 = new EmptyBorder(0,0,0,0); |
|
151 |
btnRefresh.setBorder(emptyborder3); |
|
152 |
jpanel1.add(btnRefresh,new CellConstraints(6,2,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
153 |
|
|
154 |
btnConfig.setEnabled(false); |
|
155 |
btnConfig.setName("btnConfig"); |
|
156 |
EmptyBorder emptyborder4 = new EmptyBorder(0,0,0,0); |
|
157 |
btnConfig.setBorder(emptyborder4); |
|
158 |
jpanel1.add(btnConfig,new CellConstraints(10,2,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
159 |
|
|
160 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11 },new int[]{ 1,2,3,4,5,6,7 }); |
|
161 |
return jpanel1; |
|
162 |
} |
|
163 |
|
|
164 |
public JPanel createPanel1() |
|
165 |
{ |
|
166 |
JPanel jpanel1 = new JPanel(); |
|
167 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MIN(12DLU;DEFAULT):GROW(0.3),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.7)","CENTER:DEFAULT:NONE"); |
|
168 |
CellConstraints cc = new CellConstraints(); |
|
169 |
jpanel1.setLayout(formlayout1); |
|
170 |
|
|
171 |
txtSearch.setName("txtSearch"); |
|
172 |
jpanel1.add(txtSearch,cc.xy(3,1)); |
|
173 |
|
|
174 |
lblStatus.setName("lblStatus"); |
|
175 |
LineBorder lineborder1 = new LineBorder(new Color(189,190,176),1,false); |
|
176 |
lblStatus.setBorder(lineborder1); |
|
177 |
jpanel1.add(lblStatus,new CellConstraints(9,1,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
178 |
|
|
179 |
imgSearch.setName("imgSearch"); |
|
180 |
jpanel1.add(imgSearch,cc.xy(1,1)); |
|
181 |
|
|
182 |
btnSearchNext.setName("btnSearchNext"); |
|
183 |
EmptyBorder emptyborder1 = new EmptyBorder(0,0,0,0); |
|
184 |
btnSearchNext.setBorder(emptyborder1); |
|
185 |
jpanel1.add(btnSearchNext,cc.xy(5,1)); |
|
186 |
|
|
187 |
btnSearchPrevious.setName("btnSearchPrevious"); |
|
188 |
EmptyBorder emptyborder2 = new EmptyBorder(0,0,0,0); |
|
189 |
btnSearchPrevious.setBorder(emptyborder2); |
|
190 |
jpanel1.add(btnSearchPrevious,cc.xy(7,1)); |
|
191 |
|
|
192 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8 },new int[0]); |
|
193 |
return jpanel1; |
|
194 |
} |
|
195 |
|
|
196 |
/** |
|
197 |
* Initializer |
|
198 |
*/ |
|
199 |
protected void initializePanel() |
|
200 |
{ |
|
201 |
setLayout(new BorderLayout()); |
|
202 |
add(createPanel(), BorderLayout.CENTER); |
|
203 |
} |
|
204 |
|
|
205 |
|
|
206 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/pom.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 | 5 |
|
5 | 6 |
<modelVersion>4.0.0</modelVersion> |
6 | 7 |
<artifactId>org.gvsig.ui</artifactId> |
... | ... | |
8 | 9 |
<name>${project.artifactId}</name> |
9 | 10 |
<description>Swing components collection</description> |
10 | 11 |
<parent> |
11 |
<groupId>org.gvsig</groupId>
|
|
12 |
<artifactId>org.gvsig.desktop.library</artifactId>
|
|
13 |
<version>2.0.196-SNAPSHOT</version>
|
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.desktop.library</artifactId> |
|
14 |
<version>2.0.196-SNAPSHOT</version> |
|
14 | 15 |
</parent> |
15 | 16 |
|
16 | 17 |
<dependencies> |
... | ... | |
49 | 50 |
<artifactId>slf4j-api</artifactId> |
50 | 51 |
<scope>compile</scope> |
51 | 52 |
</dependency> |
52 |
<!-- |
Also available in: Unified diff