Revision 682
org.gvsig.winmgr/trunk/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<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 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.winmgr</artifactId> |
|
5 |
<packaging>pom</packaging> |
|
6 |
<version>1.0.0-SNAPSHOT</version> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<description>Advanced window manager for gvSIG desktop</description> |
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>org.gvsig.desktop</artifactId> |
|
12 |
<version>2.0.231</version> |
|
13 |
</parent> |
|
14 |
|
|
15 |
<url>https://redmine.gvsig.net/redmine/projects/gvsig-projects-pool</url> |
|
16 |
<distributionManagement> |
|
17 |
<site> |
|
18 |
<id>gvsig-repository</id> |
|
19 |
<url>dav:https://devel.gvsig.org/download/projects/gvsig-winmgr/pool/${project.artifactId}/${project.version}</url> |
|
20 |
</site> |
|
21 |
</distributionManagement> |
|
22 |
|
|
23 |
<scm> |
|
24 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-projects-pool/${project.artifactId}/trunk/${project.artifactId}</connection> |
|
25 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-projects-pool/${project.artifactId}/trunk/${project.artifactId}</developerConnection> |
|
26 |
<url>https://redmine.gvsig.net/redmine/projects/gvsig-projects-pool/repository/show/${project.artifactId}/trunk/${project.artifactId}</url> |
|
27 |
</scm> |
|
28 |
|
|
29 |
<repositories> |
|
30 |
<repository> |
|
31 |
<id>gvsig-public-http-repository</id> |
|
32 |
<name>gvSIG maven public HTTP repository</name> |
|
33 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
34 |
<releases> |
|
35 |
<enabled>true</enabled> |
|
36 |
<updatePolicy>daily</updatePolicy> |
|
37 |
<checksumPolicy>warn</checksumPolicy> |
|
38 |
</releases> |
|
39 |
<snapshots> |
|
40 |
<enabled>true</enabled> |
|
41 |
<updatePolicy>daily</updatePolicy> |
|
42 |
<checksumPolicy>warn</checksumPolicy> |
|
43 |
</snapshots> |
|
44 |
</repository> |
|
45 |
</repositories> |
|
46 |
|
|
47 |
<build> |
|
48 |
<plugins> |
|
49 |
<plugin> |
|
50 |
<groupId>org.apache.maven.plugins</groupId> |
|
51 |
<artifactId>maven-release-plugin</artifactId> |
|
52 |
<configuration> |
|
53 |
<tagBase>https://devel.gvsig.org/svn/gvsig-projects-pool/${project.artifactId}/tags</tagBase> |
|
54 |
<goal>deploy</goal> |
|
55 |
</configuration> |
|
56 |
</plugin> |
|
57 |
</plugins> |
|
58 |
</build> |
|
59 |
|
|
60 |
<properties> |
|
61 |
<svn.tags.folder>https://devel.gvsig.org/svn/gvsig-projects-pool/${project.artifactId}/tags/</svn.tags.folder> |
|
62 |
</properties> |
|
63 |
|
|
64 |
|
|
65 |
<dependencyManagement> |
|
66 |
<dependencies> |
|
67 |
<!-- Childs --> |
|
68 |
<dependency> |
|
69 |
<groupId>org.gvsig</groupId> |
|
70 |
<artifactId>org.gvsig.winmgr.app.mainplugin</artifactId> |
|
71 |
<version>1.0.0-SNAPSHOT</version> |
|
72 |
</dependency> |
|
73 |
<dependency> |
|
74 |
<groupId>org.gvsig</groupId> |
|
75 |
<artifactId>org.gvsig.winmgr.lib.api</artifactId> |
|
76 |
<version>1.0.0-SNAPSHOT</version> |
|
77 |
</dependency> |
|
78 |
<dependency> |
|
79 |
<groupId>org.gvsig</groupId> |
|
80 |
<artifactId>org.gvsig.winmgr.lib.impl</artifactId> |
|
81 |
<version>1.0.0-SNAPSHOT</version> |
|
82 |
</dependency> |
|
83 |
|
|
84 |
|
|
85 |
</dependencies> |
|
86 |
</dependencyManagement> |
|
87 |
|
|
88 |
<modules> |
|
89 |
<module>${project.artifactId}.app</module> |
|
90 |
<module>${project.artifactId}.lib</module> |
|
91 |
</modules> |
|
92 |
</project> |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.winmgr.lib</artifactId> |
|
6 |
<version>1.0.0-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.winmgr.lib.impl</artifactId> |
|
9 |
<name>${project.artifactId}</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.winmgr.lib.api</artifactId> |
|
14 |
<scope>compile</scope> |
|
15 |
</dependency> |
|
16 |
<dependency> |
|
17 |
<groupId>org.gvsig</groupId> |
|
18 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
19 |
<scope>compile</scope> |
|
20 |
</dependency> |
|
21 |
</dependencies> |
|
22 |
</project> |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.report.lib.impl.ReportImplLibrary |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/DefaultWindow.java | ||
---|---|---|
1 |
package org.gvsig.winmgr.lib.impl; |
|
2 |
|
|
3 |
import java.awt.Dimension; |
|
4 |
import java.awt.Rectangle; |
|
5 |
import javax.swing.JComponent; |
|
6 |
import org.gvsig.winmgr.lib.api.Window; |
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
* @author jjdelcerro |
|
11 |
*/ |
|
12 |
public class DefaultWindow |
|
13 |
implements Window |
|
14 |
{ |
|
15 |
|
|
16 |
private WindowStack windowStack; |
|
17 |
private JComponent contents; |
|
18 |
private Object model; |
|
19 |
private String title; |
|
20 |
private int mode; |
|
21 |
private Object profile; |
|
22 |
private Rectangle preferredBound; |
|
23 |
private Dimension minimunSize; |
|
24 |
|
|
25 |
DefaultWindow( |
|
26 |
WindowStack windowStack, |
|
27 |
JComponent contents, |
|
28 |
Object model, |
|
29 |
String title, |
|
30 |
int mode, |
|
31 |
Object profile, |
|
32 |
Rectangle preferredBound, |
|
33 |
Dimension minimunSize |
|
34 |
) { |
|
35 |
} |
|
36 |
|
|
37 |
@Override |
|
38 |
public boolean isIconifiable() { |
|
39 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
40 |
} |
|
41 |
|
|
42 |
@Override |
|
43 |
public boolean isMaximizable() { |
|
44 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
public boolean isResizable() { |
|
49 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
50 |
} |
|
51 |
|
|
52 |
@Override |
|
53 |
public boolean isModal() { |
|
54 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
55 |
} |
|
56 |
|
|
57 |
@Override |
|
58 |
public boolean isModeless() { |
|
59 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
60 |
} |
|
61 |
|
|
62 |
@Override |
|
63 |
public boolean isClosable() { |
|
64 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
65 |
} |
|
66 |
|
|
67 |
@Override |
|
68 |
public boolean isVisible() { |
|
69 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
70 |
} |
|
71 |
|
|
72 |
@Override |
|
73 |
public boolean isPalette() { |
|
74 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
75 |
} |
|
76 |
|
|
77 |
@Override |
|
78 |
public boolean isMaximized() { |
|
79 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
80 |
} |
|
81 |
|
|
82 |
@Override |
|
83 |
public boolean isClosed() { |
|
84 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public boolean isExtern() { |
|
89 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
90 |
} |
|
91 |
|
|
92 |
@Override |
|
93 |
public boolean isIntern() { |
|
94 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
95 |
} |
|
96 |
|
|
97 |
@Override |
|
98 |
public boolean isDialog() { |
|
99 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
100 |
} |
|
101 |
|
|
102 |
@Override |
|
103 |
public Object getProfile() { |
|
104 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
105 |
} |
|
106 |
|
|
107 |
@Override |
|
108 |
public Object getModel() { |
|
109 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
110 |
} |
|
111 |
|
|
112 |
@Override |
|
113 |
public String getTitle() { |
|
114 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
115 |
} |
|
116 |
|
|
117 |
@Override |
|
118 |
public int getId() { |
|
119 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
120 |
} |
|
121 |
|
|
122 |
@Override |
|
123 |
public Rectangle getPreferredBounds() { |
|
124 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
125 |
} |
|
126 |
|
|
127 |
@Override |
|
128 |
public Rectangle getBounds() { |
|
129 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
130 |
} |
|
131 |
|
|
132 |
@Override |
|
133 |
public Dimension getMinimumSize() { |
|
134 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
135 |
} |
|
136 |
|
|
137 |
@Override |
|
138 |
public void setTitle(String title) { |
|
139 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
140 |
} |
|
141 |
|
|
142 |
@Override |
|
143 |
public void setPreferedBounds(Rectangle preferedBounds) { |
|
144 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
145 |
} |
|
146 |
|
|
147 |
@Override |
|
148 |
public void setBounds(Rectangle bounds) { |
|
149 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
150 |
} |
|
151 |
|
|
152 |
@Override |
|
153 |
public void setClosable(boolean b) { |
|
154 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
155 |
} |
|
156 |
|
|
157 |
@Override |
|
158 |
public void setMaximized(boolean maximized) { |
|
159 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
160 |
} |
|
161 |
|
|
162 |
@Override |
|
163 |
public void setMaximizable(boolean maximizable) { |
|
164 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
165 |
} |
|
166 |
|
|
167 |
@Override |
|
168 |
public void setMinimumSize(Dimension minSize) { |
|
169 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
170 |
} |
|
171 |
|
|
172 |
@Override |
|
173 |
public void toExtern() { |
|
174 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
175 |
} |
|
176 |
|
|
177 |
@Override |
|
178 |
public void toIntern() { |
|
179 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
180 |
} |
|
181 |
|
|
182 |
@Override |
|
183 |
public void toFront() { |
|
184 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
185 |
} |
|
186 |
|
|
187 |
@Override |
|
188 |
public void align(int mode) { |
|
189 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
190 |
} |
|
191 |
|
|
192 |
@Override |
|
193 |
public void close() { |
|
194 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
195 |
} |
|
196 |
|
|
197 |
@Override |
|
198 |
public void move(int x, int y) { |
|
199 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
200 |
} |
|
201 |
|
|
202 |
@Override |
|
203 |
public JComponent asJComponent() { |
|
204 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
205 |
} |
|
206 |
|
|
207 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/WindowStack.java | ||
---|---|---|
1 |
package org.gvsig.winmgr.lib.impl; |
|
2 |
|
|
3 |
/** |
|
4 |
* |
|
5 |
* @author jjdelcerro |
|
6 |
*/ |
|
7 |
public class WindowStack { |
|
8 |
|
|
9 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultToolBarBuilder.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.impl.tools; |
|
7 |
|
|
8 |
import java.util.ArrayList; |
|
9 |
import javax.swing.Action; |
|
10 |
import org.gvsig.tools.util.Callable; |
|
11 |
import org.gvsig.tools.util.Invocable; |
|
12 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
13 |
|
|
14 |
/** |
|
15 |
* |
|
16 |
* @author jjdelcerro |
|
17 |
*/ |
|
18 |
public class DefaultToolBarBuilder |
|
19 |
extends ArrayList<ToolsBuilder.ToolBarEntryBuilder> |
|
20 |
implements ToolsBuilder.ToolBarBuilder |
|
21 |
{ |
|
22 |
|
|
23 |
public DefaultToolBarBuilder() { |
|
24 |
} |
|
25 |
|
|
26 |
DefaultToolBarBuilder(String id, String title, String description) { |
|
27 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
28 |
} |
|
29 |
|
|
30 |
@Override |
|
31 |
public void add(final Action action) { |
|
32 |
ToolsBuilder.ToolBarEntryBuilder theEntry = new DefaultToolBarEntryBuilder(action, null); |
|
33 |
this.add(theEntry); |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public void add(final String dropDownName, final Action action) { |
|
38 |
ToolsBuilder.ToolBarEntryBuilder theEntry = new DefaultToolBarEntryBuilder(action, dropDownName); |
|
39 |
this.add(theEntry); |
|
40 |
} |
|
41 |
|
|
42 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultToolBarEntryBuilder.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.impl.tools; |
|
7 |
|
|
8 |
import javax.swing.Action; |
|
9 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
10 |
|
|
11 |
/** |
|
12 |
* |
|
13 |
* @author jjdelcerro |
|
14 |
*/ |
|
15 |
public class DefaultToolBarEntryBuilder implements ToolsBuilder.ToolBarEntryBuilder { |
|
16 |
|
|
17 |
private final Action action; |
|
18 |
private final String dropDownName; |
|
19 |
|
|
20 |
public DefaultToolBarEntryBuilder(Action action, String dropDownName) { |
|
21 |
this.action = action; |
|
22 |
this.dropDownName = dropDownName; |
|
23 |
} |
|
24 |
|
|
25 |
@Override |
|
26 |
public Action getAction() { |
|
27 |
return this.action; |
|
28 |
} |
|
29 |
|
|
30 |
@Override |
|
31 |
public String getDropDownName() { |
|
32 |
return this.dropDownName; |
|
33 |
} |
|
34 |
|
|
35 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultStatusBarBuilder.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.impl.tools; |
|
7 |
|
|
8 |
import javax.swing.JComponent; |
|
9 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
10 |
|
|
11 |
/** |
|
12 |
* |
|
13 |
* @author jjdelcerro |
|
14 |
*/ |
|
15 |
public class DefaultStatusBarBuilder implements ToolsBuilder.StatusBarBuilder { |
|
16 |
|
|
17 |
public DefaultStatusBarBuilder() { |
|
18 |
} |
|
19 |
|
|
20 |
@Override |
|
21 |
public JComponent build() { |
|
22 |
return null; |
|
23 |
} |
|
24 |
|
|
25 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultToolsBarsBuilder.java | ||
---|---|---|
1 |
package org.gvsig.winmgr.lib.impl.tools; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import javax.swing.JComponent; |
|
5 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
6 |
import org.gvsig.winmgr.lib.api.ToolsBuilder.ToolBarBuilder; |
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
* @author jjdelcerro |
|
11 |
*/ |
|
12 |
public class DefaultToolsBarsBuilder |
|
13 |
extends ArrayList<ToolBarBuilder> |
|
14 |
implements ToolsBuilder.ToolBarsBuilder |
|
15 |
{ |
|
16 |
|
|
17 |
public DefaultToolsBarsBuilder() { |
|
18 |
} |
|
19 |
|
|
20 |
@Override |
|
21 |
public void add(String id, String title, String description) { |
|
22 |
DefaultToolBarBuilder builder = new DefaultToolBarBuilder(id, title, description); |
|
23 |
this.add(builder); |
|
24 |
} |
|
25 |
|
|
26 |
@Override |
|
27 |
public void remove(String id) { |
|
28 |
|
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public JComponent build() { |
|
33 |
return null; |
|
34 |
} |
|
35 |
|
|
36 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultMenuBarBuilder.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.impl.tools; |
|
7 |
|
|
8 |
import javax.swing.JComponent; |
|
9 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
10 |
|
|
11 |
/** |
|
12 |
* |
|
13 |
* @author jjdelcerro |
|
14 |
*/ |
|
15 |
public class DefaultMenuBarBuilder implements ToolsBuilder.MenuBarBuilder { |
|
16 |
|
|
17 |
public DefaultMenuBarBuilder() { |
|
18 |
} |
|
19 |
|
|
20 |
@Override |
|
21 |
public JComponent build() { |
|
22 |
return null; |
|
23 |
} |
|
24 |
|
|
25 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/tools/DefaultToolsBuilder.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.impl.tools; |
|
7 |
|
|
8 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
9 |
|
|
10 |
/** |
|
11 |
* |
|
12 |
* @author jjdelcerro |
|
13 |
*/ |
|
14 |
public class DefaultToolsBuilder implements ToolsBuilder { |
|
15 |
|
|
16 |
private ToolBarsBuilder toolsBarsBuilder; |
|
17 |
private MenuBarBuilder menuBarBuilder; |
|
18 |
private StatusBarBuilder statusBarBuilder; |
|
19 |
|
|
20 |
public DefaultToolsBuilder() { |
|
21 |
|
|
22 |
} |
|
23 |
|
|
24 |
@Override |
|
25 |
public ToolBarsBuilder toolbars() { |
|
26 |
if( this.toolsBarsBuilder == null ) { |
|
27 |
this.toolsBarsBuilder = new DefaultToolsBarsBuilder(); |
|
28 |
} |
|
29 |
return this.toolsBarsBuilder; |
|
30 |
} |
|
31 |
|
|
32 |
@Override |
|
33 |
public MenuBarBuilder menubar() { |
|
34 |
if( this.menuBarBuilder == null ) { |
|
35 |
this.menuBarBuilder = new DefaultMenuBarBuilder(); |
|
36 |
} |
|
37 |
return this.menuBarBuilder; |
|
38 |
} |
|
39 |
|
|
40 |
@Override |
|
41 |
public StatusBarBuilder statusbar() { |
|
42 |
if( this.statusBarBuilder == null ) { |
|
43 |
this.statusBarBuilder = new DefaultStatusBarBuilder(); |
|
44 |
} |
|
45 |
return this.statusBarBuilder; |
|
46 |
} |
|
47 |
|
|
48 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/DefaultWindowManager.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.winmgr.lib.impl; |
|
25 |
|
|
26 |
import org.gvsig.winmgr.lib.impl.tools.DefaultToolsBuilder; |
|
27 |
import java.awt.Dimension; |
|
28 |
import java.awt.Image; |
|
29 |
import java.awt.Rectangle; |
|
30 |
import java.awt.image.BufferedImage; |
|
31 |
import java.util.List; |
|
32 |
import java.util.Locale; |
|
33 |
import javax.swing.ImageIcon; |
|
34 |
import javax.swing.JComponent; |
|
35 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
36 |
import org.gvsig.winmgr.lib.api.ToolsBuilder; |
|
37 |
import org.gvsig.winmgr.lib.api.Window; |
|
38 |
import org.gvsig.winmgr.lib.api.WindowManager; |
|
39 |
|
|
40 |
/** |
|
41 |
* |
|
42 |
* @author jjdelcerro |
|
43 |
*/ |
|
44 |
public class DefaultWindowManager implements WindowManager { |
|
45 |
|
|
46 |
private ToolsBuilder tools; |
|
47 |
private WindowStack windowStack; |
|
48 |
|
|
49 |
@Override |
|
50 |
public Window createWindow(JComponent contents, Object model, String title, int mode, Object profile, Rectangle preferredBound, Dimension minimunSize) { |
|
51 |
Window win = new DefaultWindow( |
|
52 |
this.getWindowStack(), |
|
53 |
contents, |
|
54 |
model, |
|
55 |
title, |
|
56 |
mode, |
|
57 |
profile, |
|
58 |
preferredBound, |
|
59 |
minimunSize |
|
60 |
); |
|
61 |
return win; |
|
62 |
} |
|
63 |
|
|
64 |
@Override |
|
65 |
public void showWindow(Window window) { |
|
66 |
|
|
67 |
} |
|
68 |
|
|
69 |
@Override |
|
70 |
public Window getWindow(JComponent contents) { |
|
71 |
return null; |
|
72 |
} |
|
73 |
|
|
74 |
@Override |
|
75 |
public Window getWindow(int id) { |
|
76 |
return null; |
|
77 |
} |
|
78 |
|
|
79 |
@Override |
|
80 |
public Window getActiveWindow() { |
|
81 |
return null; |
|
82 |
} |
|
83 |
|
|
84 |
@Override |
|
85 |
public List<Window> getAllWindows() { |
|
86 |
return null; |
|
87 |
} |
|
88 |
|
|
89 |
@Override |
|
90 |
public List<Window> getAllWindowsOrdereds() { |
|
91 |
return null; |
|
92 |
} |
|
93 |
|
|
94 |
@Override |
|
95 |
public BufferedImage getImagePreview() { |
|
96 |
return null; |
|
97 |
} |
|
98 |
|
|
99 |
@Override |
|
100 |
public void setBackgroundImage(ImageIcon image, BackgroundImageMode mode) { |
|
101 |
|
|
102 |
} |
|
103 |
|
|
104 |
@Override |
|
105 |
public void setWaitCursor() { |
|
106 |
|
|
107 |
} |
|
108 |
|
|
109 |
@Override |
|
110 |
public void restoreCursor() { |
|
111 |
|
|
112 |
} |
|
113 |
|
|
114 |
@Override |
|
115 |
public void setLocale(Locale locale) { |
|
116 |
|
|
117 |
} |
|
118 |
|
|
119 |
@Override |
|
120 |
public ToolsBuilder getTools() { |
|
121 |
return this.tools; |
|
122 |
} |
|
123 |
|
|
124 |
@Override |
|
125 |
public ToolsBuilder createToolsBuilder() { |
|
126 |
ToolsBuilder theTools = new DefaultToolsBuilder(); |
|
127 |
return theTools; |
|
128 |
} |
|
129 |
|
|
130 |
@Override |
|
131 |
public Dialog createDialog(JComponent jc, String string, String string1, int i) { |
|
132 |
return null; |
|
133 |
} |
|
134 |
|
|
135 |
@Override |
|
136 |
public void showWindow(JComponent jc, String string, MODE mode, Image image) { |
|
137 |
|
|
138 |
} |
|
139 |
|
|
140 |
@Override |
|
141 |
public void showWindow(JComponent jc, String string, MODE mode, Image image, int i) { |
|
142 |
|
|
143 |
} |
|
144 |
|
|
145 |
@Override |
|
146 |
public void showWindow(JComponent jc, String string, MODE mode) { |
|
147 |
|
|
148 |
} |
|
149 |
|
|
150 |
private WindowStack getWindowStack() { |
|
151 |
if( this.windowStack==null ) { |
|
152 |
this.windowStack = new WindowStack(); |
|
153 |
} |
|
154 |
return this.windowStack; |
|
155 |
} |
|
156 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.impl/src/main/java/org/gvsig/winmgr/lib/impl/WindowManagerImplLibrary.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.winmgr.lib.impl; |
|
25 |
|
|
26 |
import org.gvsig.tools.library.AbstractLibrary; |
|
27 |
import org.gvsig.tools.library.LibraryException; |
|
28 |
import org.gvsig.winmgr.lib.api.WindowManagerLibrary; |
|
29 |
import org.gvsig.winmgr.lib.api.WindowManagerLocator; |
|
30 |
|
|
31 |
/** |
|
32 |
* |
|
33 |
* @author jjdelcerro |
|
34 |
*/ |
|
35 |
public class WindowManagerImplLibrary extends AbstractLibrary { |
|
36 |
|
|
37 |
@Override |
|
38 |
public void doRegistration() { |
|
39 |
super.doRegistration(); |
|
40 |
registerAsImplementationOf(WindowManagerLibrary.class); |
|
41 |
} |
|
42 |
|
|
43 |
@Override |
|
44 |
protected void doInitialize() throws LibraryException { |
|
45 |
WindowManagerLocator.registerDefaultWindowManager(DefaultWindowManager.class); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
protected void doPostInitialize() throws LibraryException { |
|
50 |
} |
|
51 |
|
|
52 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/WindowManager.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.winmgr.lib.api; |
|
25 |
|
|
26 |
import java.awt.Dimension; |
|
27 |
import java.awt.Rectangle; |
|
28 |
import java.awt.image.BufferedImage; |
|
29 |
import java.util.List; |
|
30 |
import java.util.Locale; |
|
31 |
import javax.swing.ImageIcon; |
|
32 |
import javax.swing.JComponent; |
|
33 |
|
|
34 |
/** |
|
35 |
* |
|
36 |
* @author jjdelcerro |
|
37 |
*/ |
|
38 |
public interface WindowManager |
|
39 |
extends org.gvsig.tools.swing.api.windowmanager.WindowManager_v2 { |
|
40 |
|
|
41 |
public enum BackgroundImageMode { |
|
42 |
CENTERED, |
|
43 |
MOSAIC, |
|
44 |
EXPAND |
|
45 |
}; |
|
46 |
|
|
47 |
/** |
|
48 |
* Specifies that the window is resizable |
|
49 |
*/ |
|
50 |
public static final int RESIZABLE = 1; |
|
51 |
|
|
52 |
/** |
|
53 |
* Specifies that the window is maximizable |
|
54 |
*/ |
|
55 |
public static final int MAXIMIZABLE = 2; |
|
56 |
|
|
57 |
/** |
|
58 |
* Specifies that the window is iconifiable |
|
59 |
*/ |
|
60 |
public static final int ICONIFIABLE = 4; |
|
61 |
|
|
62 |
/** |
|
63 |
* Specifies that the window is modal |
|
64 |
*/ |
|
65 |
public static final int MODALDIALOG = 8; |
|
66 |
/** |
|
67 |
* Specifies that the window is modeless (it's on the top but doesn't block |
|
68 |
* any other window) |
|
69 |
*/ |
|
70 |
public static final int MODELESSDIALOG = 16; |
|
71 |
/** |
|
72 |
* Specifies that the window may be docked inside another window |
|
73 |
*/ |
|
74 |
public static final int PALETTE = 32; |
|
75 |
|
|
76 |
/** |
|
77 |
* Specifies that the window may be closed |
|
78 |
*/ |
|
79 |
public static final int NOTCLOSABLE = 64; |
|
80 |
|
|
81 |
/** |
|
82 |
* Specifies that this window has an editor profile |
|
83 |
*/ |
|
84 |
public static final Integer EDITOR_PROFILE = 1; |
|
85 |
/** |
|
86 |
* Specifies that this window has an editor profile |
|
87 |
*/ |
|
88 |
public static final Integer TOOL_PROFILE = 2; |
|
89 |
/** |
|
90 |
* Specifies that this window has an editor profile |
|
91 |
*/ |
|
92 |
public static final Integer MAIN_PROFILE = 3; |
|
93 |
/** |
|
94 |
* Specifies that this window has an editor profile |
|
95 |
*/ |
|
96 |
public static final Integer PROPERTIES_PROFILE = 4; |
|
97 |
/** |
|
98 |
* Specifies that this window has an editor profile |
|
99 |
*/ |
|
100 |
public static final Integer DIALOG_PROFILE = 5; |
|
101 |
|
|
102 |
|
|
103 |
public Window createWindow( |
|
104 |
JComponent contents, |
|
105 |
Object model, |
|
106 |
String title, |
|
107 |
int mode, |
|
108 |
Object profile, |
|
109 |
Rectangle preferredBound, |
|
110 |
Dimension minimunSize |
|
111 |
); |
|
112 |
|
|
113 |
public void showWindow(Window window); |
|
114 |
|
|
115 |
public Window getWindow(JComponent contents); |
|
116 |
|
|
117 |
public Window getWindow(int id); |
|
118 |
|
|
119 |
public Window getActiveWindow(); |
|
120 |
|
|
121 |
public List<Window> getAllWindows(); |
|
122 |
|
|
123 |
public List<Window> getAllWindowsOrdereds(); |
|
124 |
|
|
125 |
public BufferedImage getImagePreview(); |
|
126 |
|
|
127 |
public void setBackgroundImage(ImageIcon image, BackgroundImageMode mode); |
|
128 |
|
|
129 |
public void setWaitCursor(); |
|
130 |
|
|
131 |
public void restoreCursor(); |
|
132 |
|
|
133 |
public void setLocale(Locale locale); |
|
134 |
|
|
135 |
public ToolsBuilder getTools(); |
|
136 |
|
|
137 |
public ToolsBuilder createToolsBuilder(); |
|
138 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/WindowManagerRuntimeException.java | ||
---|---|---|
1 |
package org.gvsig.winmgr.lib.api; |
|
2 |
|
|
3 |
import org.gvsig.tools.exception.BaseRuntimeException; |
|
4 |
|
|
5 |
/** |
|
6 |
* |
|
7 |
* @author jjdelcerro |
|
8 |
*/ |
|
9 |
public class WindowManagerRuntimeException extends BaseRuntimeException { |
|
10 |
|
|
11 |
public WindowManagerRuntimeException(String msg) { |
|
12 |
super("_WindowManagerRuntimeException", msg, 0); |
|
13 |
} |
|
14 |
|
|
15 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/WindowManagerLocator.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.winmgr.lib.api; |
|
25 |
|
|
26 |
import org.gvsig.tools.locator.AbstractLocator; |
|
27 |
import org.gvsig.tools.locator.Locator; |
|
28 |
import org.gvsig.tools.locator.LocatorException; |
|
29 |
|
|
30 |
@SuppressWarnings("rawtypes") |
|
31 |
public class WindowManagerLocator extends AbstractLocator { |
|
32 |
|
|
33 |
private static final String LOCATOR_NAME = "WindowManagerLocator"; |
|
34 |
|
|
35 |
public static final String WINDOW_MANAGER_NAME = |
|
36 |
"org.gvsig.window.manager"; |
|
37 |
|
|
38 |
private static final String WINDOW_MANAGER_DESCRIPTION = |
|
39 |
"Window Manager of gvSIG"; |
|
40 |
|
|
41 |
private static final WindowManagerLocator instance = new WindowManagerLocator(); |
|
42 |
|
|
43 |
private WindowManagerLocator() { |
|
44 |
|
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* Return the singleton instance. |
|
49 |
* |
|
50 |
* @return the singleton instance |
|
51 |
*/ |
|
52 |
public static WindowManagerLocator getInstance() { |
|
53 |
return instance; |
|
54 |
} |
|
55 |
|
|
56 |
@Override |
|
57 |
public String getLocatorName() { |
|
58 |
return LOCATOR_NAME; |
|
59 |
} |
|
60 |
|
|
61 |
/** |
|
62 |
* Return a reference to WindowManager. |
|
63 |
* |
|
64 |
* @return a reference to WindowManager |
|
65 |
* @throws LocatorException |
|
66 |
* if there is no access to the class or the class cannot be |
|
67 |
* instantiated |
|
68 |
* @see Locator#get(String) |
|
69 |
*/ |
|
70 |
public static WindowManager getWindowManager() |
|
71 |
throws LocatorException { |
|
72 |
return (WindowManager) getInstance().get(WINDOW_MANAGER_NAME); |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* Registers the Class implementing the WindowManager interface. |
|
77 |
* |
|
78 |
* @param clazz |
|
79 |
* implementing the WindowManager interface |
|
80 |
*/ |
|
81 |
public static void registerWindowManager(Class clazz) { |
|
82 |
getInstance().register(WINDOW_MANAGER_NAME, |
|
83 |
WINDOW_MANAGER_DESCRIPTION, clazz); |
|
84 |
} |
|
85 |
|
|
86 |
public static void registerDefaultWindowManager(Class clazz) { |
|
87 |
getInstance().registerDefault(WINDOW_MANAGER_NAME, |
|
88 |
WINDOW_MANAGER_DESCRIPTION, clazz); |
|
89 |
} |
|
90 |
|
|
91 |
|
|
92 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/ToolsBuilder.java | ||
---|---|---|
1 |
package org.gvsig.winmgr.lib.api; |
|
2 |
|
|
3 |
import java.util.List; |
|
4 |
import javax.swing.Action; |
|
5 |
import javax.swing.JComponent; |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
* @author jjdelcerro |
|
10 |
*/ |
|
11 |
public interface ToolsBuilder { |
|
12 |
|
|
13 |
public interface ToolBarsBuilder extends List<ToolBarBuilder> { |
|
14 |
public void add(String id, String title, String description); |
|
15 |
public void remove(String id); |
|
16 |
|
|
17 |
public JComponent build(); |
|
18 |
} |
|
19 |
|
|
20 |
public interface ToolBarBuilder extends List<ToolBarEntryBuilder> { |
|
21 |
public void add(final Action action); |
|
22 |
public void add(final String dropDownName, final Action action); |
|
23 |
} |
|
24 |
|
|
25 |
public interface ToolBarEntryBuilder { |
|
26 |
public Action getAction(); |
|
27 |
public String getDropDownName(); |
|
28 |
} |
|
29 |
|
|
30 |
public interface MenuBarBuilder { |
|
31 |
|
|
32 |
public JComponent build(); |
|
33 |
} |
|
34 |
|
|
35 |
public interface MenuBuilder { |
|
36 |
|
|
37 |
} |
|
38 |
|
|
39 |
public interface MenuEntryBuilder { |
|
40 |
|
|
41 |
} |
|
42 |
|
|
43 |
public interface StatusBarBuilder { |
|
44 |
|
|
45 |
public JComponent build(); |
|
46 |
} |
|
47 |
|
|
48 |
public interface StatusBarEntry { |
|
49 |
|
|
50 |
} |
|
51 |
|
|
52 |
public ToolBarsBuilder toolbars(); |
|
53 |
public MenuBarBuilder menubar(); |
|
54 |
public StatusBarBuilder statusbar(); |
|
55 |
|
|
56 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/Window.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.winmgr.lib.api; |
|
7 |
|
|
8 |
import java.awt.Dimension; |
|
9 |
import java.awt.Rectangle; |
|
10 |
import org.gvsig.tools.swing.api.Component; |
|
11 |
|
|
12 |
/** |
|
13 |
* |
|
14 |
* @author jjdelcerro |
|
15 |
*/ |
|
16 |
public interface Window extends Component { |
|
17 |
|
|
18 |
public boolean isIconifiable(); |
|
19 |
|
|
20 |
public boolean isMaximizable(); |
|
21 |
|
|
22 |
public boolean isResizable(); |
|
23 |
|
|
24 |
public boolean isModal(); |
|
25 |
|
|
26 |
public boolean isModeless(); |
|
27 |
|
|
28 |
public boolean isClosable(); |
|
29 |
|
|
30 |
public boolean isVisible(); |
|
31 |
|
|
32 |
public boolean isPalette(); |
|
33 |
|
|
34 |
public boolean isMaximized(); |
|
35 |
|
|
36 |
public boolean isClosed(); |
|
37 |
|
|
38 |
public boolean isExtern(); |
|
39 |
|
|
40 |
public boolean isIntern(); |
|
41 |
|
|
42 |
public boolean isDialog(); |
|
43 |
|
|
44 |
public Object getProfile(); |
|
45 |
|
|
46 |
public Object getModel(); |
|
47 |
|
|
48 |
public String getTitle(); |
|
49 |
|
|
50 |
public int getId(); |
|
51 |
|
|
52 |
public Rectangle getPreferredBounds(); |
|
53 |
|
|
54 |
public Rectangle getBounds(); |
|
55 |
|
|
56 |
public Dimension getMinimumSize(); |
|
57 |
|
|
58 |
public void setTitle(String title); |
|
59 |
|
|
60 |
public void setPreferedBounds(Rectangle preferedBounds); |
|
61 |
|
|
62 |
public void setBounds(Rectangle bounds); |
|
63 |
|
|
64 |
public void setClosable(boolean b); |
|
65 |
|
|
66 |
public void setMaximized(boolean maximized); |
|
67 |
|
|
68 |
public void setMaximizable(boolean maximizable); |
|
69 |
|
|
70 |
public void setMinimumSize(Dimension minSize); |
|
71 |
|
|
72 |
public void toExtern(); |
|
73 |
|
|
74 |
public void toIntern(); |
|
75 |
|
|
76 |
public void toFront(); |
|
77 |
|
|
78 |
public void align(int mode); |
|
79 |
|
|
80 |
public void close(); |
|
81 |
|
|
82 |
public void move(int x, int y); |
|
83 |
|
|
84 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/java/org/gvsig/winmgr/lib/api/WindowManagerLibrary.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.winmgr.lib.api; |
|
25 |
|
|
26 |
import org.gvsig.tools.ToolsLibrary; |
|
27 |
import org.gvsig.tools.library.AbstractLibrary; |
|
28 |
import org.gvsig.tools.library.LibraryException; |
|
29 |
|
|
30 |
/** |
|
31 |
* |
|
32 |
* @author jjdelcerro |
|
33 |
*/ |
|
34 |
public class WindowManagerLibrary extends AbstractLibrary { |
|
35 |
|
|
36 |
@Override |
|
37 |
public void doRegistration() { |
|
38 |
super.doRegistration(); |
|
39 |
registerAsAPI(WindowManagerLibrary.class); |
|
40 |
this.require(ToolsLibrary.class); |
|
41 |
} |
|
42 |
|
|
43 |
@Override |
|
44 |
protected void doInitialize() throws LibraryException { |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
protected void doPostInitialize() throws LibraryException { |
|
49 |
} |
|
50 |
|
|
51 |
} |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.report.lib.api.ReportLibrary |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/org.gvsig.winmgr.lib.api/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.winmgr.lib</artifactId> |
|
6 |
<version>1.0.0-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.winmgr.lib.api</artifactId> |
|
9 |
<name>${project.artifactId}</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
14 |
<scope>compile</scope> |
|
15 |
</dependency> |
|
16 |
<dependency> |
|
17 |
<groupId>org.gvsig</groupId> |
|
18 |
<artifactId>org.gvsig.tools.swing.api</artifactId> |
|
19 |
<scope>compile</scope> |
|
20 |
</dependency> |
|
21 |
</dependencies> |
|
22 |
|
|
23 |
</project> |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.lib/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.winmgr</artifactId> |
|
6 |
<version>1.0.0-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.winmgr.lib</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>${project.artifactId}</name> |
|
11 |
<modules> |
|
12 |
<module>${project.artifactId}.api</module> |
|
13 |
<module>${project.artifactId}.impl</module> |
|
14 |
</modules> |
|
15 |
</project> |
org.gvsig.winmgr/trunk/.directory | ||
---|---|---|
1 |
[Dolphin] |
|
2 |
Timestamp=2018,10,22,14,7,8 |
|
3 |
Version=4 |
|
4 |
ViewMode=1 |
org.gvsig.winmgr/trunk/org.gvsig.winmgr.app/org.gvsig.winmgr.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
36 |
<outputDirectory>lib</outputDirectory> |
|
37 |
</file> |
|
38 |
<file> |
|
39 |
<source>target/package.info</source> |
|
40 |
</file> |
|
41 |
</files> |
|
42 |
|
|
43 |
<fileSets> |
|
44 |
<fileSet> |
|
45 |
<directory>src/main/resources-plugin</directory> |
|
46 |
<outputDirectory>.</outputDirectory> |
|
47 |
</fileSet> |
|
48 |
</fileSets> |
|
49 |
|
|
50 |
<!-- |
|
51 |
<dependencySets> |
|
52 |
<dependencySet> |
|
53 |
<useProjectArtifact>false</useProjectArtifact> |
|
54 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
55 |
<outputDirectory>lib</outputDirectory> |
|
56 |
<includes> |
|
57 |
<include>groupId:artifactId</include> |
|
58 |
</includes> |
|
59 |
</dependencySet> |
|
60 |
</dependencySets> |
|
61 |
--> |
|
62 |
|
|
63 |
</assembly> |
|
64 |
|
org.gvsig.winmgr/trunk/org.gvsig.winmgr.app/org.gvsig.winmgr.app.mainplugin/src/main/java/org/gvsig/coreplugin/preferences/network/FirewallPage.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
/* CVS MESSAGES: |
|
25 |
* |
|
26 |
* $Id$ |
|
27 |
* $Log$ |
|
28 |
* Revision 1.9 2006/11/21 10:59:45 fjp |
|
29 |
* Fallo proxy con usuario y contrase?a |
|
30 |
* |
|
31 |
* Revision 1.8 2006/11/20 17:29:43 fjp |
|
32 |
* Fallo proxy con usuario y contrase?a |
|
33 |
* |
|
34 |
* Revision 1.7 2006/10/18 07:55:43 jaume |
|
35 |
* *** empty log message *** |
|
36 |
* |
|
37 |
* Revision 1.6 2006/08/22 12:23:05 jaume |
|
38 |
* improved perfomance when saving changes |
|
39 |
* |
|
40 |
* Revision 1.5 2006/08/22 07:37:17 jaume |
|
41 |
* *** empty log message *** |
|
42 |
* |
|
43 |
* Revision 1.4 2006/08/04 11:45:12 caballero |
|
44 |
* lanzo una excepci?n cuando falla el m?todo storeValues |
|
45 |
* |
|
46 |
* Revision 1.3 2006/07/31 10:02:31 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.2 2006/06/13 07:43:08 fjp |
|
50 |
* Ajustes sobre los cuadros de dialogos de preferencias |
|
51 |
* |
|
52 |
* Revision 1.1 2006/06/12 16:04:28 caballero |
|
53 |
* Preferencias |
|
54 |
* |
|
55 |
* Revision 1.11 2006/06/06 10:26:31 jaume |
|
56 |
* *** empty log message *** |
|
57 |
* |
|
58 |
* Revision 1.10 2006/06/05 17:07:17 jaume |
|
59 |
* *** empty log message *** |
|
60 |
* |
|
61 |
* Revision 1.9 2006/06/05 17:00:44 jaume |
|
62 |
* *** empty log message *** |
|
63 |
* |
|
64 |
* Revision 1.8 2006/06/05 16:57:59 jaume |
|
65 |
* *** empty log message *** |
|
66 |
* |
|
67 |
* Revision 1.7 2006/06/05 14:45:06 jaume |
|
68 |
* *** empty log message *** |
|
69 |
* |
|
70 |
* Revision 1.6 2006/06/05 11:00:09 jaume |
|
71 |
* *** empty log message *** |
|
72 |
* |
|
73 |
* Revision 1.5 2006/06/05 10:39:02 jaume |
|
74 |
* *** empty log message *** |
|
75 |
* |
|
76 |
* Revision 1.4 2006/06/05 10:13:40 jaume |
|
77 |
* *** empty log message *** |
|
78 |
* |
|
79 |
* Revision 1.3 2006/06/05 10:06:08 jaume |
|
80 |
* *** empty log message *** |
|
81 |
* |
Also available in: Unified diff