© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.binding
Class ConstraintTextFieldBinding

java.lang.Object
  extended by org.ximtec.igesture.tool.binding.DataBinding<JTextField>
      extended by org.ximtec.igesture.tool.binding.ConstraintTextFieldBinding
All Implemented Interfaces:
FocusListener, PropertyChangeListener, EventListener

public class ConstraintTextFieldBinding
extends DataBinding<JTextField>

Author:
Bjorn Puype, bpuype@gmail.com

Constructor Summary
ConstraintTextFieldBinding(JTextField textField, Constraint constraint, String property)
           
 
Method Summary
 JTextField getComponent()
          Returns the JComponent which is involved in the binding process.
protected  String getValue()
          Read a value from the data object
protected  void setValue(Object value)
          Set a value in the dataobject
protected  void updateModel()
          This method provides functionality to update the model.
protected  void updateView()
          This method provides functionality to update the view in case of model changes.
 
Methods inherited from class org.ximtec.igesture.tool.binding.DataBinding
focusGained, focusLost, getObject, getProperty, propertyChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintTextFieldBinding

public ConstraintTextFieldBinding(JTextField textField,
                                  Constraint constraint,
                                  String property)
Parameters:
dataObject -
property -
Method Detail

getComponent

public JTextField getComponent()
Description copied from class: DataBinding
Returns the JComponent which is involved in the binding process.

Specified by:
getComponent in class DataBinding<JTextField>
Returns:

updateModel

protected void updateModel()
Description copied from class: DataBinding
This method provides functionality to update the model.

Specified by:
updateModel in class DataBinding<JTextField>

updateView

protected void updateView()
Description copied from class: DataBinding
This method provides functionality to update the view in case of model changes. This method is invoked on a propertyChange event.

Specified by:
updateView in class DataBinding<JTextField>

getValue

protected String getValue()
Description copied from class: DataBinding
Read a value from the data object

Overrides:
getValue in class DataBinding<JTextField>
Returns:

setValue

protected void setValue(Object value)
Description copied from class: DataBinding
Set a value in the dataobject

Overrides:
setValue in class DataBinding<JTextField>

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.