© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.binding
Class LabelBinding

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

public class LabelBinding
extends DataBinding<JLabel>


Constructor Summary
LabelBinding(JLabel textField, DataObject obj, String property)
           
LabelBinding(JLabel textField, DataObject obj, String property, String prefix)
           
 
Method Summary
 JLabel getComponent()
          Returns the JComponent which is involved in the binding process.
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, getValue, propertyChange, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelBinding

public LabelBinding(JLabel textField,
                    DataObject obj,
                    String property,
                    String prefix)

LabelBinding

public LabelBinding(JLabel textField,
                    DataObject obj,
                    String property)
Method Detail

getComponent

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

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

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<JLabel>

updateModel

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

Specified by:
updateModel in class DataBinding<JLabel>

© 2006-2007 ETH Zurich

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