de.uni_paderborn.fujaba.fsa.update
Class TextComponentUpdater

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.update.AbstractUpdater
      extended byde.uni_paderborn.fujaba.fsa.update.LogicToFsaUpdater
          extended byde.uni_paderborn.fujaba.fsa.update.LogicAndFsaUpdater
              extended byde.uni_paderborn.fujaba.fsa.update.TextComponentUpdater
All Implemented Interfaces:
java.util.EventListener, java.awt.event.FocusListener, java.beans.PropertyChangeListener, Translator

public class TextComponentUpdater
extends LogicAndFsaUpdater
implements java.awt.event.FocusListener, java.beans.PropertyChangeListener

Update between a logic property and the text/document of a TextComponent

Version:
$Revision: 1.15 $
Author:
$Author: lowende $

Constructor Summary
TextComponentUpdater()
          Constructor for class TextComponentUpdater
 
Method Summary
protected  void addListener()
          Access method for an one to n association.
 void focusGained(java.awt.event.FocusEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void focusLost(java.awt.event.FocusEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.Object getLogicValue()
          Get the logicValue attribute of the TextComponentUpdater object
 void initialize()
          No comment provided by developer, please add a comment to improve documentation.
 boolean isFocused()
          Get the focused attribute of the TextComponentUpdater object
 void propertyChange(java.beans.PropertyChangeEvent e)
          Listens for changes to the Document and updates the contentsChanged property
protected  void removeListener()
          No comment provided by developer, please add a comment to improve documentation.
 boolean setFsaAttrName(java.lang.String name)
          Sets the fsaAttrName attribute of the TextComponentUpdater object
 void setLogicValue(java.lang.Object value)
          Sets the logicValue attribute of the TextComponentUpdater object
 java.lang.Object translateLogicToFsa(java.lang.Object value)
          translate whatever logic value to String
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.update.LogicAndFsaUpdater
getFsaListener, toString
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.update.LogicToFsaUpdater
getLogicListener, setLogicListener
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.update.AbstractUpdater
getFsaAttrName, getFsaObject, getLogicAttrName, getLogicObject, getTranslator, isListenerActive, setFsaObject, setListenerActive, setLogicAttrName, setLogicObject, setTranslator, translateFsaToLogic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextComponentUpdater

public TextComponentUpdater()
Constructor for class TextComponentUpdater

Method Detail

translateLogicToFsa

public java.lang.Object translateLogicToFsa(java.lang.Object value)
translate whatever logic value to String

Specified by:
translateLogicToFsa in interface Translator
Overrides:
translateLogicToFsa in class AbstractUpdater
Parameters:
value - No description provided
Returns:
No description provided

setFsaAttrName

public boolean setFsaAttrName(java.lang.String name)
Sets the fsaAttrName attribute of the TextComponentUpdater object

Overrides:
setFsaAttrName in class AbstractUpdater
Parameters:
name - The new fsaAttrName value
Returns:
No description provided

addListener

protected void addListener()
Access method for an one to n association.

Overrides:
addListener in class LogicAndFsaUpdater

removeListener

protected void removeListener()
No comment provided by developer, please add a comment to improve documentation.

Overrides:
removeListener in class LogicAndFsaUpdater

initialize

public void initialize()
No comment provided by developer, please add a comment to improve documentation.

Overrides:
initialize in class LogicToFsaUpdater

setLogicValue

public void setLogicValue(java.lang.Object value)
Sets the logicValue attribute of the TextComponentUpdater object

Parameters:
value - The new logicValue value

getLogicValue

public java.lang.Object getLogicValue()
Get the logicValue attribute of the TextComponentUpdater object

Returns:
The logicValue value

isFocused

public boolean isFocused()
Get the focused attribute of the TextComponentUpdater object

Returns:
The focused value

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Listens for changes to the Document and updates the contentsChanged property

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
e - No description provided

focusGained

public void focusGained(java.awt.event.FocusEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
e - No description provided

focusLost

public void focusLost(java.awt.event.FocusEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - No description provided