public class ListEditorFormItem extends org.jboss.ballroom.client.widgets.forms.FormItem<List<String>> implements ListManagement<String>
| Modifier and Type | Field and Description |
|---|---|
protected String |
addDialogTitle |
protected org.jboss.ballroom.client.widgets.window.DefaultWindow |
addItemDialog |
protected List<String> |
availableChoices |
protected boolean |
limitChoices |
protected ListEditor |
listEditor |
protected NewListItemWizard |
newListItemWizard |
protected List<String> |
value |
| Constructor and Description |
|---|
ListEditorFormItem(String name,
String title,
int rows,
boolean limitChoices)
Create a new ListEditorFormItem.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clearValue() |
void |
closeNewItemDialoge() |
List<String> |
getValue() |
void |
launchNewItemDialoge() |
void |
onCreateItem(String item) |
void |
onDeleteItem(String item) |
void |
setAvailableChoices(List<String> availableChoices)
This is the full list of available choices.
|
void |
setEnabled(boolean isEnabled) |
void |
setValue(List<String> items) |
void |
setValueColumnHeader(String headerLabel) |
boolean |
validate(List<String> value) |
asExpressionValue, asString, compareTo, getErrMessage, getName, getTitle, isErroneous, isExpressionScheme, isExpressionValue, isFiltered, isModified, isRequired, isUndefined, render, resetMetaData, setErrMessage, setErroneous, setExpressionValue, setFiltered, setModified, setRequired, setUndefined, toggleAccessConstraint, toggleExpressionInputprotected ListEditor listEditor
protected org.jboss.ballroom.client.widgets.window.DefaultWindow addItemDialog
protected String addDialogTitle
protected NewListItemWizard newListItemWizard
protected boolean limitChoices
public ListEditorFormItem(String name, String title, int rows, boolean limitChoices)
name - The name of the FormItem.title - The label that will be displayed with the editor.title - The title shown when the Add button is pressed.rows - The max number of rows in the PropertyEditor.limitChoices - If true choices for new items will be limited to values provided
in the setAvailableChoices() method. If false the user may add any String value
to the list.public void setValueColumnHeader(String headerLabel)
public void setAvailableChoices(List<String> availableChoices)
public com.google.gwt.user.client.ui.Widget asWidget()
public void clearValue()
public void setEnabled(boolean isEnabled)
public void closeNewItemDialoge()
closeNewItemDialoge in interface ListManagement<String>public void launchNewItemDialoge()
launchNewItemDialoge in interface ListManagement<String>public void onCreateItem(String item)
onCreateItem in interface ListManagement<String>public void onDeleteItem(String item)
onDeleteItem in interface ListManagement<String>Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.