Constructor and Description |
---|
BeanListInput(Class<B> beanType)
Initiate.
|
BeanListInput(Class<B> beanType,
boolean isIncludeButtons)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addBean(B bean)
Adds a bean.
|
void |
addProperty(String propertyName,
int weight)
Adds property to be populated on the bean.
|
void |
addProperty(String propertyName,
int weight,
String label)
Adds property to be populated on the bean.
|
org.eclipse.swt.widgets.Control |
buildControl(InputContext context)
Builds the
Control . |
void |
clearBeans()
Clears all the beans.
|
List<B> |
getValue(org.eclipse.swt.widgets.Control control,
InputContext context)
Obtains the value from the input
Control . |
void |
removeBean(B bean)
Removes a bean.
|
public BeanListInput(Class<B> beanType)
beanType
- Type of the bean.public void addProperty(String propertyName, int weight)
Adds property to be populated on the bean.
This may NOT be called after buildControl(InputContext)
.
propertyName
- Name of the property on the bean.weight
- Weight for the width.public void addProperty(String propertyName, int weight, String label)
Adds property to be populated on the bean.
This may NOT be called after buildControl(InputContext)
.
propertyName
- Name of the property on the bean.weight
- Weight for the width.label
- Label for column header of property.public void addBean(B bean)
bean
- Bean.public void removeBean(B bean)
bean
- Bean.public void clearBeans()
public org.eclipse.swt.widgets.Control buildControl(InputContext context)
Input
Control
.buildControl
in interface Input<org.eclipse.swt.widgets.Control>
context
- InputContext
.Control
to input the value.public List<B> getValue(org.eclipse.swt.widgets.Control control, InputContext context)
Input
Obtains the value from the input Control
.
The input Control
will be the one created by
Input.buildControl(InputContext)
.
getValue
in interface Input<org.eclipse.swt.widgets.Control>
control
- Control
.context
- InputContext
.Copyright © 2005–2016. All rights reserved.