javax.swing.text
Class JTextComponent.KeyBinding

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.JTextComponent.KeyBinding
Enclosing class:
JTextComponent sample code for javax.swing.text.JTextComponent definition code for javax.swing.text.JTextComponent

public static class JTextComponent.KeyBinding
extends Object sample code for java.lang.Object definition code for java.lang.Object

Binding record for creating key bindings.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .


Field Summary
 String sample code for java.lang.String definition code for java.lang.String actionName sample code for javax.swing.text.JTextComponent.KeyBinding.actionName definition code for javax.swing.text.JTextComponent.KeyBinding.actionName
          The name of the action for the key.
 KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke key sample code for javax.swing.text.JTextComponent.KeyBinding.key definition code for javax.swing.text.JTextComponent.KeyBinding.key
          The key.
 
Constructor Summary
JTextComponent.KeyBinding sample code for javax.swing.text.JTextComponent.KeyBinding.JTextComponent.KeyBinding(javax.swing.KeyStroke, java.lang.String) definition code for javax.swing.text.JTextComponent.KeyBinding.JTextComponent.KeyBinding(javax.swing.KeyStroke, java.lang.String) (KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  key, String sample code for java.lang.String definition code for java.lang.String  actionName)
          Creates a new key binding.
 
Method Summary
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

key sample code for javax.swing.text.JTextComponent.KeyBinding.key

public KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  key
The key.


actionName sample code for javax.swing.text.JTextComponent.KeyBinding.actionName

public String sample code for java.lang.String definition code for java.lang.String  actionName
The name of the action for the key.

Constructor Detail

JTextComponent.KeyBinding sample code for javax.swing.text.JTextComponent.KeyBinding(javax.swing.KeyStroke, java.lang.String) definition code for javax.swing.text.JTextComponent.KeyBinding(javax.swing.KeyStroke, java.lang.String)

public JTextComponent.KeyBinding(KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  key,
                                 String sample code for java.lang.String definition code for java.lang.String  actionName)
Creates a new key binding.

Parameters:
key - the key
actionName - the name of the action for the key