|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.dialog.input.impl.BeanListInput<B>
public class BeanListInput<B>
Table to create and populate a list of beans.
| Constructor Summary | |
|---|---|
BeanListInput(Class<B> beanType)
Initiate. |
|
BeanListInput(Class<B> beanType,
boolean isIncludeButtons)
Initiate. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanListInput(Class<B> beanType)
beanType - Type of the bean.
public BeanListInput(Class<B> beanType,
boolean isIncludeButtons)
beanType - Type of the bean.isIncludeButtons - Indicates if should include the buttons.| Method Detail |
|---|
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)
InputControl.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||