X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FMnemonicString.java;h=f97e1e992b1dfa02f81472e34bf7fe4c407f03fd;hb=48e27807150e00bc9a92844382ebc8cedf1d265f;hp=0537bbedfaa2991894ba4d4f7a034d8f1e305dd3;hpb=d4a29741fb714f71fd47c9c6e8ae93b57f015821;p=fanfix.git diff --git a/src/jexer/bits/MnemonicString.java b/src/jexer/bits/MnemonicString.java index 0537bbe..f97e1e9 100644 --- a/src/jexer/bits/MnemonicString.java +++ b/src/jexer/bits/MnemonicString.java @@ -36,7 +36,7 @@ package jexer.bits; * characters, e.g. "&File && Stuff" would be "File & Stuff" with the first * 'F' highlighted. */ -public class MnemonicString { +public final class MnemonicString { /** * Keyboard shortcut to activate this item. @@ -48,11 +48,29 @@ public class MnemonicString { */ 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; + } + /** * Public constructor. *