de.kleopatra.view.factory
Class UITweaks

java.lang.Object
  extended byde.kleopatra.view.factory.UITweaks

public class UITweaks
extends java.lang.Object

helper to have a place for tweaking. a bit hacky...

Version:
$Revision: 1.1.1.1 $ - $Date: 2003/10/14 11:13:47 $
Author:
(C) Jeanette Winzenburg, Berlin

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

UITweaks

public UITweaks()
Method Detail

initTweaks

public void initTweaks()
installs all known tweaks.


tweakTextFields

public void tweakTextFields()
tweaks textFields actionMap for notifyAction.

[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


installTextFocusListener

protected void installTextFocusListener()

fireNotify

protected void fireNotify(javax.swing.JTextField field)

getTopLevelMap

protected javax.swing.ActionMap getTopLevelMap(javax.swing.ActionMap map,
                                               java.lang.Object key)

createNotifyAction

protected javax.swing.Action createNotifyAction(javax.swing.Action delegate)

bindAction

protected void bindAction(javax.swing.ActionMap map,
                          javax.swing.Action action)


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.