Revision 1445

View differences:

org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/BusquedaCatastralSwingManager.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api;
24

  
25
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralException;
26

  
27
/**
28
 * This class is responsible of the management of the library's business logic.
29
 * It is the library's main entry point, and provides all the services to manage
30
 * {@link WebMapService}s.
31
 *
32
 * @see WebMapService
33
 * @author gvSIG team
34
 * @version $Id$
35
 */
36
public interface BusquedaCatastralSwingManager {
37

  
38
    BusquedaCatastralConsultaCatastralPanel createConsultaCatastralPanel()throws BusquedaCatastralException;
39
}
40

  
41

  
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/BusquedaCatastralConsultaCatastralPanel.java
1
package org.gvsig.busquedacatastral.swing.api;
2

  
3
import java.awt.event.ActionListener;
4

  
5
import org.cresques.cts.IProjection;
6
import org.gvsig.busquedacatastral.lib.api.QueryCatastral;
7
import org.gvsig.busquedacatastral.lib.api.ReferenciaCatastral;
8
import org.gvsig.busquedacatastral.swing.api.exceptions.BusquedaCatastralObtainingDataException;
9
import org.gvsig.busquedacatastral.swing.api.exceptions.BusquedaCatastralObtainingPointException;
10
import org.gvsig.fmap.geom.primitive.Point;
11
import org.gvsig.tools.dynobject.DynObject;
12
import org.gvsig.tools.swing.api.Component;
13

  
14

  
15
/**
16
 * A panel to create a QueryCatastral to consult catastro for data
17
 * @author dmartinezizquierdo
18
 *
19
 */
