Revision 852
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/CrsTreeNode.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import org.gvsig.proj.catalog.CRSDefinition; |
|
4 |
|
|
5 |
public class CrsTreeNode extends LeafNode { |
|
6 |
private CRSDefinition crs; |
|
7 |
public CrsTreeNode(CRSDefinition crs, BranchNode parent) { |
|
8 |
super(parent); |
|
9 |
this.crs = crs; |
|
10 |
} |
|
11 |
|
|
12 |
public CRSDefinition getCRS() { |
|
13 |
return crs; |
|
14 |
} |
|
15 |
|
|
16 |
@Override |
|
17 |
public String toString() { |
|
18 |
return crs.toString(); |
|
19 |
} |
|
20 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/LeafNode.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.util.Collections; |
|
4 |
import java.util.Enumeration; |
|
5 |
|
|
6 |
import javax.swing.ImageIcon; |
|
7 |
import javax.swing.tree.TreeNode; |
|
8 |
|
|
9 |
public class LeafNode implements TreeNode { |
|
10 |
private BranchNode parent; |
|
11 |
|
|
12 |
public LeafNode(BranchNode parent) { |
|
13 |
this.parent = parent; |
|
14 |
} |
|
15 |
|
|
16 |
@Override |
|
17 |
public TreeNode getChildAt(int childIndex) { |
|
18 |
return null; |
|
19 |
} |
|
20 |
|
|
21 |
@Override |
|
22 |
public int getChildCount() { |
|
23 |
return 0; |
|
24 |
} |
|
25 |
|
|
26 |
@Override |
|
27 |
public TreeNode getParent() { |
|
28 |
return parent; |
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public int getIndex(TreeNode node) { |
|
33 |
return -1; |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public boolean getAllowsChildren() { |
|
38 |
return false; |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
public boolean isLeaf() { |
|
43 |
return true; |
|
44 |
} |
|
45 |
|
|
46 |
@SuppressWarnings("rawtypes") |
|
47 |
@Override |
|
48 |
public Enumeration children() { |
|
49 |
return Collections.emptyEnumeration(); |
|
50 |
} |
|
51 |
|
|
52 |
public ImageIcon getIcon() { |
|
53 |
return null; |
|
54 |
}; |
|
55 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/CrsLoader.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
import javax.swing.tree.TreeNode; |
|
7 |
|
|
8 |
import org.gvsig.proj.catalog.CRSCatalogManager; |
|
9 |
import org.gvsig.proj.catalog.CRSDefinition; |
|
10 |
import org.gvsig.proj.catalog.CRSType; |
|
11 |
import org.gvsig.proj.catalog.exception.UnsupportedCoordinateReferenceSystemException; |
|
12 |
import org.slf4j.Logger; |
|
13 |
import org.slf4j.LoggerFactory; |
|
14 |
|
|
15 |
public class CrsLoader extends GroupLoader { |
|
16 |
final private CRSCatalogManager catalogManager; |
|
17 |
final private CRSSearchFilter filter; |
|
18 |
private static Logger logger = LoggerFactory.getLogger(CrsLoader.class); |
|
19 |
|
|
20 |
public CrsLoader(CRSSearchFilter filter, |
|
21 |
AsyncLoadedGroup caller, |
|
22 |
CRSCatalogManager manager) { |
|
23 |
super(caller); |
|
24 |
this.catalogManager = manager; |
|
25 |
this.filter = filter; |
|
26 |
} |
|
27 |
|
|
28 |
@Override |
|
29 |
protected ArrayList<TreeNode> doInBackground() throws Exception { |
|
30 |
ArrayList<TreeNode> result = new ArrayList<TreeNode>(); |
|
31 |
List<String> codes; |
|
32 |
if (filter!=null) { |
|
33 |
codes = catalogManager.search(filter.getAuthority(), filter.getTextFilter(), filter.getIncludedTypes(), filter.getExcludedTypes()); |
|
34 |
} |
|
35 |
else { |
|
36 |
codes = catalogManager.getCodes(); |
|
37 |
} |
|
38 |
|
|
39 |
CRSDefinition def; |
|
40 |
CrsTreeNode node; |
|
41 |
for (String code: codes) { |
|
42 |
if (isCancelled()) { |
|
43 |
return null; |
|
44 |
} |
|
45 |
try { |
|
46 |
def = catalogManager.getCRSDefinition(code); |
|
47 |
node = new CrsTreeNode(def, caller); |
|
48 |
result.add(node); |
|
49 |
} catch (UnsupportedCoordinateReferenceSystemException e) { |
|
50 |
logger.debug("Unsupported CRS", e); |
|
51 |
} |
|
52 |
} |
|
53 |
return result; |
|
54 |
} |
|
55 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/TreeContainer.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import javax.swing.JTree; |
|
4 |
import javax.swing.tree.DefaultTreeModel; |
|
5 |
|
|
6 |
import org.gvsig.proj.swing.impl.DefaultCoordinateReferenceSystemSwingManager; |
|
7 |
|
|
8 |
public interface TreeContainer { |
|
9 |
JTree getTree(); |
|
10 |
|
|
11 |
DefaultTreeModel getModel(); |
|
12 |
|
|
13 |
LoadingNode createLoadingNode(BranchNode parent); |
|
14 |
|
|
15 |
DefaultCoordinateReferenceSystemSwingManager getManager(); |
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/AsyncLoadedGroup.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.Enumeration; |
|
5 |
|
|
6 |
import javax.swing.tree.TreeNode; |
|
7 |
|
|
8 |
public abstract class AsyncLoadedGroup extends BranchNode { |
|
9 |
private boolean loaded = false; |
|
10 |
private boolean loading = false; |
|
11 |
private GroupLoader loader = null; |
|
12 |
final protected TreeContainer container; |
|
13 |
|
|
14 |
public AsyncLoadedGroup(TreeNode parent, TreeContainer container, String message) { |
|
15 |
super(parent, container, message); |
|
16 |
this.container = container; |
|
17 |
} |
|
18 |
|
|
19 |
/** |
|
20 |
* Requests children to be loaded, if they have not been previously loaded |
|
21 |
* |
|
22 |
* @return true if children were previously loaded (so load was not needed), false |
|
23 |
* otherwise. |
|
24 |
*/ |
|
25 |
public void loadChildren() { |
|
26 |
if (loaded == false && loading==false) { |
|
27 |
reloadChildren(); |
|
28 |
} |
|
29 |
} |
|
30 |
|
|
31 |
public void reloadChildren() { |
|
32 |
if (!loading) { |
|
33 |
loading = true; |
|
34 |
doLoad(); |
|
35 |
children.clear(); |
|
36 |
children.add(new LoadingNode(this, container, container.getManager().getTranslation("Loading..."))); |
|
37 |
} |
|
38 |
else { |
|
39 |
doLoad(); |
|
40 |
} |
|
41 |
} |
|
42 |
|
|
43 |
public void doLoad() { |
|
44 |
if (loader!=null) { |
|
45 |
loader.cancel(false); |
|
46 |
} |
|
47 |
loader = createLoader(); |
|
48 |
loader.execute(); |
|
49 |
} |
|
50 |
|
|
51 |
protected boolean isLoading() { |
|
52 |
return loading; |
|
53 |
} |
|
54 |
|
|
55 |
protected boolean isLoaded() { |
|
56 |
return loaded; |
|
57 |
} |
|
58 |
|
|
59 |
protected GroupLoader createLoader() { |
|
60 |
this.loader = doCreateLoader(); |
|
61 |
return this.loader; |
|
62 |
} |
|
63 |
|
|
64 |
protected abstract GroupLoader doCreateLoader(); |
|
65 |
|
|
66 |
/** |
|
67 |
* This method is called by the loader in the Event Dispatch Thread |
|
68 |
* when children loading has been cancelled |
|
69 |
*/ |
|
70 |
protected void cancelled(GroupLoader loader) { |
|
71 |
if (this.loader == loader) { |
|
72 |
loading = false; |
|
73 |
this.loader = null; |
|
74 |
cancelled(); |
|
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
/** |
|
79 |
* This method is called by the loader in the Event Dispatch Thread |
|
80 |
* when children loading is completed |
|
81 |
*/ |
|
82 |
public void loaded(ArrayList<TreeNode> loadedData, GroupLoader loader) { |
|
83 |
if (this.loader == loader) { // ignore if results are coming from an older loader |
|
84 |
this.loader = null; |
|
85 |
this.loading = false; |
|
86 |
if (loader.isCancelled()) { |
|
87 |
cancelled(); |
|
88 |
} |
|
89 |
else { |
|
90 |
loaded = true; |
|
91 |
loaded(loadedData); |
|
92 |
} |
|
93 |
} |
|
94 |
} |
|
95 |
|
|
96 |
/** |
|
97 |
* This method is called in the Event Dispatch Thread |
|
98 |
* when children loading is completed |
|
99 |
*/ |
|
100 |
public void loaded(ArrayList<TreeNode> loadedData) { |
|
101 |
this.children.clear(); |
|
102 |
this.children.addAll(loadedData); |
|
103 |
this.container.getModel().reload(this); |
|
104 |
} |
|
105 |
|
|
106 |
/** |
|
107 |
* This method is called the Event Dispatch Thread |
|
108 |
* when children loading has been cancelled |
|
109 |
*/ |
|
110 |
protected abstract void cancelled(); |
|
111 |
|
|
112 |
@Override |
|
113 |
public TreeNode getChildAt(int childIndex) { |
|
114 |
loadChildren(); |
|
115 |
return super.getChildAt(childIndex); |
|
116 |
} |
|
117 |
|
|
118 |
@Override |
|
119 |
public int getChildCount() { |
|
120 |
loadChildren(); |
|
121 |
return super.getChildCount(); |
|
122 |
} |
|
123 |
|
|
124 |
@Override |
|
125 |
@SuppressWarnings("rawtypes") |
|
126 |
public Enumeration children() { |
|
127 |
loadChildren(); |
|
128 |
return super.children(); |
|
129 |
} |
|
130 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/BranchNode.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.Collections; |
|
5 |
import java.util.Enumeration; |
|
6 |
|
|
7 |
import javax.swing.Icon; |
|
8 |
import javax.swing.ImageIcon; |
|
9 |
import javax.swing.tree.TreeNode; |
|
10 |
|
|
11 |
public class BranchNode implements TreeNode { |
|
12 |
final protected TreeNode parent; |
|
13 |
protected ArrayList<TreeNode> children = new ArrayList<TreeNode>(); |
|
14 |
final protected String message; |
|
15 |
//protected final DefaultTreeModel model; |
|
16 |
protected ImageIcon FOLDER_OPEN_ICON; |
|
17 |
protected ImageIcon FOLDER_CLOSED_ICON; |
|
18 |
final protected TreeContainer container; |
|
19 |
|
|
20 |
public BranchNode(TreeNode parent, |
|
21 |
TreeContainer container, |
|
22 |
String message |
|
23 |
) { |
|
24 |
this.container = container; |
|
25 |
this.parent = parent; |
|
26 |
this.message = message; |
|
27 |
FOLDER_OPEN_ICON = container.getManager().getIconTheme().get("folder_open"); |
|
28 |
FOLDER_CLOSED_ICON = container.getManager().getIconTheme().get("folder_closed"); |
|
29 |
} |
|
30 |
|
|
31 |
public void add(TreeNode child) { |
|
32 |
children.add(child); |
|
33 |
} |
|
34 |
|
|
35 |
/* |
|
36 |
public DefaultTreeModel getModel() { |
|
37 |
return model; |
|
38 |
}*/ |
|
39 |
|
|
40 |
/** |
|
41 |
* Requests children to be loaded if they have not been already |
|
42 |
* loaded. Subclasses may load children in an asynchronous way |
|
43 |
*/ |
|
44 |
public void loadChildren() {} |
|
45 |
|
|
46 |
/** |
|
47 |
* Requests children to be loaded (forcing the load even if they |
|
48 |
* were already loaded). Subclasses may load children in an asynchronous way |
|
49 |
*/ |
|
50 |
public void reloadChildren() { |
|
51 |
for (TreeNode node: children) { |
|
52 |
if (node instanceof BranchNode) { |
|
53 |
((BranchNode)node).reloadChildren(); |
|
54 |
} |
|
55 |
} |
|
56 |
} |
|
57 |
|
|
58 |
@Override |
|
59 |
public TreeNode getParent() { |
|
60 |
return parent; |
|
61 |
} |
|
62 |
|
|
63 |
@Override |
|
64 |
public boolean isLeaf() { |
|
65 |
return false; |
|
66 |
} |
|
67 |
|
|
68 |
@Override |
|
69 |
public boolean getAllowsChildren() { |
|
70 |
return true; |
|
71 |
} |
|
72 |
|
|
73 |
@Override |
|
74 |
public TreeNode getChildAt(int childIndex) { |
|
75 |
return children.get(childIndex); |
|
76 |
} |
|
77 |
|
|
78 |
@Override |
|
79 |
public int getChildCount() { |
|
80 |
return children.size(); |
|
81 |
} |
|
82 |
|
|
83 |
@Override |
|
84 |
public int getIndex(TreeNode node) { |
|
85 |
if (!isNodeChild(node)) { |
|
86 |
return -1; |
|
87 |
} |
|
88 |
return children.indexOf(node); |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* Returns true if <code>aNode</code> is a child of this node. If |
|
93 |
* <code>aNode</code> is null, this method returns false. |
|
94 |
* |
|
95 |
* @return true if <code>aNode</code> is a child of this node; false if |
|
96 |
* <code>aNode</code> is null |
|
97 |
*/ |
|
98 |
protected boolean isNodeChild(TreeNode aNode) { |
|
99 |
if (aNode == null) { |
|
100 |
return false; |
|
101 |
} |
|
102 |
if (!(aNode instanceof CrsTreeNode)) { |
|
103 |
return false; |
|
104 |
} |
|
105 |
if (getChildCount() == 0) { |
|
106 |
return false; |
|
107 |
} else { |
|
108 |
return (aNode.getParent() == this); |
|
109 |
} |
|
110 |
} |
|
111 |
|
|
112 |
@SuppressWarnings("rawtypes") |
|
113 |
@Override |
|
114 |
public Enumeration children() { |
|
115 |
return Collections.enumeration(children); |
|
116 |
} |
|
117 |
|
|
118 |
public Icon getIcon(boolean expanded) { |
|
119 |
if (expanded) { |
|
120 |
return FOLDER_OPEN_ICON; |
|
121 |
} |
|
122 |
return FOLDER_CLOSED_ICON; |
|
123 |
} |
|
124 |
|
|
125 |
@Override |
|
126 |
public String toString() { |
|
127 |
return this.message; |
|
128 |
} |
|
129 |
|
|
130 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/CRSSearchFilter.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import org.gvsig.proj.catalog.CRSType; |
|
4 |
import org.gvsig.proj.catalog.extent.GeographicBoundingBox; |
|
5 |
|
|
6 |
public class CRSSearchFilter { |
|
7 |
private String textFilter = null; |
|
8 |
private GeographicBoundingBox boundingBox = null; |
|
9 |
private CRSType[] includeTypes = null; |
|
10 |
private CRSType[] excludeTypes = null; |
|
11 |
private String authority = null; |
|
12 |
|
|
13 |
public CRSSearchFilter() { |
|
14 |
|
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* Adds a text filter for the search. The CRSs will be included |
|
19 |
* in the search results if they include the {@code searchString} |
|
20 |
* in the name, description or identifier. |
|
21 |
* |
|
22 |
* Calling this method replaces any previous text filter. |
|
23 |
* |
|
24 |
* @param searchString |
|
25 |
*/ |
|
26 |
public void setTextFilter(String searchString) { |
|
27 |
this.textFilter = searchString; |
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* Gets the text filter for the search. The CRSs will be included |
|
32 |
* in the search results if they include this text |
|
33 |
* in the name, description or identifier. |
|
34 |
*/ |
|
35 |
public String getTextFilter() { |
|
36 |
return textFilter; |
|
37 |
} |
|
38 |
|
|
39 |
/** |
|
40 |
* Adds a spatial filter. The CRSs will be included in the search |
|
41 |
* if their validity area contains the provided bounding box. |
|
42 |
* |
|
43 |
* Calling this method replaces any previous spatial filter. |
|
44 |
* @param boundingBox |
|
45 |
*/ |
|
46 |
public void setSpatialFilter(GeographicBoundingBox boundingBox) { |
|
47 |
this.boundingBox = boundingBox; |
|
48 |
} |
|
49 |
|
|
50 |
/** |
|
51 |
* Gets the spatial filter. The CRSs will be included in the search |
|
52 |
* if their validity area contains this bounding box. |
|
53 |
*/ |
|
54 |
public GeographicBoundingBox getSpatialFilter() { |
|
55 |
return this.boundingBox; |
|
56 |
} |
|
57 |
|
|
58 |
/** |
|
59 |
* Defines the {@link CRSType}s to include in the search. |
|
60 |
* |
|
61 |
* Calling this method resets any previous inclusion or inclusion |
|
62 |
* filter. |
|
63 |
* |
|
64 |
* @param includeTypes The types to be included. An empty list or null |
|
65 |
* means that all the types can be included in the search results. |
|
66 |
* @see #setExcludedTypes(CRSType[]) |
|
67 |
*/ |
|
68 |
public void setIncludedTypes(CRSType[] includeTypes) { |
|
69 |
this.excludeTypes = null; |
|
70 |
this.includeTypes = includeTypes; |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* Gets the {@link CRSType}s to include in the search. |
|
75 |
*/ |
|
76 |
public CRSType[] getIncludedTypes() { |
|
77 |
return this.includeTypes; |
|
78 |
} |
|
79 |
|
|
80 |
/** |
|
81 |
* Defines the {@link CRSType}s to exclude from the search. |
|
82 |
* |
|
83 |
* Calling this method resets any previous inclusion or exclusion filter. |
|
84 |
* |
|
85 |
* @param excludeTypes The types to be excluded. An empty list or null |
|
86 |
* means that no type is excluded. |
|
87 |
*/ |
|
88 |
public void setExcludedTypes(CRSType[] excludeTypes) { |
|
89 |
this.includeTypes = null; |
|
90 |
this.excludeTypes = excludeTypes; |
|
91 |
} |
|
92 |
|
|
93 |
|
|
94 |
/** |
|
95 |
* Gets the {@link CRSType}s to exclude from the search. |
|
96 |
*/ |
|
97 |
public CRSType[] getExcludedTypes() { |
|
98 |
return this.excludeTypes; |
|
99 |
} |
|
100 |
|
|
101 |
public String getAuthority() { |
|
102 |
return authority; |
|
103 |
} |
|
104 |
|
|
105 |
public void setAuthority(String authority) { |
|
106 |
this.authority = authority; |
|
107 |
} |
|
108 |
|
|
109 |
|
|
110 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/GroupLoader.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.concurrent.ExecutionException; |
|
5 |
|
|
6 |
import javax.swing.SwingWorker; |
|
7 |
import javax.swing.tree.TreeNode; |
|
8 |
|
|
9 |
import org.slf4j.Logger; |
|
10 |
import org.slf4j.LoggerFactory; |
|
11 |
|
|
12 |
public abstract class GroupLoader extends SwingWorker<ArrayList<TreeNode>, TreeNode> { |
|
13 |
private static Logger logger = LoggerFactory.getLogger(GroupLoader.class); |
|
14 |
protected AsyncLoadedGroup caller; |
|
15 |
public GroupLoader(AsyncLoadedGroup caller) { |
|
16 |
this.caller = caller; |
|
17 |
} |
|
18 |
|
|
19 |
@Override |
|
20 |
protected void done() { |
|
21 |
super.done(); |
|
22 |
if (!isCancelled()) { |
|
23 |
try { |
|
24 |
ArrayList<TreeNode> result = get(); |
|
25 |
this.caller.loaded(result, this); |
|
26 |
} catch (InterruptedException | ExecutionException e) { |
|
27 |
logger.debug(e.getMessage(), e); |
|
28 |
} |
|
29 |
} |
|
30 |
else { |
|
31 |
this.caller.cancelled(this); |
|
32 |
} |
|
33 |
} |
|
34 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/tree/LoadingNode.java | ||
---|---|---|
1 |
package org.gvsig.proj.swing.impl.tree; |
|
2 |
|
|
3 |
import java.awt.Image; |
|
4 |
import java.awt.Rectangle; |
|
5 |
import java.awt.image.ImageObserver; |
|
6 |
import java.util.Objects; |
|
7 |
|
|
8 |
import javax.swing.ImageIcon; |
|
9 |
import javax.swing.JTree; |
|
10 |
import javax.swing.tree.TreeNode; |
|
11 |
import javax.swing.tree.TreePath; |
|
12 |
|
|
13 |
public class LoadingNode extends LeafNode { |
|
14 |
private String message; |
|
15 |
private ImageIcon icon; |
|
16 |
final protected TreePath path; |
|
17 |
final protected JTree tree; |
|
18 |
|
|
19 |
public LoadingNode(BranchNode parent, TreeContainer container, String message) { |
|
20 |
super(parent); |
|
21 |
// we don't want to reuse the icon for other nodes, since we'll add an observer to the icon |
|
22 |
this.icon = new ImageIcon(container.getManager().getIconTheme().get("spinner").getImage()); |
|
23 |
this.message = message; |
|
24 |
this.tree = container.getTree(); |
|
25 |
|
|
26 |
TreeNode[] nodeList = container.getModel().getPathToRoot(this); |
|
27 |
if (nodeList!=null) { |
|
28 |
path = new TreePath(nodeList); |
|
29 |
} |
|
30 |
else { |
|
31 |
path = null; |
|
32 |
} |
|
33 |
|
|
34 |
// required for animaged gifs in treenodes |
|
35 |
this.icon.setImageObserver(new ImageObserver() { |
|
36 |
@Override |
|
37 |
public boolean imageUpdate( |
|
38 |
Image img, int infoflags, int x, int y, int w, int h) { |
|
39 |
if (path == null || !LoadingNode.this.tree.isShowing()) { |
|
40 |
return false; |
|
41 |
} |
|
42 |
Rectangle cellRect = LoadingNode.this.tree.getPathBounds(path); |
|
43 |
if ((infoflags & (FRAMEBITS | ALLBITS)) != 0 && Objects.nonNull(cellRect)) { |
|
44 |
LoadingNode.this.tree.repaint(cellRect); |
|
45 |
} |
|
46 |
return (infoflags & (ALLBITS | ABORT)) == 0; |
|
47 |
} |
|
48 |
}); |
|
49 |
} |
|
50 |
|
|
51 |
public void setMessage(String message) { |
|
52 |
this.message = message; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String toString() { |
|
57 |
return message; |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public ImageIcon getIcon() { |
|
62 |
return icon; |
|
63 |
} |
|
64 |
} |
org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/NewCtPanel.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/2.4.0/scripts/addons/PrototipoPanelesCRS/newctpanel.xml</at> |
|
28 |
<at name="path">addons/PrototipoPanelesCRS/newctpanel.xml</at> |
|
29 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
30 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),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">2</at> |
|
40 |
<at name="row">4</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.JPanel</at> |
|
52 |
<at name="beanproperties"> |
|
53 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
54 |
<at name="classname">javax.swing.JPanel</at> |
|
55 |
<at name="properties"> |
|
56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
57 |
<at name="name">subpanelContainer</at> |
|
58 |
<at name="width">818</at> |
|
59 |
<at name="height">12</at> |
|
60 |
</object> |
|
61 |
</at> |
|
62 |
</object> |
|
63 |
</at> |
|
64 |
</object> |
|
65 |
</at> |
|
66 |
</item> |
|
67 |
<item > |
|
68 |
<at name="value"> |
|
69 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
70 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
71 |
<at name="cellconstraints"> |
|
72 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
73 |
<at name="column">2</at> |
|
74 |
<at name="row">2</at> |
|
75 |
<at name="colspan">1</at> |
|
76 |
<at name="rowspan">1</at> |
|
77 |
<at name="halign">default</at> |
|
78 |
<at name="valign">default</at> |
|
79 |
<at name="insets" object="insets">0,0,0,0</at> |
|
80 |
</object> |
|
81 |
</at> |
|
82 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
83 |
</super> |
|
84 |
<at name="id">embedded.891038814</at> |
|
85 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE</at> |
|
86 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
|
87 |
<at name="components"> |
|
88 |
<object classname="java.util.LinkedList"> |
|
89 |
<item > |
|
90 |
<at name="value"> |
|
91 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
92 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
93 |
<at name="cellconstraints"> |
|
94 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
95 |
<at name="column">4</at> |
|
96 |
<at name="row">2</at> |
|
97 |
<at name="colspan">1</at> |
|
98 |
<at name="rowspan">1</at> |
|
99 |
<at name="halign">default</at> |
|
100 |
<at name="valign">default</at> |
|
101 |
<at name="insets" object="insets">0,0,0,0</at> |
|
102 |
</object> |
|
103 |
</at> |
|
104 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
105 |
</super> |
|
106 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
107 |
<at name="beanclass">javax.swing.JTextField</at> |
|
108 |
<at name="beanproperties"> |
|
109 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
110 |
<at name="classname">javax.swing.JTextField</at> |
|
111 |
<at name="properties"> |
|
112 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
113 |
<at name="border"> |
|
114 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
115 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
116 |
<at name="name">border</at> |
|
117 |
</super> |
|
118 |
<at name="borders"> |
|
119 |
<object classname="java.util.LinkedList"> |
|
120 |
<item > |
|
121 |
<at name="value"> |
|
122 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
123 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
124 |
<at name="name">border</at> |
|
125 |
</super> |
|
126 |
</object> |
|
127 |
</at> |
|
128 |
</item> |
|
129 |
</object> |
|
130 |
</at> |
|
131 |
</object> |
|
132 |
</at> |
|
133 |
<at name="horizontalAlignment">4</at> |
|
134 |
<at name="selectionStart">3</at> |
|
135 |
<at name="background" object="color">236,233,216</at> |
|
136 |
<at name="editable">false</at> |
|
137 |
<at name="width">707</at> |
|
138 |
<at name="name"/> |
|
139 |
<at name="selectionEnd">3</at> |
|
140 |
<at name="scrollOffset">1</at> |
|
141 |
<at name="text">USR</at> |
|
142 |
<at name="height">20</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">2</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="width">50</at> |
|
195 |
<at name="name"/> |
|
196 |
<at name="text">Authority</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">2</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">com.jeta.forms.components.label.JETALabel</at> |
|
229 |
<at name="beanproperties"> |
|
230 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
231 |
<at name="classname">com.jeta.forms.components.label.JETALabel</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="width">50</at> |
|
255 |
<at name="name"/> |
|
256 |
<at name="text">Code</at> |
|
257 |
<at name="fill"> |
|
258 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
259 |
<at name="name">fill</at> |
|
260 |
</object> |
|
261 |
</at> |
|
262 |
<at name="height">14</at> |
|
263 |
</object> |
|
264 |
</at> |
|
265 |
</object> |
|
266 |
</at> |
|
267 |
</object> |
|
268 |
</at> |
|
269 |
</item> |
|
270 |
<item > |
|
271 |
<at name="value"> |
|
272 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
273 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
274 |
<at name="cellconstraints"> |
|
275 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
276 |
<at name="column">2</at> |
|
277 |
<at name="row">6</at> |
|
278 |
<at name="colspan">1</at> |
|
279 |
<at name="rowspan">1</at> |
|
280 |
<at name="halign">default</at> |
|
281 |
<at name="valign">default</at> |
|
282 |
<at name="insets" object="insets">0,0,0,0</at> |
|
283 |
</object> |
|
284 |
</at> |
|
285 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
286 |
</super> |
|
287 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
288 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
289 |
<at name="beanproperties"> |
|
290 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
291 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
292 |
<at name="properties"> |
|
293 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
294 |
<at name="border"> |
|
295 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
296 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
297 |
<at name="name">border</at> |
|
298 |
</super> |
|
299 |
<at name="borders"> |
|
300 |
<object classname="java.util.LinkedList"> |
|
301 |
<item > |
|
302 |
<at name="value"> |
|
303 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
304 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
305 |
<at name="name">border</at> |
|
306 |
</super> |
|
307 |
</object> |
|
308 |
</at> |
|
309 |
</item> |
|
310 |
</object> |
|
311 |
</at> |
|
312 |
</object> |
|
313 |
</at> |
|
314 |
<at name="width">50</at> |
|
315 |
<at name="name"/> |
|
316 |
<at name="text">Name</at> |
|
317 |
<at name="fill"> |
|
318 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
319 |
<at name="name">fill</at> |
|
320 |
</object> |
|
321 |
</at> |
|
322 |
<at name="height">14</at> |
|
323 |
</object> |
|
324 |
</at> |
|
325 |
</object> |
|
326 |
</at> |
|
327 |
</object> |
|
328 |
</at> |
|
329 |
</item> |
|
330 |
<item > |
|
331 |
<at name="value"> |
|
332 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
333 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
334 |
<at name="cellconstraints"> |
|
335 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
336 |
<at name="column">4</at> |
|
337 |
<at name="row">6</at> |
|
338 |
<at name="colspan">3</at> |
|
339 |
<at name="rowspan">1</at> |
|
340 |
<at name="halign">default</at> |
|
341 |
<at name="valign">default</at> |
|
342 |
<at name="insets" object="insets">0,0,0,0</at> |
|
343 |
</object> |
|
344 |
</at> |
|
345 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
346 |
</super> |
|
347 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
348 |
<at name="beanclass">javax.swing.JTextField</at> |
|
349 |
<at name="beanproperties"> |
|
350 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
351 |
<at name="classname">javax.swing.JTextField</at> |
|
352 |
<at name="properties"> |
|
353 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
354 |
<at name="border"> |
|
355 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
356 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
357 |
<at name="name">border</at> |
|
358 |
</super> |
|
359 |
<at name="borders"> |
|
360 |
<object classname="java.util.LinkedList"> |
|
361 |
<item > |
|
362 |
<at name="value"> |
|
363 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
364 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
365 |
<at name="name">border</at> |
|
366 |
</super> |
|
367 |
</object> |
|
368 |
</at> |
|
369 |
</item> |
|
370 |
</object> |
|
371 |
</at> |
|
372 |
</object> |
|
373 |
</at> |
|
374 |
<at name="width">738</at> |
|
375 |
<at name="name"/> |
|
376 |
<at name="height">20</at> |
|
377 |
</object> |
|
378 |
</at> |
|
379 |
</object> |
|
380 |
</at> |
|
381 |
</object> |
|
382 |
</at> |
|
383 |
</item> |
|
384 |
<item > |
|
385 |
<at name="value"> |
|
386 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
387 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
388 |
<at name="cellconstraints"> |
|
389 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
390 |
<at name="column">2</at> |
|
391 |
<at name="row">8</at> |
|
392 |
<at name="colspan">1</at> |
|
393 |
<at name="rowspan">1</at> |
|
394 |
<at name="halign">default</at> |
|
395 |
<at name="valign">default</at> |
|
396 |
<at name="insets" object="insets">0,0,0,0</at> |
|
397 |
</object> |
|
398 |
</at> |
|
399 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
400 |
</super> |
|
401 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
402 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
403 |
<at name="beanproperties"> |
|
404 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
405 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
406 |
<at name="properties"> |
|
407 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
408 |
<at name="border"> |
|
409 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
410 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
411 |
<at name="name">border</at> |
|
412 |
</super> |
|
413 |
<at name="borders"> |
|
414 |
<object classname="java.util.LinkedList"> |
|
415 |
<item > |
|
416 |
<at name="value"> |
|
417 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
418 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
419 |
<at name="name">border</at> |
|
420 |
</super> |
|
421 |
</object> |
|
422 |
</at> |
|
423 |
</item> |
|
424 |
</object> |
|
425 |
</at> |
|
426 |
</object> |
|
427 |
</at> |
|
428 |
<at name="width">50</at> |
|
429 |
<at name="name"/> |
|
430 |
<at name="text">Type</at> |
|
431 |
<at name="fill"> |
|
432 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
433 |
<at name="name">fill</at> |
|
434 |
</object> |
|
435 |
</at> |
|
436 |
<at name="height">14</at> |
|
437 |
</object> |
|
438 |
</at> |
|
439 |
</object> |
|
440 |
</at> |
|
441 |
</object> |
|
442 |
</at> |
|
443 |
</item> |
|
444 |
<item > |
|
445 |
<at name="value"> |
|
446 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
447 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
448 |
<at name="cellconstraints"> |
|
449 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
450 |
<at name="column">4</at> |
|
451 |
<at name="row">8</at> |
|
452 |
<at name="colspan">3</at> |
|
453 |
<at name="rowspan">1</at> |
|
454 |
<at name="halign">default</at> |
|
455 |
<at name="valign">default</at> |
|
456 |
<at name="insets" object="insets">0,0,0,0</at> |
|
457 |
</object> |
|
458 |
</at> |
|
459 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
460 |
</super> |
|
461 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
462 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
463 |
<at name="beanproperties"> |
|
464 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
465 |
<at name="classname">javax.swing.JComboBox</at> |
|
466 |
<at name="properties"> |
|
467 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
468 |
<at name="border"> |
|
469 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
470 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
471 |
<at name="name">border</at> |
|
472 |
</super> |
|
473 |
<at name="borders"> |
|
474 |
<object classname="java.util.LinkedList"> |
|
475 |
<item > |
|
476 |
<at name="value"> |
|
477 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
478 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
479 |
<at name="name">border</at> |
|
480 |
</super> |
|
481 |
</object> |
|
482 |
</at> |
|
483 |
</item> |
|
484 |
</object> |
|
485 |
</at> |
|
486 |
</object> |
|
487 |
</at> |
|
488 |
<at name="selectedItem"> |
|
489 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
490 |
<at name="name">listitem</at> |
|
491 |
<at name="label">WKT1</at> |
|
492 |
<at name="icon"> |
|
493 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
494 |
<at name="embedded">false</at> |
|
495 |
<at name="width">0</at> |
|
496 |
<at name="height">0</at> |
|
497 |
</object> |
|
498 |
</at> |
|
499 |
</object> |
|
500 |
</at> |
|
501 |
<at name="name">cboType</at> |
|
502 |
<at name="width">738</at> |
|
503 |
<at name="items"> |
|
504 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
505 |
<at name="name">items</at> |
|
506 |
<at name="items"> |
|
507 |
<object classname="java.util.LinkedList"> |
|
508 |
<item > |
|
509 |
<at name="value"> |
|
510 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
511 |
<at name="name">listitem</at> |
|
512 |
<at name="label">WKT1</at> |
|
513 |
<at name="icon"> |
|
514 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
515 |
<at name="embedded">false</at> |
|
516 |
<at name="width">0</at> |
|
517 |
<at name="height">0</at> |
|
518 |
</object> |
|
519 |
</at> |
|
520 |
</object> |
|
521 |
</at> |
|
522 |
</item> |
|
523 |
<item > |
|
524 |
<at name="value"> |
|
525 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
526 |
<at name="name">listitem</at> |
|
527 |
<at name="label">WKT2</at> |
|
528 |
<at name="icon"> |
|
529 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
530 |
<at name="embedded">false</at> |
|
531 |
<at name="width">0</at> |
|
532 |
<at name="height">0</at> |
|
533 |
</object> |
|
534 |
</at> |
|
535 |
</object> |
|
536 |
</at> |
|
537 |
</item> |
|
538 |
<item > |
|
539 |
<at name="value"> |
|
540 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
541 |
<at name="name">listitem</at> |
|
542 |
<at name="label">7 parameters (Position vector transformation / Helmert / Bursa-Wolf)</at> |
|
543 |
<at name="icon"> |
|
544 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
545 |
<at name="embedded">false</at> |
|
546 |
<at name="width">0</at> |
|
547 |
<at name="height">0</at> |
|
548 |
</object> |
|
549 |
</at> |
|
550 |
</object> |
|
551 |
</at> |
|
552 |
</item> |
|
553 |
<item > |
|
554 |
<at name="value"> |
|
555 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
556 |
<at name="name">listitem</at> |
|
557 |
<at name="label">NTv2 grid</at> |
|
558 |
<at name="icon"> |
|
559 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
560 |
<at name="embedded">false</at> |
|
561 |
<at name="width">0</at> |
|
562 |
<at name="height">0</at> |
|
563 |
</object> |
|
564 |
</at> |
|
565 |
</object> |
|
566 |
</at> |
|
567 |
</item> |
|
568 |
</object> |
|
569 |
</at> |
|
570 |
</object> |
|
571 |
</at> |
|
572 |
<at name="height">18</at> |
|
573 |
<at name="itemCount">4</at> |
|
574 |
</object> |
|
575 |
</at> |
|
576 |
</object> |
|
577 |
</at> |
|
578 |
</object> |
|
579 |
</at> |
|
580 |
</item> |
|
581 |
<item > |
|
582 |
<at name="value"> |
|
583 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
584 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
585 |
<at name="cellconstraints"> |
|
586 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
587 |
<at name="column">6</at> |
|
588 |
<at name="row">4</at> |
|
589 |
<at name="colspan">1</at> |
|
590 |
<at name="rowspan">1</at> |
|
591 |
<at name="halign">default</at> |
|
592 |
<at name="valign">default</at> |
|
593 |
<at name="insets" object="insets">0,0,0,0</at> |
|
594 |
</object> |
|
595 |
</at> |
|
596 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
597 |
</super> |
|
598 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
599 |
<at name="beanclass">javax.swing.JButton</at> |
|
600 |
<at name="beanproperties"> |
|
601 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
602 |
<at name="classname">javax.swing.JButton</at> |
|
603 |
<at name="properties"> |
|
604 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
605 |
<at name="border"> |
|
606 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
607 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
608 |
<at name="name">border</at> |
|
609 |
</super> |
|
610 |
<at name="borders"> |
|
611 |
<object classname="java.util.LinkedList"> |
|
612 |
<item > |
|
613 |
<at name="value"> |
|
614 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
615 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
616 |
<at name="name">border</at> |
|
617 |
</super> |
|
618 |
<at name="top">2</at> |
|
619 |
<at name="left">2</at> |
|
620 |
<at name="bottom">2</at> |
|
621 |
<at name="right">2</at> |
|
622 |
</object> |
|
623 |
</at> |
|
624 |
</item> |
|
625 |
</object> |
|
626 |
</at> |
|
627 |
</object> |
|
628 |
</at> |
|
629 |
<at name="icon"> |
|
630 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
631 |
<at name="embedded">false</at> |
|
632 |
<at name="path">addons/PrototipoPanelesCRS/images/unlock.png</at> |
|
633 |
<at name="description">unlock.png</at> |
|
634 |
<at name="width">16</at> |
|
635 |
<at name="height">16</at> |
|
636 |
</object> |
|
637 |
</at> |
|
638 |
<at name="name">btnForceCode</at> |
|
639 |
<at name="width">20</at> |
|
640 |
<at name="toolTipText">Allow enter a code manually</at> |
|
641 |
<at name="height">20</at> |
|
642 |
</object> |
|
643 |
</at> |
|
644 |
</object> |
|
645 |
</at> |
|
646 |
</object> |
|
647 |
</at> |
|
648 |
</item> |
|
649 |
<item > |
|
650 |
<at name="value"> |
|
651 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
652 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
653 |
<at name="cellconstraints"> |
|
654 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
655 |
<at name="column">4</at> |
|
656 |
<at name="row">4</at> |
|
657 |
<at name="colspan">1</at> |
|
658 |
<at name="rowspan">1</at> |
|
659 |
<at name="halign">default</at> |
|
660 |
<at name="valign">default</at> |
|
661 |
<at name="insets" object="insets">0,0,0,0</at> |
|
662 |
</object> |
|
663 |
</at> |
|
664 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
665 |
</super> |
|
666 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
667 |
<at name="beanclass">javax.swing.JTextField</at> |
|
668 |
<at name="beanproperties"> |
|
669 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
670 |
<at name="classname">javax.swing.JTextField</at> |
|
671 |
<at name="properties"> |
|
672 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
673 |
<at name="border"> |
|
674 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
675 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
676 |
<at name="name">border</at> |
|
677 |
</super> |
|
678 |
<at name="borders"> |
|
679 |
<object classname="java.util.LinkedList"> |
|
680 |
<item > |
|
681 |
<at name="value"> |
|
682 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
683 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
684 |
<at name="name">border</at> |
|
685 |
</super> |
|
686 |
</object> |
|
687 |
</at> |
|
688 |
</item> |
|
689 |
</object> |
|
690 |
</at> |
|
691 |
</object> |
|
692 |
</at> |
|
693 |
<at name="horizontalAlignment">4</at> |
|
694 |
<at name="selectionStart">1</at> |
|
695 |
<at name="name">txtCode</at> |
|
696 |
<at name="width">707</at> |
|
697 |
<at name="selectionEnd">1</at> |
|
698 |
<at name="text">1</at> |
|
699 |
<at name="height">20</at> |
|
700 |
</object> |
|
701 |
</at> |
|
702 |
</object> |
|
703 |
</at> |
|
704 |
</object> |
|
705 |
</at> |
|
706 |
</item> |
|
707 |
</object> |
|
708 |
</at> |
|
709 |
<at name="properties"> |
|
710 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
711 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
712 |
<at name="properties"> |
|
713 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
714 |
<at name="border"> |
|
715 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
716 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
717 |
<at name="name">border</at> |
|
718 |
</super> |
|
719 |
<at name="borders"> |
|
720 |
<object classname="java.util.LinkedList"/> |
|
721 |
</at> |
|
722 |
</object> |
|
723 |
</at> |
|
724 |
<at name="name"/> |
|
725 |
<at name="fill"> |
|
726 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
727 |
<at name="name">fill</at> |
|
728 |
</object> |
|
729 |
</at> |
|
730 |
<at name="scollBars"> |
|
731 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
732 |
<at name="name">scollBars</at> |
|
733 |
<at name="verticalpolicy">21</at> |
|
734 |
<at name="horizontalpolicy">31</at> |
|
735 |
<at name="border"> |
|
736 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
737 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
738 |
<at name="name">border</at> |
|
739 |
</super> |
|
740 |
<at name="borders"> |
|
741 |
<object classname="java.util.LinkedList"> |
|
742 |
<item > |
|
743 |
<at name="value"> |
|
744 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
745 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
746 |
<at name="name">border</at> |
|
747 |
</super> |
|
748 |
</object> |
|
749 |
</at> |
|
750 |
</item> |
|
751 |
</object> |
|
752 |
</at> |
|
753 |
</object> |
|
754 |
</at> |
|
755 |
</object> |
|
756 |
</at> |
|
757 |
</object> |
|
758 |
</at> |
|
759 |
</object> |
|
760 |
</at> |
|
761 |
<at name="cellpainters"> |
|
762 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
763 |
<at name="rows"> |
|
764 |
<object classname="[Ljava.lang.Object;" size="8"> |
|
765 |
<at name="item" index="0"> |
|
766 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
767 |
</at> |
|
768 |
<at name="item" index="1"> |
|
769 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
770 |
</at> |
|
771 |
<at name="item" index="2"> |
|
772 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
773 |
</at> |
|
774 |
<at name="item" index="3"> |
|
775 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
776 |
</at> |
|
777 |
<at name="item" index="4"> |
|
778 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
779 |
</at> |
|
780 |
<at name="item" index="5"> |
|
781 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
782 |
</at> |
|
783 |
<at name="item" index="6"> |
|
784 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
785 |
</at> |
|
786 |
<at name="item" index="7"> |
|
787 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
788 |
</at> |
|
789 |
</object> |
|
790 |
</at> |
|
791 |
</object> |
|
792 |
</at> |
|
793 |
<at name="rowgroups"> |
|
794 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
795 |
<at name="groups"> |
|
796 |
<object classname="java.util.HashMap"/> |
|
797 |
</at> |
|
798 |
</object> |
|
799 |
</at> |
|
800 |
<at name="colgroups"> |
|
801 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
802 |
<at name="groups"> |
|
803 |
<object classname="java.util.HashMap"/> |
|
804 |
</at> |
|
805 |
</object> |
|
806 |
</at> |
|
807 |
</object> |
|
808 |
</at> |
|
809 |
</item> |
|
810 |
</object> |
|
811 |
</at> |
|
812 |
<at name="properties"> |
|
813 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
814 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
815 |
<at name="properties"> |
|
816 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
817 |
<at name="border"> |
|
818 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
819 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
820 |
<at name="name">border</at> |
|
821 |
</super> |
|
822 |
<at name="borders"> |
|
823 |
<object classname="java.util.LinkedList"/> |
|
824 |
</at> |
|
825 |
</object> |
|
826 |
</at> |
|
827 |
<at name="name"/> |
|
828 |
<at name="fill"> |
|
829 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
830 |
<at name="name">fill</at> |
Also available in: Unified diff