|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kleopatra.view.binding.BindingMetaData
Dump for MetaData required to bind a property to a widget.
Typically the MetaData is filled by client code (f.i. the BeanBinding), given to a BindingMap to find an appropriate BindingHandler which in turn is responsible to actually wire the the property to a component.
It's up to the BindingMap to decide which handlers to choose. It may use the XXMetaData.class as well as the metaData properties componentClass or targetClass.
All setters are meant to be used during the filling phase only
NOTE: as all binding api this still has a high probability of change.
Field Summary | |
protected boolean |
commitOnFocusLost
|
protected java.lang.Class |
componentClass
|
protected java.lang.String |
componentName
|
protected Trigger |
focusLostTrigger
|
protected java.lang.String |
propertyName
|
protected java.lang.Class |
targetClass
|
Constructor Summary | |
BindingMetaData(java.lang.String componentName)
PRE: componentName ! |
|
BindingMetaData(java.lang.String componentName,
java.lang.Class componentClass)
|
|
BindingMetaData(java.lang.String componentName,
java.lang.String propertyName)
|
|
BindingMetaData(java.lang.String componentName,
java.lang.String propertyName,
java.lang.Class componentClass)
|
Method Summary | |
java.lang.Class |
getComponentClass()
returns the Class of the binding component. |
java.lang.String |
getComponentName()
returns the name of the component to bind to. |
Trigger |
getFocusLostTrigger()
|
java.lang.String |
getPropertyName()
returns the name of the property to be bound. |
java.lang.Class |
getTargetClass()
returns the class of the bound property. |
protected void |
initDefaultCommit()
hook for subclasses to control default commit behaviour. |
boolean |
isCommitOnFocusLost()
returns true if committing the component value to the property should be delayed until a focusLost event. |
void |
setCommitOnFocusLost(boolean commitOnFocusLost)
|
void |
setComponentClass(java.lang.Class componentClass)
|
void |
setComponentName(java.lang.String componentName)
|
void |
setFocusLostTrigger(Trigger focusLostTrigger)
sets the trigger to use on commitOnFocusLost. |
void |
setPropertyName(java.lang.String propertyName)
set the name of the property to be bound. |
void |
setTargetClass(java.lang.Class targetClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String componentName
protected java.lang.String propertyName
protected java.lang.Class targetClass
protected java.lang.Class componentClass
protected boolean commitOnFocusLost
protected Trigger focusLostTrigger
Constructor Detail |
public BindingMetaData(java.lang.String componentName)
componentName
- public BindingMetaData(java.lang.String componentName, java.lang.String propertyName)
public BindingMetaData(java.lang.String componentName, java.lang.Class componentClass)
public BindingMetaData(java.lang.String componentName, java.lang.String propertyName, java.lang.Class componentClass)
Method Detail |
public java.lang.String getComponentName()
public void setComponentName(java.lang.String componentName)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName
- - can be null which implies
propertyName == componentName.public java.lang.Class getTargetClass()
public void setTargetClass(java.lang.Class targetClass)
public java.lang.Class getComponentClass()
public void setComponentClass(java.lang.Class componentClass)
public Trigger getFocusLostTrigger()
public void setFocusLostTrigger(Trigger focusLostTrigger)
side-effect: sets the commitOnFocusLost-property to trigger != null.
focusLostTrigger
- public boolean isCommitOnFocusLost()
defaults to false.
public void setCommitOnFocusLost(boolean commitOnFocusLost)
protected void initDefaultCommit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |