|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.kawa.util.RangeTable gnu.jemacs.buffer.EKeymap
public class EKeymap
Field Summary | |
---|---|
static int |
ALT_MASK
|
static int |
CTRL_MASK
|
static EKeymap[] |
empty
|
static EKeymap |
globalKeymap
The Emacs global map. |
static int |
META_MASK
|
static int |
metaKey
The magic key that indicates a (Emacs) meta prefix. |
static EKeymap |
metaKeymap
The Emacs global escape (meta) map. |
static int |
PRESSED
|
static int |
RELEASED
|
static int |
SHIFT_MASK
|
Constructor Summary | |
---|---|
EKeymap()
|
|
EKeymap(java.lang.String name)
|
Method Summary | |
---|---|
static int |
asKeyStroke(char ch,
int mods)
|
static int |
asKeyStroke(java.lang.Object key)
|
void |
defineKey(int key,
java.lang.Object binding)
|
void |
defineKey(java.lang.Object keySpec,
java.lang.Object binding)
|
EKeymap |
definePrefix(int key)
Get or create keymap associate with a prefix key in a given keymap. |
protected java.lang.Object |
get(int key,
boolean acceptDefaults)
|
java.lang.Object |
get(int key,
int modifiers,
boolean acceptDefaults)
|
java.lang.Object |
getDefaultBinding()
|
static int |
getKeyForName(java.lang.String name)
Map an Emacs key name to one of the KeyEVent VK_XXX codes. |
static int |
getModifiers(int code)
|
java.lang.String |
getName()
|
EKeymap |
getParent()
|
EKeymap[] |
getParents()
|
java.lang.Object |
getSymbol()
|
static boolean |
ignorable(int key)
True for a KeyStroke if the default action should be to ignore it. |
java.lang.Object |
lookupKey(int[] prefixKeys,
int nPrefix,
int key,
boolean acceptDefaults)
|
java.lang.Object |
lookupKey(Sequence keys,
boolean acceptDefaults)
|
void |
setAction(int key,
java.lang.Object command)
|
void |
setDefaultBinding(java.lang.Object value)
|
void |
setName(java.lang.String name)
|
void |
setParent(EKeymap parent)
|
void |
setParents(EKeymap[] parents)
|
static java.lang.String |
show(int binary)
|
static int |
stripMeta(int key)
|
java.lang.String |
toString()
|
static java.lang.String |
toString(int code)
|
Methods inherited from class gnu.kawa.util.RangeTable |
---|
clone, copy, lookup, remove, remove, set, set |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EKeymap[] empty
public static int PRESSED
public static int RELEASED
public static final int metaKey
public static EKeymap globalKeymap
public static EKeymap metaKeymap
public static final int CTRL_MASK
public static final int SHIFT_MASK
public static final int META_MASK
public static final int ALT_MASK
Constructor Detail |
---|
public EKeymap(java.lang.String name)
public EKeymap()
Method Detail |
---|
public java.lang.String getName()
getName
in interface Named
public java.lang.Object getSymbol()
getSymbol
in interface Named
public void setName(java.lang.String name)
setName
in interface Named
public final java.lang.Object getDefaultBinding()
public void setDefaultBinding(java.lang.Object value)
public static int getModifiers(int code)
public EKeymap[] getParents()
public void setParents(EKeymap[] parents)
public void setParent(EKeymap parent)
public EKeymap getParent()
public void setAction(int key, java.lang.Object command)
public java.lang.Object get(int key, int modifiers, boolean acceptDefaults)
protected java.lang.Object get(int key, boolean acceptDefaults)
public java.lang.String toString()
toString
in class java.lang.Object
public EKeymap definePrefix(int key)
public void defineKey(java.lang.Object keySpec, java.lang.Object binding)
public void defineKey(int key, java.lang.Object binding)
public static int asKeyStroke(char ch, int mods)
public static int getKeyForName(java.lang.String name)
public static int asKeyStroke(java.lang.Object key)
public static int stripMeta(int key)
public static boolean ignorable(int key)
public static java.lang.String toString(int code)
public java.lang.Object lookupKey(Sequence keys, boolean acceptDefaults)
public java.lang.Object lookupKey(int[] prefixKeys, int nPrefix, int key, boolean acceptDefaults)
public static java.lang.String show(int binary)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |