|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
V - Type of object for the viewpublic abstract class AbstractPropertyFieldDescriptor<V>
Abstract field descriptor for fields based on a property.
| Constructor Summary | |
|---|---|
AbstractPropertyFieldDescriptor()
|
|
| Method Summary | |
|---|---|
Adapter<Object,Object> |
getAdapter()
Returns the adapter used between the model and the field |
protected Object |
getProperty(GUIView<V> view)
Gets the field property from the view. |
String |
getPropertyPath()
Gets the property path. |
void |
setAdapter(Adapter<Object,Object> adapter)
Sets the adapter used between the model and the field |
protected void |
setProperty(GUIView<V> view,
Object value)
Updates the view model according to the property set by this field. |
void |
setPropertyPath(String propertyPath)
Path to the property linked to the field |
protected void |
subscribe(GUIView<V> view,
Object target,
String targetProperty)
Updates a target property each time the field property is updated. |
protected void |
subscribe(GUIView<V> view,
Runnable runnable)
Runs a task each time the field property is updated. |
| Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor |
|---|
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler |
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.field.FieldDescriptor |
|---|
createField |
| Constructor Detail |
|---|
public AbstractPropertyFieldDescriptor()
| Method Detail |
|---|
public String getPropertyPath()
public void setPropertyPath(String propertyPath)
propertyPath - the new property pathpublic Adapter<Object,Object> getAdapter()
public void setAdapter(Adapter<Object,Object> adapter)
adapter - Adapter
protected void setProperty(GUIView<V> view,
Object value)
adapter is used before setting the
property.
view - Hosting viewvalue - New value for the property.GUIView.getViewData()
protected void subscribe(GUIView<V> view,
Object target,
String targetProperty)
view - Hosting viewtarget - Target beantargetProperty - Path to the target property
protected void subscribe(GUIView<V> view,
Runnable runnable)
view - Hosting viewrunnable - Task to run each time the field property is updatedprotected Object getProperty(GUIView<V> view)
view - Hosting view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||