|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.dialog.input.PropertyInputHandler
public class PropertyInputHandler
Handler for the Input that populates a property on a bean.
| Constructor Summary | |
|---|---|
PropertyInputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
String propertyName,
Object bean,
ValueTranslatorRegistry valueTranslatorRegistry,
ValueTranslator translator)
Initialise. |
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Control |
getControl()
Obtains the Control. |
boolean |
populatePropertyOnBean()
Populates the value on the property of the bean. |
void |
setInputListener(InputListener listener)
Specifies the InputListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyInputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
String propertyName,
Object bean,
ValueTranslatorRegistry valueTranslatorRegistry,
ValueTranslator translator)
parent - Parent Composite.input - Input.propertyName - Name of the property.bean - Bean to be populated.valueTranslatorRegistry - ValueTranslatorRegistry.translator - ValueTranslator to use or null to source
from ValueTranslatorRegistry.| Method Detail |
|---|
public org.eclipse.swt.widgets.Control getControl()
Control.
Control.public void setInputListener(InputListener listener)
InputListener.
listener - InputListener.
public boolean populatePropertyOnBean()
throws InvalidValueException
true if non-null value populated (or if
String that is not empty).
InvalidValueException - If invalid value or failure populating the property value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||