|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.tool.binding.DataBinding<T>
public abstract class DataBinding<T extends JComponent>
| Constructor Summary | |
|---|---|
DataBinding(DataObject dataObject,
String property)
Constructor |
|
| Method Summary | |
|---|---|
void |
focusGained(FocusEvent arg0)
|
void |
focusLost(FocusEvent arg0)
|
abstract T |
getComponent()
Returns the JComponent which is involved in the binding process. |
Object |
getObject()
Returns the data object |
String |
getProperty()
Returns the property name |
protected String |
getValue()
Read a value from the data object |
void |
propertyChange(PropertyChangeEvent evt)
|
protected void |
setValue(Object object)
Set a value in the dataobject |
protected abstract void |
updateModel()
This method provides functionality to update the model. |
protected abstract void |
updateView()
This method provides functionality to update the view in case of model changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataBinding(DataObject dataObject,
String property)
dataObject - the data objectproperty - the name of the propertykey - the key used by the localization handler (can be null)| Method Detail |
|---|
protected abstract void updateView()
protected abstract void updateModel()
public abstract T getComponent()
protected void setValue(Object object)
object -
PropertyVetoExceptionprotected String getValue()
public Object getObject()
public String getProperty()
public void focusGained(FocusEvent arg0)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent arg0)
focusLost in interface FocusListenerpublic final void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListener
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||