Revision 13573
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/coorddatainput/TestCoordDataInput.java | ||
---|---|---|
35 | 35 |
public TestCoordDataInput() { |
36 | 36 |
coord = new CoordinatesPanel(); |
37 | 37 |
coord.setParameters("Coordenadas pixel", "Sup.Izq", "X","Y","Inf.Der","X","Y"); |
38 |
coord.setEnabled(true); |
|
38 | 39 |
frame.getContentPane().add(coord); |
39 | 40 |
frame.setSize(w, h); |
40 | 41 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/coordinatespanel/CoordinatesPanel.java | ||
---|---|---|
43 | 43 |
public class CoordinatesPanel extends JPanel implements DataInputContainerListener { |
44 | 44 |
private static final long serialVersionUID = 3336324382874763427L; |
45 | 45 |
private String pathToImages = "images/"; |
46 |
private String tituloPanel = "Title"; |
|
47 |
private ArrayList actionChangedListeners = new ArrayList(); |
|
48 |
|
|
46 | 49 |
private JPanel pCoord = null; |
47 | 50 |
private JLabel lTitulo1 = null; |
48 | 51 |
private JLabel lTitulo2 = null; |
... | ... | |
50 | 53 |
private DataInputContainer dataInputContainer12 = null; |
51 | 54 |
private DataInputContainer dataInputContainer21 = null; |
52 | 55 |
private DataInputContainer dataInputContainer22 = null; |
53 |
private String tituloPanel = "Title"; |
|
54 |
private ArrayList actionChangedListeners = new ArrayList(); |
|
55 | 56 |
|
56 | 57 |
/** |
57 | 58 |
* This is the default constructor |
... | ... | |
328 | 329 |
public void setValue22(String value) { |
329 | 330 |
getDataInputContainer22().setValue(value); |
330 | 331 |
} |
332 |
|
|
333 |
/* |
|
334 |
* (non-Javadoc) |
|
335 |
* @see javax.swing.JComponent#setEnabled(boolean) |
|
336 |
*/ |
|
337 |
public void setEnabled(boolean enabled) { |
|
338 |
super.setEnabled(enabled); |
|
339 |
getPCoord().setEnabled(enabled); |
|
340 |
getLTitulo1().setEnabled(enabled); |
|
341 |
getLTitulo2().setEnabled(enabled); |
|
342 |
getDataInputContainer11().setControlEnabled(enabled); |
|
343 |
getDataInputContainer12().setControlEnabled(enabled); |
|
344 |
getDataInputContainer21().setControlEnabled(enabled); |
|
345 |
getDataInputContainer22().setControlEnabled(enabled); |
|
346 |
} |
|
331 | 347 |
} |
Also available in: Unified diff