public class TableModelEditor<T> extends CollectionModelEditor<T,CollectionItemEditor<T>>
Modifier and Type | Class and Description |
---|---|
static class |
TableModelEditor.DataChangedListener<T> |
static interface |
TableModelEditor.DialogItemEditor<T> |
static class |
TableModelEditor.EditableColumnInfo<Item,Aspect> |
CollectionModelEditor.ModelHelper
helper, itemEditor, LOG
Constructor and Description |
---|
TableModelEditor(ColumnInfo [] columns,
CollectionItemEditor<T> itemEditor,
java.lang.String emptyText) |
TableModelEditor(java.util.List<T> items,
ColumnInfo [] columns,
CollectionItemEditor<T> itemEditor,
java.lang.String emptyText)
source will be copied, passed list will not be used directly
Implement
TableModelEditor.DialogItemEditor instead of CollectionItemEditor if you want provide dialog to edit. |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
apply() |
static <T> void |
cloneUsingXmlSerialization(T oldItem,
T newItem) |
javax.swing.JComponent |
createComponent() |
TableModelEditor<T> |
disableUpDownActions() |
TableModelEditor<T> |
enabled(boolean value) |
protected java.util.List<T> |
getItems()
Mutable internal list of items (must not be exposed to client)
|
ListTableModel<T> |
getModel() |
TableModelEditor<T> |
modelListener(TableModelEditor.DataChangedListener<T> listener) |
void |
reset(java.util.List<? extends T> items) |
void |
selectItem(T item) |
areSelectedItemsRemovable, canCreateElement, createElement, getMutable, isEditable, isModified, processModifiedItems, silentlyReplaceItem
public TableModelEditor(ColumnInfo [] columns, CollectionItemEditor<T> itemEditor, java.lang.String emptyText)
public TableModelEditor(java.util.List<T> items, ColumnInfo [] columns, CollectionItemEditor<T> itemEditor, java.lang.String emptyText)
TableModelEditor.DialogItemEditor
instead of CollectionItemEditor
if you want provide dialog to edit.public TableModelEditor<T> disableUpDownActions()
public TableModelEditor<T> enabled(boolean value)
public TableModelEditor<T> modelListener(TableModelEditor.DataChangedListener<T> listener)
public ListTableModel<T> getModel()
public static <T> void cloneUsingXmlSerialization(T oldItem, T newItem)
public javax.swing.JComponent createComponent()
protected java.util.List<T> getItems()
CollectionModelEditor
getItems
in class CollectionModelEditor<T,CollectionItemEditor<T>>
public void selectItem(T item)
public java.util.List<T> apply()
public void reset(java.util.List<? extends T> items)
reset
in class CollectionModelEditor<T,CollectionItemEditor<T>>