20
public interface BusquedaCatastralConsultaCatastralPanel extends Component{
21
    enum PanelAction{CANCEL, FOCUSTOPOINT, SHOWDATA, DELETEPOINTS};
22

  
23
    public void deleteCache();
24

  
25
    public Point getPoint(IProjection projection) throws BusquedaCatastralObtainingPointException;
26

  
27
    public ReferenciaCatastral getSelectedReferenciaCatastral();
28

  
29
    public DynObject getDatosCatastrales()throws BusquedaCatastralObtainingDataException;
30

  
31
    public void setQuery(QueryCatastral query);
32

  
33
    public void clear();
34

  
35
    public boolean isSelectedAction(PanelAction action);
36

  
37
    public void addActionListener(ActionListener listener);
38

  
39
    public void removeActionListener(ActionListener listener);
40
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/exceptions/BusquedaCatastralObtainingDataException.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api.exceptions;
24

  
25
public class BusquedaCatastralObtainingDataException extends BusquedaCatastralSwingException {
26

  
27

  
28
    /**
29
     *
30
     */
31
    private static final long serialVersionUID = 8201868527295813900L;
32

  
33
    private static final String MESSAGE =
34
        "An error has been produced obtaining data";
35

  
36
    private static final String KEY = "_BusquedaCatastralObtainingDataException";
37

  
38
    public BusquedaCatastralObtainingDataException(Throwable ex) {
39
        super(MESSAGE, ex, KEY, serialVersionUID);
40
    }
41

  
42
    public BusquedaCatastralObtainingDataException(String message, Throwable ex) {
43
        super(message, ex, KEY, serialVersionUID);
44
    }
45

  
46
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/exceptions/BusquedaCatastralObtainingPointException.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api.exceptions;
24

  
25
public class BusquedaCatastralObtainingPointException extends BusquedaCatastralSwingException {
26

  
27

  
28
    /**
29
     *
30
     */
31
    private static final long serialVersionUID = 8201868527295813900L;
32

  
33
    private static final String MESSAGE =
34
        "An error has been produced obtaining point";
35

  
36
    private static final String KEY = "_BusquedaCatastralObtainingPointException";
37

  
38
    public BusquedaCatastralObtainingPointException(Throwable ex) {
39
        super(MESSAGE, ex, KEY, serialVersionUID);
40
    }
41

  
42
    public BusquedaCatastralObtainingPointException(String message, Throwable ex) {
43
        super(message, ex, KEY, serialVersionUID);
44
    }
45

  
46
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/exceptions/BusquedaCatastralSwingException.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api.exceptions;
24

  
25

  
26
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralException;
27
import org.gvsig.tools.exception.BaseException;
28

  
29
/**
30
 *
31
 * @author gvSIG team.
32
 *
33
 */
34
public class BusquedaCatastralSwingException extends BusquedaCatastralException {
35

  
36
    /**
37
     *
38
     */
39
    private static final long serialVersionUID = -1043709801185809443L;
40

  
41
    private static final String MESSAGE =
42
        "An error has been produced in the Busqueda Catastral Swing library";
43

  
44
    private static final String KEY = "_WasteException";
45

  
46
    /**
47
     * Constructor to be used in rare cases, usually you must create a new child
48
     * exception class for each case.
49
     * <strong>Don't use this constructor in child classes.</strong>
50
     */
51
    public BusquedaCatastralSwingException() {
52
        super(MESSAGE, KEY, serialVersionUID);
53
    }
54

  
55
    /**
56
     * Constructor to be used in rare cases, usually you must create a new child
57
     * exception class for each case.
58
     * <p>
59
     * <strong>Don't use this constructor in child classes.</strong>
60
     * </p>
61
     *
62
     * @param cause
63
     *            the original cause of the exception
64
     */
65
    public BusquedaCatastralSwingException(Exception cause) {
66
        super(MESSAGE, cause, KEY, serialVersionUID);
67
    }
68

  
69
    /**
70
     * @see BaseException#BaseException(String, String, long)
71
     * @param message
72
     *            the default messageFormat to describe the exception
73
     * @param key
74
     *            the key to use to search a localized messageFormnata
75
     * @param code
76
     *            the unique code to identify the exception
77
     */
78
    protected BusquedaCatastralSwingException(String message, String key, long code) {
79
        super(message, key, code);
80
    }
81

  
82
    /**
83
     * @see BaseException#BaseException(String, Throwable, String, long)
84
     * @param message
85
     *            the default messageFormat to describe the exception
86
     * @param cause
87
     *            the original cause of the exception
88
     * @param key
89
     *            the key to use to search a localized messageFormnata
90
     * @param code
91
     *            the unique code to identify the exception
92
     */
93
    protected BusquedaCatastralSwingException(String message, Throwable cause,
94
        String key, long code) {
95
        super(message, cause, key, code);
96
    }
97

  
98
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/exceptions/BusquedaCatastralCreatingPanelException.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api.exceptions;
24

  
25
public class BusquedaCatastralCreatingPanelException extends BusquedaCatastralSwingException {
26

  
27

  
28
    /**
29
     *
30
     */
31
    private static final long serialVersionUID = 8201868527295813900L;
32

  
33
    private static final String MESSAGE =
34
        "An error has been produced creating panel";
35

  
36
    private static final String KEY = "_BusquedaCatastralCreatingPanelException";
37

  
38
    public BusquedaCatastralCreatingPanelException(Throwable ex) {
39
        super(MESSAGE, ex, KEY, serialVersionUID);
40
    }
41

  
42
    public BusquedaCatastralCreatingPanelException(String message, Throwable ex) {
43
        super(message, ex, KEY, serialVersionUID);
44
    }
45

  
46
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/BusquedaCatastralSwingLocator.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api;
24

  
25
import org.gvsig.tools.locator.BaseLocator;
26
import org.gvsig.tools.locator.Locator;
27
import org.gvsig.tools.locator.LocatorException;
28

  
29
/**
30
 * This locator is the entry point for the BusquedaCatastral Swing library,
31
 * providing access to all services through the
32
 * {@link BusquedaCatastralSwingManager} .
33
 *
34
 * @author gvSIG team
35
 * @version $Id$
36
 */
37
public class BusquedaCatastralSwingLocator extends BaseLocator {
38

  
39
    private static final String LOCATOR_NAME = "BusquedaCatastral.swinglocator";
40

  
41
    /**
42
     * WebMap manager name.
43
     */
44
    public static final String MANAGER_NAME = "BusquedaCatastral.swingmanager";
45

  
46
    /**
47
     * WebMap manager description.
48
     */
49
    public static final String MANAGER_DESCRIPTION = "Busqueda Catastral Swing Manager";
50

  
51

  
52
    /**
53
     * Unique instance.
54
     */
55
    private static final BusquedaCatastralSwingLocator INSTANCE =
56
        new BusquedaCatastralSwingLocator();
57

  
58
    /**
59
     * Return the singleton instance.
60
     *
61
     * @return the singleton instance
62
     */
63
    public static BusquedaCatastralSwingLocator getInstance() {
64
        return INSTANCE;
65
    }
66

  
67
    /**
68
     * Return the Locator's name.
69
     *
70
     * @return a String with the Locator's name
71
     */
72
    public final String getLocatorName() {
73
        return LOCATOR_NAME;
74
    }
75

  
76
    /**
77
     * Return a reference to the Manager.
78
     *
79
     * @return a reference to the Manager
80
     * @throws LocatorException
81
     *             if there is no access to the class or the class cannot be
82
     *             instantiated
83
     * @see Locator#get(String)
84
     */
85
    public static BusquedaCatastralSwingManager getManager() throws LocatorException {
86
        return (BusquedaCatastralSwingManager) getInstance().get(MANAGER_NAME);
87
    }
88

  
89
    /**
90
     * Registers the Class implementing the WebMapManager interface.
91
     *
92
     * @param clazz
93
     *            implementing the WebMapManager interface
94
     */
95
    public static void registerManager(
96
        Class<? extends BusquedaCatastralSwingManager> clazz) {
97
        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
98
    }
99

  
100
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/java/org/gvsig/busquedacatastral/swing/api/BusquedaCatastralSwingLibrary.java
1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2016 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.busquedacatastral.swing.api;
24

  
25
import org.gvsig.tools.library.AbstractLibrary;
26
import org.gvsig.tools.library.LibraryException;
27
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
28

  
29
/**
30
 * Library for swing components for busqueda catastral
31
 *
32
 * @author gvSIG team
33
 * @version $Id$
34
 */
35
public class BusquedaCatastralSwingLibrary extends AbstractLibrary {
36

  
37
    @Override
38
    public void doRegistration() {
39
        registerAsAPI(BusquedaCatastralSwingLibrary.class);
40
    }
41

  
42
    @Override
43
    protected void doInitialize() throws LibraryException {
44
        // Do nothing
45
    }
46

  
47
    @Override
48
    protected void doPostInitialize() throws LibraryException {
49
        // Validate there is any implementation registered.
50
        BusquedaCatastralSwingManager manager = BusquedaCatastralSwingLocator.getManager();
51
        if (manager == null) {
52
            throw new ReferenceNotRegisteredException(
53
                BusquedaCatastralSwingLocator.MANAGER_NAME, BusquedaCatastralSwingLocator.getInstance());
54
        }
55
    }
56

  
57
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.busquedacatastral.swing.api.BusquedaCatastralSwingLibrary
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.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.busquedacatastral.swing</artifactId>
6
  <version>1.0.37</version>
7
 </parent>
8
 <artifactId>org.gvsig.busquedacatastral.swing.api</artifactId>
9
 <name>${project.artifactId}</name>
10

  
11
 <build>
12
  <plugins>
13
   <plugin>
14
    <groupId>org.apache.maven.plugins</groupId>
15
    <artifactId>maven-jar-plugin</artifactId>
16
    <configuration>
17
    </configuration>
18
    <executions>
19
     <!-- Generates a jar file only with the test classes -->
20
     <execution>
21
      <goals>
22
       <goal>test-jar</goal>
23
      </goals>
24
     </execution>
25
    </executions>
26
   </plugin>
27
  </plugins>
28
 </build>
29

  
30
 <dependencies>
31
  <dependency>
32
   <groupId>org.gvsig</groupId>
33
   <artifactId>org.gvsig.busquedacatastral.lib.api</artifactId>
34
   <scope>compile</scope>
35
  </dependency>
36
  <dependency>
37
   <groupId>org.gvsig</groupId>
38
   <artifactId>org.gvsig.tools.lib</artifactId>
39
   <scope>compile</scope>
40
  </dependency>
41
  <dependency>
42
   <groupId>org.gvsig</groupId>
43
   <artifactId>org.gvsig.tools.swing.api</artifactId>
44
   <scope>compile</scope>
45
  </dependency>
46
  <dependency>
47
   <groupId>org.gvsig</groupId>
48
   <artifactId>org.gvsig.fmap.geometry.api</artifactId>
49
   <scope>compile</scope>
50
  </dependency>
51
 </dependencies>
52
</project>
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/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.busquedacatastral</artifactId>
6
    <version>1.0.37</version>
7
  </parent>
8
  <artifactId>org.gvsig.busquedacatastral.swing</artifactId>
9
  <packaging>pom</packaging>
10
  <name>org.gvsig.busquedacatastral.swing</name>
11
  <modules>
12
   <module>org.gvsig.busquedacatastral.swing.api</module>
13
   <module>org.gvsig.busquedacatastral.swing.impl</module>
14
  </modules>
15
</project>
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.busquedacatastral.swing.impl.DefaultBusquedaCatastralSwingLibrary
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.impl/src/main/java/org/gvsig/busquedacatastral/swing/impl/BusquedaMunicipiosPanelView.java
1
package org.gvsig.busquedacatastral.swing.impl;
2

  
3
import com.jgoodies.forms.layout.CellConstraints;
4
import com.jgoodies.forms.layout.FormLayout;
5
import java.awt.BorderLayout;
6
import java.awt.ComponentOrientation;
7
import java.awt.Container;
8
import java.awt.Dimension;
9
import javax.swing.Box;
10
import javax.swing.ImageIcon;
11
import javax.swing.JButton;
12
import javax.swing.JFrame;
13
import javax.swing.JLabel;
14
import javax.swing.JList;
15
import javax.swing.JPanel;
16
import javax.swing.JScrollPane;
17
import javax.swing.JTextField;
18

  
19

  
20
public class BusquedaMunicipiosPanelView extends JPanel
21
{
22
   JLabel lblMunicipio = new JLabel();
23
   JLabel lblProvincia = new JLabel();
24
   JTextField txtProvincia = new JTextField();
25
   JTextField txtMunicipio = new JTextField();
26
   JList listMunicipios = new JList();
27
   JButton btnAceptar = new JButton();
28
   JButton btnCancelar = new JButton();
29

  
30
   /**
31
    * Default constructor
32
    */
33
   public BusquedaMunicipiosPanelView()
34
   {
35
      initializePanel();
36
   }
37

  
38
   /**
39
    * Adds fill components to empty cells in the first row and first column of the grid.
40
    * This ensures that the grid spacing will be the same as shown in the designer.
41
    * @param cols an array of column indices in the first row where fill components should be added.
42
    * @param rows an array of row indices in the first column where fill components should be added.
43
    */
44
   void addFillComponents( Container panel, int[] cols, int[] rows )
45
   {
46
      Dimension filler = new Dimension(10,10);
47

  
48
      boolean filled_cell_11 = false;
49
      CellConstraints cc = new CellConstraints();
50
      if ( cols.length > 0 && rows.length > 0 )
51
      {
52
         if ( cols[0] == 1 && rows[0] == 1 )
53
         {
54
            /** add a rigid area  */
55
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
56
            filled_cell_11 = true;
57
         }
58
      }
59

  
60
      for( int index = 0; index < cols.length; index++ )
61
      {
62
         if ( cols[index] == 1 && filled_cell_11 )
63
         {
64
            continue;
65
         }
66
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
67
      }
68

  
69
      for( int index = 0; index < rows.length; index++ )
70
      {
71
         if ( rows[index] == 1 && filled_cell_11 )
72
         {
73
            continue;
74
         }
75
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
76
      }
77

  
78
   }
79

  
80
   /**
81
    * Helper method to load an image file from the CLASSPATH
82
    * @param imageName the package and name of the file to load relative to the CLASSPATH
83
    * @return an ImageIcon instance with the specified image file
84
    * @throws IllegalArgumentException if the image resource cannot be loaded.
85
    */
86
   public ImageIcon loadImage( String imageName )
87
   {
88
      try
89
      {
90
         ClassLoader classloader = getClass().getClassLoader();
91
         java.net.URL url = classloader.getResource( imageName );
92
         if ( url != null )
93
         {
94
            ImageIcon icon = new ImageIcon( url );
95
            return icon;
96
         }
97
      }
98
      catch( Exception e )
99
      {
100
         e.printStackTrace();
101
      }
102
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
103
   }
104

  
105
   /**
106
    * Method for recalculating the component orientation for
107
    * right-to-left Locales.
108
    * @param orientation the component orientation to be applied
109
    */
110
   public void applyComponentOrientation( ComponentOrientation orientation )
111
   {
112
      // Not yet implemented...
113
      // I18NUtils.applyComponentOrientation(this, orientation);
114
      super.applyComponentOrientation(orientation);
115
   }
116

  
117
   public JPanel createPanel()
118
   {
119
      JPanel jpanel1 = new JPanel();
120
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:216PX:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:136PX:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
121
      CellConstraints cc = new CellConstraints();
122
      jpanel1.setLayout(formlayout1);
123

  
124
      lblMunicipio.setName("lblMunicipio");
125
      lblMunicipio.setText("_municipio");
126
      jpanel1.add(lblMunicipio,cc.xy(2,4));
127

  
128
      lblProvincia.setName("lblProvincia");
129
      lblProvincia.setText("_provincia");
130
      jpanel1.add(lblProvincia,cc.xy(2,2));
131

  
132
      txtProvincia.setName("txtProvincia");
133
      jpanel1.add(txtProvincia,cc.xy(4,2));
134

  
135
      txtMunicipio.setName("txtMunicipio");
136
      jpanel1.add(txtMunicipio,cc.xy(4,4));
137

  
138
      listMunicipios.setName("listMunicipios");
139
      JScrollPane jscrollpane1 = new JScrollPane();
140
      jscrollpane1.setViewportView(listMunicipios);
141
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
142
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
143
      jpanel1.add(jscrollpane1,cc.xywh(4,6,6,1));
144

  
145
      btnAceptar.setActionCommand("JButton");
146
      btnAceptar.setName("btnAceptar");
147
      btnAceptar.setText("_aceptar");
148
      jpanel1.add(btnAceptar,cc.xy(6,8));
149

  
150
      btnCancelar.setActionCommand("JButton");
151
      btnCancelar.setName("btnCancelar");
152
      btnCancelar.setText("_cancelar");
153
      jpanel1.add(btnCancelar,cc.xy(8,8));
154

  
155
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10 },new int[]{ 1,2,3,4,5,6,7,8,9 });
156
      return jpanel1;
157
   }
158

  
159
   /**
160
    * Initializer
161
    */
162
   protected void initializePanel()
163
   {
164
      setLayout(new BorderLayout());
165
      add(createPanel(), BorderLayout.CENTER);
166
   }
167

  
168

  
169
}
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.impl/src/main/java/org/gvsig/busquedacatastral/swing/impl/BusquedaViasPanelView.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/daniel/projects/svn/desig-lote1-gvsig.desig-lote1_gvsig/fuentes/ENT-56322/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.impl/src/main/java/org/gvsig/busquedacatastral/swing/impl/BusquedaViasPanelView.xml</at>
28
   <at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:136PX:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at>
29
   <at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:216PX:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE</at>
30
   <at name="components">
31
    <object classname="java.util.LinkedList">
32
     <item >
33
      <at name="value">
34
       <object classname="com.jeta.forms.store.memento.BeanMemento">
35
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
36
         <at name="cellconstraints">
37
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
38
           <at name="column">2</at>
39
           <at name="row">4</at>
40
           <at name="colspan">1</at>
41
           <at name="rowspan">1</at>
42
           <at name="halign">default</at>
43
           <at name="valign">default</at>
44
           <at name="insets" object="insets">0,0,0,0</at>
45
          </object>
46
         </at>
47
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
48
        </super>
49
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
50
        <at name="beanclass">com.jeta.forms.components.label.JETALabel</at>
51
        <at name="beanproperties">
52
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
53
          <at name="classname">com.jeta.forms.components.label.JETALabel</at>
54
          <at name="properties">
55
           <object classname="com.jeta.forms.store.support.PropertyMap">
56
            <at name="border">
57
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
58
              <super classname="com.jeta.forms.store.properties.BorderProperty">
59
               <at name="name">border</at>
60
              </super>
61
              <at name="borders">
62
               <object classname="java.util.LinkedList">
63
                <item >
64
                 <at name="value">
65
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
66
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
67
                    <at name="name">border</at>
68
                   </super>
69
                  </object>
70
                 </at>
71
                </item>
72
               </object>
73
              </at>
74
             </object>
75
            </at>
76
            <at name="name">lblMunicipio</at>
77
            <at name="width">60</at>
78
            <at name="text">_municipio</at>
79
            <at name="fill">
80
             <object classname="com.jeta.forms.store.properties.effects.PaintProperty">
81
              <at name="name">fill</at>
82
             </object>
83
            </at>
84
            <at name="height">14</at>
85
           </object>
86
          </at>
87
         </object>
88
        </at>
89
       </object>
90
      </at>
91
     </item>
92
     <item >
93
      <at name="value">
94
       <object classname="com.jeta.forms.store.memento.BeanMemento">
95
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
96
         <at name="cellconstraints">
97
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
98
           <at name="column">2</at>
99
           <at name="row">2</at>
100
           <at name="colspan">1</at>
101
           <at name="rowspan">1</at>
102
           <at name="halign">default</at>
103
           <at name="valign">default</at>
104
           <at name="insets" object="insets">0,0,0,0</at>
105
          </object>
106
         </at>
107
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
108
        </super>
109
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
110
        <at name="beanclass">com.jeta.forms.components.label.JETALabel</at>
111
        <at name="beanproperties">
112
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
113
          <at name="classname">com.jeta.forms.components.label.JETALabel</at>
114
          <at name="properties">
115
           <object classname="com.jeta.forms.store.support.PropertyMap">
116
            <at name="border">
117
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
118
              <super classname="com.jeta.forms.store.properties.BorderProperty">
119
               <at name="name">border</at>
120
              </super>
121
              <at name="borders">
122
               <object classname="java.util.LinkedList">
123
                <item >
124
                 <at name="value">
125
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
126
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
127
                    <at name="name">border</at>
128
                   </super>
129
                  </object>
130
                 </at>
131
                </item>
132
               </object>
133
              </at>
134
             </object>
135
            </at>
136
            <at name="name">lblProvincia</at>
137
            <at name="width">60</at>
138
            <at name="text">_provincia</at>
139
            <at name="fill">
140
             <object classname="com.jeta.forms.store.properties.effects.PaintProperty">
141
              <at name="name">fill</at>
142
             </object>
143
            </at>
144
            <at name="height">14</at>
145
           </object>
146
          </at>
147
         </object>
148
        </at>
149
       </object>
150
      </at>
151
     </item>
152
     <item >
153
      <at name="value">
154
       <object classname="com.jeta.forms.store.memento.BeanMemento">
155
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
156
         <at name="cellconstraints">
157
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
158
           <at name="column">4</at>
159
           <at name="row">2</at>
160
           <at name="colspan">1</at>
161
           <at name="rowspan">1</at>
162
           <at name="halign">default</at>
163
           <at name="valign">default</at>
164
           <at name="insets" object="insets">0,0,0,0</at>
165
          </object>
166
         </at>
167
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
168
        </super>
169
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
170
        <at name="beanclass">javax.swing.JTextField</at>
171
        <at name="beanproperties">
172
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
173
          <at name="classname">javax.swing.JTextField</at>
174
          <at name="properties">
175
           <object classname="com.jeta.forms.store.support.PropertyMap">
176
            <at name="border">
177
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
178
              <super classname="com.jeta.forms.store.properties.BorderProperty">
179
               <at name="name">border</at>
180
              </super>
181
              <at name="borders">
182
               <object classname="java.util.LinkedList">
183
                <item >
184
                 <at name="value">
185
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
186
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
187
                    <at name="name">border</at>
188
                   </super>
189
                  </object>
190
                 </at>
191
                </item>
192
               </object>
193
              </at>
194
             </object>
195
            </at>
196
            <at name="name">txtProvincia</at>
197
            <at name="width">212</at>
198
            <at name="height">20</at>
199
           </object>
200
          </at>
201
         </object>
202
        </at>
203
       </object>
204
      </at>
205
     </item>
206
     <item >
207
      <at name="value">
208
       <object classname="com.jeta.forms.store.memento.BeanMemento">
209
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
210
         <at name="cellconstraints">
211
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
212
           <at name="column">4</at>
213
           <at name="row">4</at>
214
           <at name="colspan">1</at>
215
           <at name="rowspan">1</at>
216
           <at name="halign">default</at>
217
           <at name="valign">default</at>
218
           <at name="insets" object="insets">0,0,0,0</at>
219
          </object>
220
         </at>
221
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
222
        </super>
223
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
224
        <at name="beanclass">javax.swing.JTextField</at>
225
        <at name="beanproperties">
226
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
227
          <at name="classname">javax.swing.JTextField</at>
228
          <at name="properties">
229
           <object classname="com.jeta.forms.store.support.PropertyMap">
230
            <at name="border">
231
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
232
              <super classname="com.jeta.forms.store.properties.BorderProperty">
233
               <at name="name">border</at>
234
              </super>
235
              <at name="borders">
236
               <object classname="java.util.LinkedList">
237
                <item >
238
                 <at name="value">
239
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
240
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
241
                    <at name="name">border</at>
242
                   </super>
243
                  </object>
244
                 </at>
245
                </item>
246
               </object>
247
              </at>
248
             </object>
249
            </at>
250
            <at name="name">txtMunicipio</at>
251
            <at name="width">212</at>
252
            <at name="height">20</at>
253
           </object>
254
          </at>
255
         </object>
256
        </at>
257
       </object>
258
      </at>
259
     </item>
260
     <item >
261
      <at name="value">
262
       <object classname="com.jeta.forms.store.memento.BeanMemento">
263
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
264
         <at name="cellconstraints">
265
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
266
           <at name="column">4</at>
267
           <at name="row">8</at>
268
           <at name="colspan">6</at>
269
           <at name="rowspan">1</at>
270
           <at name="halign">default</at>
271
           <at name="valign">default</at>
272
           <at name="insets" object="insets">0,0,0,0</at>
273
          </object>
274
         </at>
275
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
276
        </super>
277
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
278
        <at name="beanclass">javax.swing.JList</at>
279
        <at name="beanproperties">
280
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
281
          <at name="classname">javax.swing.JList</at>
282
          <at name="properties">
283
           <object classname="com.jeta.forms.store.support.PropertyMap">
284
            <at name="border">
285
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
286
              <super classname="com.jeta.forms.store.properties.BorderProperty">
287
               <at name="name">border</at>
288
              </super>
289
              <at name="borders">
290
               <object classname="java.util.LinkedList">
291
                <item >
292
                 <at name="value">
293
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
294
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
295
                    <at name="name">border</at>
296
                   </super>
297
                  </object>
298
                 </at>
299
                </item>
300
               </object>
301
              </at>
302
             </object>
303
            </at>
304
            <at name="scrollableTracksViewportHeight">true</at>
305
            <at name="scrollableTracksViewportWidth">true</at>
306
            <at name="name">listVias</at>
307
            <at name="width">415</at>
308
            <at name="items">
309
             <object classname="com.jeta.forms.store.properties.ItemsProperty">
310
              <at name="name">items</at>
311
             </object>
312
            </at>
313
            <at name="scollBars">
314
             <object classname="com.jeta.forms.store.properties.ScrollBarsProperty">
315
              <at name="name">scollBars</at>
316
              <at name="verticalpolicy">20</at>
317
              <at name="horizontalpolicy">30</at>
318
              <at name="border">
319
               <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
320
                <super classname="com.jeta.forms.store.properties.BorderProperty">
321
                 <at name="name">border</at>
322
                </super>
323
                <at name="borders">
324
                 <object classname="java.util.LinkedList">
325
                  <item >
326
                   <at name="value">
327
                    <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
328
                     <super classname="com.jeta.forms.store.properties.BorderProperty">
329
                      <at name="name">border</at>
330
                     </super>
331
                    </object>
332
                   </at>
333
                  </item>
334
                 </object>
335
                </at>
336
               </object>
337
              </at>
338
             </object>
339
            </at>
340
            <at name="height">78</at>
341
           </object>
342
          </at>
343
         </object>
344
        </at>
345
       </object>
346
      </at>
347
     </item>
348
     <item >
349
      <at name="value">
350
       <object classname="com.jeta.forms.store.memento.BeanMemento">
351
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
352
         <at name="cellconstraints">
353
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
354
           <at name="column">6</at>
355
           <at name="row">10</at>
356
           <at name="colspan">1</at>
357
           <at name="rowspan">1</at>
358
           <at name="halign">default</at>
359
           <at name="valign">default</at>
360
           <at name="insets" object="insets">0,0,0,0</at>
361
          </object>
362
         </at>
363
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
364
        </super>
365
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
366
        <at name="beanclass">javax.swing.JButton</at>
367
        <at name="beanproperties">
368
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
369
          <at name="classname">javax.swing.JButton</at>
370
          <at name="properties">
371
           <object classname="com.jeta.forms.store.support.PropertyMap">
372
            <at name="border">
373
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
374
              <super classname="com.jeta.forms.store.properties.BorderProperty">
375
               <at name="name">border</at>
376
              </super>
377
              <at name="borders">
378
               <object classname="java.util.LinkedList">
379
                <item >
380
                 <at name="value">
381
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
382
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
383
                    <at name="name">border</at>
384
                   </super>
385
                  </object>
386
                 </at>
387
                </item>
388
               </object>
389
              </at>
390
             </object>
391
            </at>
392
            <at name="actionCommand">JButton</at>
393
            <at name="name">btnAceptar</at>
394
            <at name="width">81</at>
395
            <at name="text">_aceptar</at>
396
            <at name="height">22</at>
397
           </object>
398
          </at>
399
         </object>
400
        </at>
401
       </object>
402
      </at>
403
     </item>
404
     <item >
405
      <at name="value">
406
       <object classname="com.jeta.forms.store.memento.BeanMemento">
407
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
408
         <at name="cellconstraints">
409
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
410
           <at name="column">8</at>
411
           <at name="row">10</at>
412
           <at name="colspan">1</at>
413
           <at name="rowspan">1</at>
414
           <at name="halign">default</at>
415
           <at name="valign">default</at>
416
           <at name="insets" object="insets">0,0,0,0</at>
417
          </object>
418
         </at>
419
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
420
        </super>
421
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
422
        <at name="beanclass">javax.swing.JButton</at>
423
        <at name="beanproperties">
424
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
425
          <at name="classname">javax.swing.JButton</at>
426
          <at name="properties">
427
           <object classname="com.jeta.forms.store.support.PropertyMap">
428
            <at name="border">
429
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
430
              <super classname="com.jeta.forms.store.properties.BorderProperty">
431
               <at name="name">border</at>
432
              </super>
433
              <at name="borders">
434
               <object classname="java.util.LinkedList">
435
                <item >
436
                 <at name="value">
437
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
438
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
439
                    <at name="name">border</at>
440
                   </super>
441
                  </object>
442
                 </at>
443
                </item>
444
               </object>
445
              </at>
446
             </object>
447
            </at>
448
            <at name="actionCommand">JButton</at>
449
            <at name="name">btnCancelar</at>
450
            <at name="width">86</at>
451
            <at name="text">_cancelar</at>
452
            <at name="height">22</at>
453
           </object>
454
          </at>
455
         </object>
456
        </at>
457
       </object>
458
      </at>
459
     </item>
460
     <item >
461
      <at name="value">
462
       <object classname="com.jeta.forms.store.memento.BeanMemento">
463
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
464
         <at name="cellconstraints">
465
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
466
           <at name="column">2</at>
467
           <at name="row">6</at>
468
           <at name="colspan">1</at>
469
           <at name="rowspan">1</at>
470
           <at name="halign">default</at>
471
           <at name="valign">default</at>
472
           <at name="insets" object="insets">0,0,0,0</at>
473
          </object>
474
         </at>
475
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
476
        </super>
477
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
478
        <at name="beanclass">com.jeta.forms.components.label.JETALabel</at>
479
        <at name="beanproperties">
480
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
481
          <at name="classname">com.jeta.forms.components.label.JETALabel</at>
482
          <at name="properties">
483
           <object classname="com.jeta.forms.store.support.PropertyMap">
484
            <at name="border">
485
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
486
              <super classname="com.jeta.forms.store.properties.BorderProperty">
487
               <at name="name">border</at>
488
              </super>
489
              <at name="borders">
490
               <object classname="java.util.LinkedList">
491
                <item >
492
                 <at name="value">
493
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
494
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
495
                    <at name="name">border</at>
496
                   </super>
497
                  </object>
498
                 </at>
499
                </item>
500
               </object>
501
              </at>
502
             </object>
503
            </at>
504
            <at name="name">lblVia</at>
505
            <at name="width">60</at>
506
            <at name="text">_via</at>
507
            <at name="fill">
508
             <object classname="com.jeta.forms.store.properties.effects.PaintProperty">
509
              <at name="name">fill</at>
510
             </object>
511
            </at>
512
            <at name="height">14</at>
513
           </object>
514
          </at>
515
         </object>
516
        </at>
517
       </object>
518
      </at>
519
     </item>
520
     <item >
521
      <at name="value">
522
       <object classname="com.jeta.forms.store.memento.BeanMemento">
523
        <super classname="com.jeta.forms.store.memento.ComponentMemento">
524
         <at name="cellconstraints">
525
          <object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
526
           <at name="column">4</at>
527
           <at name="row">6</at>
528
           <at name="colspan">1</at>
529
           <at name="rowspan">1</at>
530
           <at name="halign">default</at>
531
           <at name="valign">default</at>
532
           <at name="insets" object="insets">0,0,0,0</at>
533
          </object>
534
         </at>
535
         <at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
536
        </super>
537
        <at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
538
        <at name="beanclass">javax.swing.JTextField</at>
539
        <at name="beanproperties">
540
         <object classname="com.jeta.forms.store.memento.PropertiesMemento">
541
          <at name="classname">javax.swing.JTextField</at>
542
          <at name="properties">
543
           <object classname="com.jeta.forms.store.support.PropertyMap">
544
            <at name="border">
545
             <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
546
              <super classname="com.jeta.forms.store.properties.BorderProperty">
547
               <at name="name">border</at>
548
              </super>
549
              <at name="borders">
550
               <object classname="java.util.LinkedList">
551
                <item >
552
                 <at name="value">
553
                  <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
554
                   <super classname="com.jeta.forms.store.properties.BorderProperty">
555
                    <at name="name">border</at>
556
                   </super>
557
                  </object>
558
                 </at>
559
                </item>
560
               </object>
561
              </at>
562
             </object>
563
            </at>
564
            <at name="name">txtVia</at>
565
            <at name="width">212</at>
566
            <at name="height">20</at>
567
           </object>
568
          </at>
569
         </object>
570
        </at>
571
       </object>
572
      </at>
573
     </item>
574
    </object>
575
   </at>
576
   <at name="properties">
577
    <object classname="com.jeta.forms.store.memento.PropertiesMemento">
578
     <at name="classname">com.jeta.forms.gui.form.GridView</at>
579
     <at name="properties">
580
      <object classname="com.jeta.forms.store.support.PropertyMap">
581
       <at name="border">
582
        <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
583
         <super classname="com.jeta.forms.store.properties.BorderProperty">
584
          <at name="name">border</at>
585
         </super>
586
         <at name="borders">
587
          <object classname="java.util.LinkedList"/>
588
         </at>
589
        </object>
590
       </at>
591
       <at name="name"/>
592
       <at name="fill">
593
        <object classname="com.jeta.forms.store.properties.effects.PaintProperty">
594
         <at name="name">fill</at>
595
        </object>
596
       </at>
597
       <at name="scollBars">
598
        <object classname="com.jeta.forms.store.properties.ScrollBarsProperty">
599
         <at name="name">scollBars</at>
600
         <at name="verticalpolicy">21</at>
601
         <at name="horizontalpolicy">31</at>
602
         <at name="border">
603
          <object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
604
           <super classname="com.jeta.forms.store.properties.BorderProperty">
605
            <at name="name">border</at>
606
           </super>
607
           <at name="borders">
608
            <object classname="java.util.LinkedList">
609
             <item >
610
              <at name="value">
611
               <object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
612
                <super classname="com.jeta.forms.store.properties.BorderProperty">
613
                 <at name="name">border</at>
614
                </super>
615
               </object>
616
              </at>
617
             </item>
618
            </object>
619
           </at>
620
          </object>
621
         </at>
622
        </object>
623
       </at>
624
      </object>
625
     </at>
626
    </object>
627
   </at>
628
   <at name="cellpainters">
629
    <object classname="com.jeta.forms.store.support.Matrix">
630
     <at name="rows">
631
      <object classname="[Ljava.lang.Object;" size="11">
632
       <at name="item" index="0">
633
        <object classname="[Ljava.lang.Object;" size="10"/>
634
       </at>
635
       <at name="item" index="1">
636
        <object classname="[Ljava.lang.Object;" size="10"/>
637
       </at>
638
       <at name="item" index="2">
639
        <object classname="[Ljava.lang.Object;" size="10"/>
640
       </at>
641
       <at name="item" index="3">
642
        <object classname="[Ljava.lang.Object;" size="10"/>
643
       </at>
644
       <at name="item" index="4">
645
        <object classname="[Ljava.lang.Object;" size="10"/>
646
       </at>
647
       <at name="item" index="5">
648
        <object classname="[Ljava.lang.Object;" size="10"/>
649
       </at>
650
       <at name="item" index="6">
651
        <object classname="[Ljava.lang.Object;" size="10"/>
652
       </at>
653
       <at name="item" index="7">
654
        <object classname="[Ljava.lang.Object;" size="10"/>
655
       </at>
656
       <at name="item" index="8">
657
        <object classname="[Ljava.lang.Object;" size="10"/>
658
       </at>
659
       <at name="item" index="9">
660
        <object classname="[Ljava.lang.Object;" size="10"/>
661
       </at>
662
       <at name="item" index="10">
663
        <object classname="[Ljava.lang.Object;" size="10"/>
664
       </at>
665
      </object>
666
     </at>
667
    </object>
668
   </at>
669
   <at name="rowgroups">
670
    <object classname="com.jeta.forms.store.memento.FormGroupSet">
671
     <at name="groups">
672
      <object classname="java.util.HashMap"/>
673
     </at>
674
    </object>
675
   </at>
676
   <at name="colgroups">
677
    <object classname="com.jeta.forms.store.memento.FormGroupSet">
678
     <at name="groups">
679
      <object classname="java.util.HashMap"/>
680
     </at>
681
    </object>
682
   </at>
683
  </object>
684
 </at>
685
</object>
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.37/org.gvsig.busquedacatastral.swing/org.gvsig.busquedacatastral.swing.impl/src/main/java/org/gvsig/busquedacatastral/swing/impl/ReferenciaCatastralCellRenderer.java
1
/*
2
 * Copyright 2015 DiSiD Technologies S.L.L. All rights reserved.
3
 *
4
 * Project  : DiSiD org.gvsig.lrs.swing.impl
5
 * SVN Id   : $Id$
6
 */
7
package org.gvsig.busquedacatastral.swing.impl;
8

  
9
import java.awt.Component;
10

  
11
import javax.swing.DefaultListCellRenderer;
12
import javax.swing.JLabel;
13
import javax.swing.JList;
14
import javax.swing.ListCellRenderer;
15

  
16
import org.gvsig.busquedacatastral.lib.api.ReferenciaCatastral;
17
import org.gvsig.busquedacatastral.lib.api.TipoVia;
18

  
19
public class ReferenciaCatastralCellRenderer implements ListCellRenderer<ReferenciaCatastral>{
20

  
21

  
22
    protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
23

  
24
    @Override
25
    public Component getListCellRendererComponent(JList<? extends ReferenciaCatastral> list,
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff