git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyboard accelerators
[fanfix.git]
/
src
/
jexer
/
bits
/
MnemonicString.java
diff --git
a/src/jexer/bits/MnemonicString.java
b/src/jexer/bits/MnemonicString.java
index 0537bbedfaa2991894ba4d4f7a034d8f1e305dd3..d61963c0740718447856f4c80caeb1ecd7253c4b 100644
(file)
--- a/
src/jexer/bits/MnemonicString.java
+++ b/
src/jexer/bits/MnemonicString.java
@@
-36,23
+36,50
@@
package jexer.bits;
* characters, e.g. "&File && Stuff" would be "File & Stuff" with the first
* 'F' highlighted.
*/
* 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.
*/
private char shortcut;
/**
* 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;
/**
* 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;
/**
* The raw (uncolored) string.
*/
private String rawLabel;
+ /**
+ * Get the raw (uncolored) string.
+ *
+ * @return the raw (uncolored) string
+ */
+ public String getRawLabel() {
+ return rawLabel;
+ }
+
/**
* Public constructor.
*
/**
* Public constructor.
*