Constructor and Description |
---|
PropertyInputHandler(org.eclipse.swt.widgets.Composite parent,
Input<? extends org.eclipse.swt.widgets.Control> input,
String propertyName,
Object bean,
ValueTranslatorRegistry valueTranslatorRegistry,
ValueTranslator translator)
Initialise.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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
.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.Copyright © 2005–2016. All rights reserved.