@@ -0,0 +1,1898 @@
+package com.alexrnl.commons.translation;%0A%0A/**%0A * GUI component key structure.%3Cbr /%3E%0A * Define an element that may also be accessible via a shortcut and/or display a title on the%0A * component.%3Cbr /%3E%0A * Use this element to factorise code while setting up GUI component.%3Cbr /%3E%0A * Example of use:%3Cbr /%3E%0A * Translation file:%0A * %3Cpre%3E%0A * commons.menu.file%09%3C=%3E%09%22Create a new file%22%0A * commons.menu.file.shortcut%09%3C=%3E%09%22ctrl f%22%0A * commons.menu.file.tooltip%09%3C=%3E%09%22A new file will be started%22%0A * %3C/pre%3E%0A * Accessing the keys, in Java code:%0A * %3Cpre%3E%0A * GUIElement fileMenu = new GUIElement(%22commons.menu.file%22);%0A * fileMenu.getShortcut(); // return the shortcut key associated%0A * fileMenu.getTooltTip(); // return the tool tip key%0A * %3C/pre%3E%0A * @author Alex%0A */%0Apublic class GUIElement %7B%0A%09/** The string defining the key for the component's shortcut */%0A%09private static final String%09SHORTCUT%09= %22shortcut%22;%0A%09/** The string defining the key for the component's tooltip */%0A%09public static final String%09TOOL_TIP%09%09= %22tooltip%22;%0A%09%0A%09/** The key to the property */%0A%09private final String%09%09propertyKey;%0A%09%0A%09/**%0A%09 * Constructor #1.%3Cbr /%3E%0A%09 * @param propertyKey%0A%09 *        the key of the property.%0A%09 */%0A%09public GUIElement (final String propertyKey) %7B%0A%09%09super();%0A%09%09this.propertyKey = propertyKey;%0A%09%7D%0A%09%0A%09@Override%0A%09public String toString () %7B%0A%09%09return propertyKey;%0A%09%7D%0A%09%0A%09/**%0A%09 * The text of the element.%0A%09 * @return the translation for the main text of the GUI element.%0A%09 */%0A%09public String getText () %7B%0A%09%09return toString();%0A%09%7D%0A%09%0A%09/**%0A%09 * The shortcut to use for quick call to the element.%0A%09 * @return the shortcut to use.%0A%09 */%0A%09public String getShortcut () %7B%0A%09%09return propertyKey + Translator.HIERARCHY_SEPARATOR + SHORTCUT;%0A%09%7D%0A%09%0A%09/**%0A%09 * The tool tip to show on the element.%0A%09 * @return the tool tip to show on the element.%0A%09 */%0A%09public String getToolTip () %7B%0A%09%09return propertyKey + Translator.HIERARCHY_SEPARATOR + TOOL_TIP;%0A%09%7D%0A%7D%0A

Add the class for GUIElement keys translations