Revision 19356
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/panelGroup/Test1ExceptionsUsingTreePanel.java | ||
---|---|---|
22 | 22 |
import junit.framework.TestCase; |
23 | 23 |
|
24 | 24 |
import org.gvsig.exceptions.BaseException; |
25 |
import org.gvsig.gui.beans.Messages; |
|
25 | 26 |
import org.gvsig.gui.beans.panelGroup.loaders.PanelGroupLoaderFromList; |
26 | 27 |
import org.gvsig.gui.beans.panelGroup.samples.Samples_Data; |
27 | 28 |
import org.gvsig.gui.beans.panelGroup.treePanel.TreePanel; |
... | ... | |
66 | 67 |
* <p>Test the 'PanelGroup' exceptions </p> |
67 | 68 |
*/ |
68 | 69 |
public void test1() { |
69 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.";
|
|
70 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.";
|
|
70 | 71 |
|
71 | 72 |
try { |
72 | 73 |
System.out.println("----- Test 1 -----"); |
... | ... | |
96 | 97 |
* <p>Test the 'PanelGroup' exceptions </p> |
97 | 98 |
*/ |
98 | 99 |
public void test2() { |
99 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Panel with label \"Information_LABEL\" without preferred size defined.";
|
|
100 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
|
|
100 | 101 |
|
101 | 102 |
try { |
102 | 103 |
System.out.println("----- Test 2 -----"); |
... | ... | |
126 | 127 |
* <p>Test the 'PanelGroup' exceptions </p> |
127 | 128 |
*/ |
128 | 129 |
public void test3() { |
129 |
validationText = "No panel loaded.";
|
|
130 |
validationText = Messages.getText("empty_panel_group_exception");
|
|
130 | 131 |
|
131 | 132 |
try { |
132 | 133 |
System.out.println("----- Test 3 -----"); |
... | ... | |
156 | 157 |
* <p>Test the 'PanelGroup' exceptions </p> |
157 | 158 |
*/ |
158 | 159 |
public void test4() { |
159 |
validationText = "No panel in the graphical user interface.";
|
|
160 |
validationText = Messages.getText("empty_panel_group_gui_exception");
|
|
160 | 161 |
|
161 | 162 |
try { |
162 | 163 |
System.out.println("----- Test 4 -----"); |
... | ... | |
186 | 187 |
* <p>Test the 'PanelGroup' exceptions </p> |
187 | 188 |
*/ |
188 | 189 |
public void test5() { |
189 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.\n No panel loaded.";
|
|
190 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n " + Messages.getText("empty_panel_group_exception");
|
|
190 | 191 |
|
191 | 192 |
try { |
192 | 193 |
System.out.println("----- Test 5 -----"); |
... | ... | |
216 | 217 |
* <p>Test the 'PanelGroup' exceptions </p> |
217 | 218 |
*/ |
218 | 219 |
public void test6() { |
219 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.\n No panel in the graphical user interface.";
|
|
220 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n " + Messages.getText("empty_panel_group_gui_exception");
|
|
220 | 221 |
|
221 | 222 |
try { |
222 | 223 |
System.out.println("----- Test 6 -----"); |
... | ... | |
246 | 247 |
* <p>Test the 'PanelGroup' exceptions </p> |
247 | 248 |
*/ |
248 | 249 |
public void test7() { |
249 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.";
|
|
250 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
|
|
250 | 251 |
|
251 | 252 |
try { |
252 | 253 |
System.out.println("----- Test 7 -----"); |
trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/panelGroup/Test1ExceptionsUsingTabbedPanel.java | ||
---|---|---|
22 | 22 |
import junit.framework.TestCase; |
23 | 23 |
|
24 | 24 |
import org.gvsig.exceptions.BaseException; |
25 |
import org.gvsig.gui.beans.Messages; |
|
25 | 26 |
import org.gvsig.gui.beans.panelGroup.loaders.PanelGroupLoaderFromList; |
26 | 27 |
import org.gvsig.gui.beans.panelGroup.samples.Samples_Data; |
27 | 28 |
import org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel; |
... | ... | |
66 | 67 |
* <p>Test the 'PanelGroup' exceptions </p> |
67 | 68 |
*/ |
68 | 69 |
public void test1() { |
69 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.";
|
|
70 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.";
|
|
70 | 71 |
|
71 | 72 |
try { |
72 | 73 |
System.out.println("----- Test 1 -----"); |
... | ... | |
96 | 97 |
* <p>Test the 'PanelGroup' exceptions </p> |
97 | 98 |
*/ |
98 | 99 |
public void test2() { |
99 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Panel with label \"Information_LABEL\" without preferred size defined.";
|
|
100 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
|
|
100 | 101 |
|
101 | 102 |
try { |
102 | 103 |
System.out.println("----- Test 2 -----"); |
... | ... | |
126 | 127 |
* <p>Test the 'PanelGroup' exceptions </p> |
127 | 128 |
*/ |
128 | 129 |
public void test3() { |
129 |
validationText = "No panel loaded.";
|
|
130 |
validationText = Messages.getText("empty_panel_group_exception");
|
|
130 | 131 |
|
131 | 132 |
try { |
132 | 133 |
System.out.println("----- Test 3 -----"); |
... | ... | |
156 | 157 |
* <p>Test the 'PanelGroup' exceptions </p> |
157 | 158 |
*/ |
158 | 159 |
public void test4() { |
159 |
validationText = "No panel in the graphical user interface.";
|
|
160 |
validationText = Messages.getText("empty_panel_group_gui_exception");
|
|
160 | 161 |
|
161 | 162 |
try { |
162 | 163 |
System.out.println("----- Test 4 -----"); |
... | ... | |
186 | 187 |
* <p>Test the 'PanelGroup' exceptions </p> |
187 | 188 |
*/ |
188 | 189 |
public void test5() { |
189 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.\n No panel loaded.";
|
|
190 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n " + Messages.getText("empty_panel_group_exception");
|
|
190 | 191 |
|
191 | 192 |
try { |
192 | 193 |
System.out.println("----- Test 5 -----"); |
... | ... | |
216 | 217 |
* <p>Test the 'PanelGroup' exceptions </p> |
217 | 218 |
*/ |
218 | 219 |
public void test6() { |
219 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.\n No panel in the graphical user interface.";
|
|
220 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n " + Messages.getText("empty_panel_group_gui_exception");
|
|
220 | 221 |
|
221 | 222 |
try { |
222 | 223 |
System.out.println("----- Test 6 -----"); |
... | ... | |
246 | 247 |
* <p>Test the 'PanelGroup' exceptions </p> |
247 | 248 |
*/ |
248 | 249 |
public void test7() { |
249 |
validationText = "Couldn\'t add some panels to the panel-group component:\n Couldn\'t load some panels from a list of classes:\n Error loading a_panel: / by zero.\n Panel with label \"Information_LABEL\" without preferred size defined.";
|
|
250 |
validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n Error cargando un panel: / by zero.\n Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
|
|
250 | 251 |
|
251 | 252 |
try { |
252 | 253 |
System.out.println("----- Test 7 -----"); |
trunk/libraries/libUIComponent/config/text.properties | ||
---|---|---|
28 | 28 |
dynamic_and_ordered=Coincidencias y Ordenados |
29 | 29 |
edit_copy=Copiar |
30 | 30 |
edit_cut=Cortar |
31 |
edit_delete=Eliminar
|
|
31 |
edit_delete=Borrar
|
|
32 | 32 |
edit_paste=Pegar |
33 | 33 |
edit_redo=Rehacer |
34 | 34 |
edit_select_all=Seleccionar todo |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/editabletextcomponent/EditableTextDecorator.java | ||
---|---|---|
70 | 70 |
* <p>All options will be about the edition of the text in the component.</p> |
71 | 71 |
* |
72 | 72 |
* <p><b><i>How select an edition option using the mouse:</i></b> press the right button of the mouse on the text area, and a popup with the options will be displayed. Select and option.<br> |
73 |
* <b><i>How select an edition option using the keyboard:</i></b>
|
|
73 |
* <b><i>Default fast-access keys:</i></b>
|
|
74 | 74 |
* <ul> |
75 | 75 |
* <li><b>COPY:</b> </li> CTRL + C. Copies from the text field to the clipboard. |
76 | 76 |
* <li><b>CUT:</b> </li> CTRL + X. Cuts from the text field to the clipboad. |
... | ... | |
83 | 83 |
* |
84 | 84 |
* <p>This component by default stores 100 undo/redo actions. This value can be modified.</p> |
85 | 85 |
* |
86 |
* @version 03/01/2008 |
|
86 |
* <p>A developer would have to re-implement {@linkplain #defineEditorKeyListener() #defineEditorKeyListener()}, creating |
|
87 |
* a new <code>editorKeyListener</code> for changing any fast-access key.</p> |
|
88 |
* |
|
89 |
* @version 27/02/2008 |
|
87 | 90 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
88 | 91 |
*/ |
89 | 92 |
public class EditableTextDecorator implements IEditableText { |
... | ... | |
101 | 104 |
// END UNDO-REDO |
102 | 105 |
|
103 | 106 |
// LISTENERS |
104 |
private KeyListener editorKeyListener;
|
|
107 |
protected KeyListener editorKeyListener;
|
|
105 | 108 |
private MouseAdapter editorMouseListener; |
106 | 109 |
private PropertyChangeListener editionMenuListener; |
107 | 110 |
private EventListenerList undoRedoEditListeners; |
... | ... | |
220 | 223 |
/** |
221 | 224 |
* Defines a key listener for the editor of the text component. |
222 | 225 |
*/ |
223 |
private void defineEditorKeyListener() {
|
|
226 |
protected void defineEditorKeyListener() {
|
|
224 | 227 |
editorKeyListener = new KeyAdapter() { |
225 | 228 |
/* |
226 | 229 |
* (non-Javadoc) |
Also available in: Unified diff