public abstract class ListModelEditorBase<T> extends CollectionModelEditor<T,ListItemEditor<T>>
| Modifier and Type | Class and Description |
|---|---|
protected class |
ListModelEditorBase.MyModel |
CollectionModelEditor.ModelHelper| Modifier and Type | Field and Description |
|---|---|
protected ListModelEditorBase.MyModel |
model |
helper, itemEditor, LOG| Constructor and Description |
|---|
ListModelEditorBase(ListItemEditor<T> itemEditor) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
apply() |
void |
ensureNonEmptyNames(java.lang.String errorMessage) |
protected java.util.List<T> |
getItems()
Mutable internal list of items (must not be exposed to client)
|
CollectionListModel<T> |
getModel() |
protected boolean |
isEditable(T item) |
protected void |
removeEmptyItem(int i) |
void |
reset(java.util.List<? extends T> items) |
protected void |
silentlyReplaceItem(T oldItem,
T newItem,
int index) |
areSelectedItemsRemovable, canCreateElement, createElement, getMutable, isModified, processModifiedItemsprotected final ListModelEditorBase.MyModel model
public ListModelEditorBase(ListItemEditor<T> itemEditor)
public CollectionListModel<T> getModel()
protected java.util.List<T> getItems()
CollectionModelEditorgetItems in class CollectionModelEditor<T,ListItemEditor<T>>public void reset(java.util.List<? extends T> items)
reset in class CollectionModelEditor<T,ListItemEditor<T>>public final void ensureNonEmptyNames(java.lang.String errorMessage)
throws ConfigurationException
ConfigurationExceptionprotected void removeEmptyItem(int i)
protected boolean isEditable(T item)
isEditable in class CollectionModelEditor<T,ListItemEditor<T>>public java.util.List<T> apply()
protected void silentlyReplaceItem(T oldItem, T newItem, int index)
silentlyReplaceItem in class CollectionModelEditor<T,ListItemEditor<T>>