jApp
Class JTextFieldConnector

java.lang.Object
  extended by jApp.Connector
      extended by jApp.JTextFieldConnector
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.util.EventListener, javax.swing.event.ChangeListener

public class JTextFieldConnector
extends Connector
implements javax.swing.event.ChangeListener, java.awt.event.FocusListener, java.awt.event.ActionListener


Field Summary
 
Fields inherited from class jApp.Connector
m_Variable
 
Constructor Summary
JTextFieldConnector(javax.swing.JTextField f, java.text.Format frmnt, ValueInterface variable, Unit u)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void connect()
           
protected  void disconnect()
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 void setLiveUpdate(boolean setit)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
static void test()
           
 boolean updateVariable()
           
 
Methods inherited from class jApp.Connector
addChangeListener, componentHidden, componentMoved, componentResized, componentShown, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextFieldConnector

public JTextFieldConnector(javax.swing.JTextField f,
                           java.text.Format frmnt,
                           ValueInterface variable,
                           Unit u)
Method Detail

setLiveUpdate

public void setLiveUpdate(boolean setit)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Overrides:
stateChanged in class Connector

updateVariable

public boolean updateVariable()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

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

connect

protected void connect()
Overrides:
connect in class Connector

disconnect

protected void disconnect()
Overrides:
disconnect in class Connector

test

public static void test()