|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kleopatra.view.factory.UITweaks
helper to have a place for tweaking. a bit hacky...
Constructor Summary | |
UITweaks()
|
Method Summary | |
protected void |
bindAction(javax.swing.ActionMap map,
javax.swing.Action action)
|
protected javax.swing.Action |
createNotifyAction(javax.swing.Action delegate)
|
protected void |
fireNotify(javax.swing.JTextField field)
|
protected javax.swing.ActionMap |
getTopLevelMap(javax.swing.ActionMap map,
java.lang.Object key)
|
void |
initTweaks()
installs all known tweaks. |
protected void |
installTextFocusListener()
|
void |
tweakTextFields()
tweaks textFields actionMap for notifyAction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UITweaks()
Method Detail |
public void initTweaks()
public void tweakTextFields()
[No longer: replaces the original with an action that transfers focus to next comp.] installs a focusListener with the keyboardfocusManager that fires the original if the old permanentFocusOwner has been a textfield.
PENDING: does not address the problem with the defaultButton - enter is still eaten
PENDING: do we really want to fire in all cases? JComboBox does so if the editor value had changed
protected void installTextFocusListener()
protected void fireNotify(javax.swing.JTextField field)
protected javax.swing.ActionMap getTopLevelMap(javax.swing.ActionMap map, java.lang.Object key)
protected javax.swing.Action createNotifyAction(javax.swing.Action delegate)
protected void bindAction(javax.swing.ActionMap map, javax.swing.Action action)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |