public class KeyMap<T> extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_AMBIGUOUS_TIMEOUT |
static int |
KEYMAP_LENGTH |
static Comparator<String> |
KEYSEQ_COMPARATOR |
Constructor and Description |
---|
KeyMap() |
Modifier and Type | Method and Description |
---|---|
static String |
alt(char c) |
static String |
alt(String c) |
void |
bind(T function,
CharSequence... keySeqs) |
void |
bind(T function,
CharSequence keySeq) |
void |
bind(T function,
Iterable<? extends CharSequence> keySeqs) |
void |
bindIfNotBound(T function,
CharSequence keySeq) |
static String |
ctrl(char key) |
static String |
del() |
static String |
display(String key) |
static String |
esc() |
long |
getAmbiguousTimeout() |
T |
getAnotherKey() |
T |
getBound(CharSequence keySeq) |
T |
getBound(CharSequence keySeq,
int[] remaining) |
Map<String,T> |
getBoundKeys() |
T |
getNomatch() |
T |
getUnicode() |
static String |
key(Terminal terminal,
InfoCmp.Capability capability) |
static Collection<String> |
range(String range) |
void |
setAmbiguousTimeout(long ambiguousTimeout) |
void |
setNomatch(T nomatch) |
void |
setUnicode(T unicode) |
static String |
translate(String str) |
void |
unbind(CharSequence... keySeqs) |
void |
unbind(CharSequence keySeq) |
public static final int KEYMAP_LENGTH
public static final long DEFAULT_AMBIGUOUS_TIMEOUT
public static final Comparator<String> KEYSEQ_COMPARATOR
public static Collection<String> range(String range)
public static String esc()
public static String alt(char c)
public static String del()
public static String ctrl(char key)
public static String key(Terminal terminal, InfoCmp.Capability capability)
public T getUnicode()
public void setUnicode(T unicode)
public T getNomatch()
public void setNomatch(T nomatch)
public long getAmbiguousTimeout()
public void setAmbiguousTimeout(long ambiguousTimeout)
public T getAnotherKey()
public T getBound(CharSequence keySeq, int[] remaining)
public T getBound(CharSequence keySeq)
public void bindIfNotBound(T function, CharSequence keySeq)
public void bind(T function, CharSequence... keySeqs)
public void bind(T function, Iterable<? extends CharSequence> keySeqs)
public void bind(T function, CharSequence keySeq)
public void unbind(CharSequence... keySeqs)
public void unbind(CharSequence keySeq)
Copyright © 2017. All rights reserved.