*/
public final class MnemonicString {
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Keyboard shortcut to activate this item.
*/
private char shortcut;
- /**
- * Get the keyboard shortcut character.
- *
- * @return the highlighted character
- */
- public char getShortcut() {
- return shortcut;
- }
-
/**
* Location of the highlighted character.
*/
private int shortcutIdx = -1;
- /**
- * Get location of the highlighted character.
- *
- * @return location of the highlighted character
- */
- public int getShortcutIdx() {
- return shortcutIdx;
- }
-
/**
* The raw (uncolored) string.
*/
private String rawLabel;
- /**
- * Get the raw (uncolored) string.
- *
- * @return the raw (uncolored) string
- */
- public String getRawLabel() {
- return rawLabel;
- }
+ // ------------------------------------------------------------------------
+ // Constructors -----------------------------------------------------------
+ // ------------------------------------------------------------------------
/**
* Public constructor.
}
this.rawLabel = newLabel;
}
+
+ // ------------------------------------------------------------------------
+ // MnemonicString ---------------------------------------------------------
+ // ------------------------------------------------------------------------
+
+ /**
+ * Get the keyboard shortcut character.
+ *
+ * @return the highlighted character
+ */
+ public char getShortcut() {
+ return shortcut;
+ }
+
+ /**
+ * Get location of the highlighted character.
+ *
+ * @return location of the highlighted character
+ */
+ public int getShortcutIdx() {
+ return shortcutIdx;
+ }
+
+ /**
+ * Get the raw (uncolored) string.
+ *
+ * @return the raw (uncolored) string
+ */
+ public String getRawLabel() {
+ return rawLabel;
+ }
+
}