javax.swing.text

Interface Keymap

public interface Keymap

Method Summary
voidaddActionForKeyStroke(KeyStroke key, Action a)
ActiongetAction(KeyStroke key)
Action[]getBoundActions()
KeyStroke[]getBoundKeyStrokes()
ActiongetDefaultAction()
KeyStroke[]getKeyStrokesForAction(Action a)
StringgetName()
KeymapgetResolveParent()
booleanisLocallyDefined(KeyStroke key)
voidremoveBindings()
voidremoveKeyStrokeBinding(KeyStroke keys)
voidsetDefaultAction(Action a)
voidsetResolveParent(Keymap parent)

Method Detail

addActionForKeyStroke

public void addActionForKeyStroke(KeyStroke key, Action a)

getAction

public Action getAction(KeyStroke key)

getBoundActions

public Action[] getBoundActions()

getBoundKeyStrokes

public KeyStroke[] getBoundKeyStrokes()

getDefaultAction

public Action getDefaultAction()

getKeyStrokesForAction

public KeyStroke[] getKeyStrokesForAction(Action a)

getName

public String getName()

getResolveParent

public Keymap getResolveParent()

isLocallyDefined

public boolean isLocallyDefined(KeyStroke key)

removeBindings

public void removeBindings()

removeKeyStrokeBinding

public void removeKeyStrokeBinding(KeyStroke keys)

setDefaultAction

public void setDefaultAction(Action a)

setResolveParent

public void setResolveParent(Keymap parent)