Class ReturnKeyRemapper

Remaps the enter-key. For any JComponent it makes the enter-key focus on the next registered JComponent. For any JButton it calls its Action in addition.

Synopsis

 public final class ReturnKeyRemapper {
  public ReturnKeyRemapper();
  public void remap(JComponent component);
}

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Inheritance Path. java.lang.Object-> org.kaiwitte.workbench.ui.controller.ReturnKeyRemapper

ReturnKeyRemapper()

Synopsis: public ReturnKeyRemapper();

Creates a new instance.

remap(JComponent)

Synopsis: public void remap(javax.swing.JComponent component);

Parameters

component

the component

Exceptions

NullPointerException

iff component == null

Remaps the enter-key for component. Pressing enter on it results in the next component (registered with the following call of this method) to be focused if there is such a component.