Revision 10818 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/buttonsPanel/ButtonsPanel.java
ButtonsPanel.java | ||
---|---|---|
49 | 49 |
public static final int BUTTON_NO = 5; |
50 | 50 |
public static final int BUTTON_CLOSE = 6; |
51 | 51 |
public static final int BUTTON_EXIT = 7; |
52 |
public static final int BUTTON_SEEDETAILS = 8; |
|
53 |
public static final int BUTTON_HIDEDETAILS = 9; |
|
52 | 54 |
|
53 | 55 |
public static final int BUTTONS_ACCEPT = 1; |
54 | 56 |
public static final int BUTTONS_ACCEPTCANCEL = 2; |
55 | 57 |
public static final int BUTTONS_ACCEPTCANCELAPPLY = 3; |
56 |
public static final int BUTTONS_YESNO = 4; |
|
57 |
public static final int BUTTONS_CLOSE = 5; |
|
58 |
public static final int BUTTONS_EXIT = 6; |
|
59 |
public static final int BUTTONS_NONE = 7; |
|
58 |
public static final int BUTTONS_CANCEL = 4; |
|
59 |
public static final int BUTTONS_YESNO = 5; |
|
60 |
public static final int BUTTONS_CLOSE = 6; |
|
61 |
public static final int BUTTONS_EXIT = 7; |
|
62 |
public static final int BUTTONS_NONE = 8; |
|
60 | 63 |
|
61 | 64 |
/** |
62 | 65 |
* Crea un ButtonsPanel con un Layout por defecto. |
... | ... | |
64 | 67 |
public ButtonsPanel() { |
65 | 68 |
setLayout(new java.awt.FlowLayout(FlowLayout.RIGHT)); |
66 | 69 |
} |
67 |
|
|
70 |
|
|
68 | 71 |
/** |
69 | 72 |
* Crea un ButtonsPanel con un Layout por defecto. |
70 | 73 |
* |
... | ... | |
85 | 88 |
addCancel(); |
86 | 89 |
addApply(); |
87 | 90 |
break; |
91 |
case BUTTONS_CANCEL: |
|
92 |
addCancel(); |
|
93 |
break; |
|
88 | 94 |
case BUTTONS_YESNO: |
89 | 95 |
addYes(); |
90 | 96 |
addNo(); |
... | ... | |
168 | 174 |
} |
169 | 175 |
|
170 | 176 |
/** |
177 |
* A?adir el boton Ver detalles. |
|
178 |
*/ |
|
179 |
public void addSeeDetails() { |
|
180 |
addButton(Messages.getText("verdetalles"), BUTTON_SEEDETAILS); |
|
181 |
} |
|
182 |
|
|
183 |
/** |
|
184 |
* A?adir el boton Ocultar detalles. |
|
185 |
*/ |
|
186 |
public void addHideDetails() { |
|
187 |
addButton(Messages.getText("ocultardetalles"), BUTTON_HIDEDETAILS); |
|
188 |
} |
|
189 |
|
|
190 |
/** |
|
171 | 191 |
* A?adimos un bot?n definido por el usuario. |
172 | 192 |
* |
173 | 193 |
* @param text Texto que contendr? el bot?n |
Also available in: Unified diff