public class EmbeddedListView extends Object implements ListManagement<String>, com.google.gwt.user.client.ui.IsWidget
| Modifier and Type | Field and Description |
|---|---|
protected String |
addDialogTitle |
protected org.jboss.ballroom.client.widgets.window.DefaultWindow |
addItemDialog |
protected List<String> |
availableChoices |
protected ListEditor |
listEditor |
protected NewListItemWizard |
newListItemWizard |
protected List<String> |
value |
| Constructor and Description |
|---|
EmbeddedListView(String title,
int rows,
boolean limitChoices,
ListManagement<String> delegate)
Create a new ListEditorFormItem.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
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 |
setValue(List<String> items) |
void |
setValueColumnHeader(String headerLabel) |
protected ListEditor listEditor
protected org.jboss.ballroom.client.widgets.window.DefaultWindow addItemDialog
protected String addDialogTitle
protected NewListItemWizard newListItemWizard
public EmbeddedListView(String title, int rows, boolean limitChoices, ListManagement<String> delegate)
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()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetpublic 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.