QJCC homepage

biz.chitec.quarterback.swing
Class PropertiesEditorXML.HelpTextPresenter

java.lang.Object
  extended bybiz.chitec.quarterback.swing.PropertiesEditorXML.HelpTextPresenter
All Implemented Interfaces:
java.util.EventListener, java.awt.event.FocusListener
Enclosing class:
PropertiesEditorXML

private class PropertiesEditorXML.HelpTextPresenter
extends java.lang.Object
implements java.awt.event.FocusListener

Clever focus listener for elements to show appropriate help. Using this class prevents us from instantiating a huge number of listener instances. The class is instanciated only once.


Field Summary
private  java.util.Map elementstore
           
private  java.lang.String lastkey
           
private  java.util.Map titlestore
           
 
Constructor Summary
PropertiesEditorXML.HelpTextPresenter()
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 void registerTo(java.awt.Component c, java.lang.String rbkey)
           
 void setElementTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementstore

private java.util.Map elementstore

titlestore

private java.util.Map titlestore

lastkey

private java.lang.String lastkey
Constructor Detail

PropertiesEditorXML.HelpTextPresenter

public PropertiesEditorXML.HelpTextPresenter()
Method Detail

registerTo

public void registerTo(java.awt.Component c,
                       java.lang.String rbkey)

setElementTitle

public void setElementTitle(java.lang.String title)

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

QJCC homepage