| javax.swing.text.JTextComponent org.netbeans.editor.MultiKeyBinding
MultiKeyBinding | public class MultiKeyBinding extends JTextComponent.KeyBinding implements java.io.Externalizable(Code) | | Extension of JTextComponent.KeyBinding to hold several successive keystrokes.
The binding containing null key(s) is assumed to assign the default action.
author: Miloslav Metelka version: 1.00 |
keys | public KeyStroke[] keys(Code) | | Successive keystroke. They must be pressed in the order they are stored
in the array in order to invoke the associated action.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
MultiKeyBinding | public MultiKeyBinding()(Code) | | Constructor for serialization
|
MultiKeyBinding | public MultiKeyBinding(KeyStroke[] keys, String actionName)(Code) | | Constructor for assigning keystroke sequence to action
Parameters: keys - successive keystroke that must be pressed in order to invokeaction Parameters: actionName - action that will be invoked. Action is resolved from name bycalling kit.getActions() after the kit is constructed |
updateKeyBindings | public static void updateKeyBindings(JTextComponent.KeyBinding[] target, JTextComponent.KeyBinding[] changes)(Code) | | Add or replace key bindings array by changes given in the second bindings
array
Parameters: target - target list of bindings Parameters: changes - list of changes to apply: binding containing the non-nullkeystroke(s) and non-null action will add the binding orreplace the old binding with the same keystroke(s) in thetarget array, binding of the non-null keystroke(s) and nullaction removes the binding for that keystroke from the targetarray (if it existed) binding containing null keystroke andnon-null action adds or replaces default action |
Methods inherited from javax.swing.text.JTextComponent | public void addCaretListener(CaretListener listener)(Code)(Java Doc) public void addInputMethodListener(InputMethodListener l)(Code)(Java Doc) public static Keymap addKeymap(String nm, Keymap parent)(Code)(Java Doc) public void copy()(Code)(Java Doc) public void cut()(Code)(Java Doc) protected void fireCaretUpdate(CaretEvent e)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public Action[] getActions()(Code)(Java Doc) public Caret getCaret()(Code)(Java Doc) public Color getCaretColor()(Code)(Java Doc) public CaretListener[] getCaretListeners()(Code)(Java Doc) public int getCaretPosition()(Code)(Java Doc) public Color getDisabledTextColor()(Code)(Java Doc) public Document getDocument()(Code)(Java Doc) public boolean getDragEnabled()(Code)(Java Doc) final public DropLocation getDropLocation()(Code)(Java Doc) final public DropMode getDropMode()(Code)(Java Doc) public char getFocusAccelerator()(Code)(Java Doc) public Highlighter getHighlighter()(Code)(Java Doc) public InputMethodRequests getInputMethodRequests()(Code)(Java Doc) public Keymap getKeymap()(Code)(Java Doc) public static Keymap getKeymap(String nm)(Code)(Java Doc) public Insets getMargin()(Code)(Java Doc) public NavigationFilter getNavigationFilter()(Code)(Java Doc) public Dimension getPreferredScrollableViewportSize()(Code)(Java Doc) public Printable getPrintable(MessageFormat headerFormat, MessageFormat footerFormat)(Code)(Java Doc) public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc) public boolean getScrollableTracksViewportHeight()(Code)(Java Doc) public boolean getScrollableTracksViewportWidth()(Code)(Java Doc) public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc) public String getSelectedText()(Code)(Java Doc) public Color getSelectedTextColor()(Code)(Java Doc) public Color getSelectionColor()(Code)(Java Doc) public int getSelectionEnd()(Code)(Java Doc) public int getSelectionStart()(Code)(Java Doc) public String getText(int offs, int len) throws BadLocationException(Code)(Java Doc) public String getText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public TextUI getUI()(Code)(Java Doc) public boolean isEditable()(Code)(Java Doc) public static void loadKeymap(Keymap map, KeyBinding[] bindings, Action[] actions)(Code)(Java Doc) public Rectangle modelToView(int pos) throws BadLocationException(Code)(Java Doc) public void moveCaretPosition(int pos)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void paste()(Code)(Java Doc) public boolean print() throws PrinterException(Code)(Java Doc) public boolean print(MessageFormat headerFormat, MessageFormat footerFormat) throws PrinterException(Code)(Java Doc) public boolean print(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive) throws PrinterException(Code)(Java Doc) protected void processInputMethodEvent(InputMethodEvent e)(Code)(Java Doc) public void read(Reader in, Object desc) throws IOException(Code)(Java Doc) public void removeCaretListener(CaretListener listener)(Code)(Java Doc) public static Keymap removeKeymap(String nm)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void replaceSelection(String content)(Code)(Java Doc) public void select(int selectionStart, int selectionEnd)(Code)(Java Doc) public void selectAll()(Code)(Java Doc) public void setCaret(Caret c)(Code)(Java Doc) public void setCaretColor(Color c)(Code)(Java Doc) public void setCaretPosition(int position)(Code)(Java Doc) public void setComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public void setDisabledTextColor(Color c)(Code)(Java Doc) public void setDocument(Document doc)(Code)(Java Doc) public void setDragEnabled(boolean b)(Code)(Java Doc) final public void setDropMode(DropMode dropMode)(Code)(Java Doc) public void setEditable(boolean b)(Code)(Java Doc) public void setFocusAccelerator(char aKey)(Code)(Java Doc) public void setHighlighter(Highlighter h)(Code)(Java Doc) public void setKeymap(Keymap map)(Code)(Java Doc) public void setMargin(Insets m)(Code)(Java Doc) public void setNavigationFilter(NavigationFilter filter)(Code)(Java Doc) public void setSelectedTextColor(Color c)(Code)(Java Doc) public void setSelectionColor(Color c)(Code)(Java Doc) public void setSelectionEnd(int selectionEnd)(Code)(Java Doc) public void setSelectionStart(int selectionStart)(Code)(Java Doc) public void setText(String t)(Code)(Java Doc) public void setUI(TextUI ui)(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public int viewToModel(Point pt)(Code)(Java Doc) public void write(Writer out) throws IOException(Code)(Java Doc)
|
|
|