root / trunk / libraries / libCq_CMS_praster / src / org / cresques / ui / raster / XMLCombo.java @ 8026
History | View | Annotate | Download (878 Bytes)
1 |
package org.cresques.ui.raster; |
---|---|
2 |
|
3 |
import javax.swing.JComboBox; |
4 |
import javax.swing.JTextField; |
5 |
|
6 |
/**
|
7 |
* Clase que representa a un combo obtenido a partir del XML
|
8 |
* que manda un driver de escritura.
|
9 |
*
|
10 |
* @author Nacho Brodin <brodin_ign@gva.es>
|
11 |
*
|
12 |
*/
|
13 |
public class XMLCombo extends JComboBox { |
14 |
final private static long serialVersionUID = -3370601314380922368L; |
15 |
public int numPanel = -1; |
16 |
public int posIntoPanel = -1; |
17 |
public String position = null; |
18 |
public String selected = null; |
19 |
public int sizex = 0; |
20 |
public int sizey = 0; |
21 |
public String id = null; |
22 |
|
23 |
/**
|
24 |
* Inicializaci?n del XMLCombo
|
25 |
*/
|
26 |
public void init() { |
27 |
if ((sizex != 0) && (sizey != 0)) { |
28 |
this.setPreferredSize(new java.awt.Dimension(sizex, sizey)); |
29 |
} |
30 |
|
31 |
if (selected != null) { |
32 |
this.setSelectedItem(selected);
|
33 |
} |
34 |
} |
35 |
} |