svn-gvsig-desktop / tags / v1_1_Build_1000 / libraries / libCq CMS for java.old / src / org / cresques / ui / raster / XMLText.java @ 11885
History | View | Annotate | Download (965 Bytes)
1 | 4405 | nacho | package org.cresques.ui.raster; |
---|---|---|---|
2 | |||
3 | import javax.swing.JTextField; |
||
4 | |||
5 | /**
|
||
6 | * Clase que representa a un textfield obtenido a partir del XML
|
||
7 | * que manda un driver de escritura.
|
||
8 | *
|
||
9 | * @author Nacho Brodin <brodin_ign@gva.es>
|
||
10 | *
|
||
11 | */
|
||
12 | public class XMLText extends JTextField { |
||
13 | final private static long serialVersionUID = -3370601314380922368L; |
||
14 | public int numPanel = -1; |
||
15 | public int posIntoPanel = -1; |
||
16 | public String position = null; |
||
17 | public String selected = null; |
||
18 | public int sizex = 0; |
||
19 | public int sizey = 0; |
||
20 | public String text = null; |
||
21 | public String id = null; |
||
22 | |||
23 | /**
|
||
24 | * Contructor
|
||
25 | * @param text texto del textfield
|
||
26 | */
|
||
27 | public XMLText(String text) { |
||
28 | super(text);
|
||
29 | this.text = text;
|
||
30 | } |
||
31 | |||
32 | /**
|
||
33 | * Inicializaci?n del XMLCheck
|
||
34 | */
|
||
35 | public void init() { |
||
36 | if ((sizex != 0) && (sizey != 0)) { |
||
37 | this.setPreferredSize(new java.awt.Dimension(sizex, sizey)); |
||
38 | } |
||
39 | } |
||
40 | } |