public class EditableListModelDecorator extends java.lang.Object implements EditableModel
Constructor and Description |
---|
EditableListModelDecorator(javax.swing.DefaultListModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addRow() |
boolean |
canExchangeRows(int oldIndex,
int newIndex) |
void |
exchangeRows(int oldIndex,
int newIndex) |
void |
removeRow(int index)
Remove row with index
idx and fire DELETE event (e.g. |
public EditableListModelDecorator(javax.swing.DefaultListModel model)
public void addRow()
addRow
in interface EditableModel
public void removeRow(int index)
ItemRemovable
idx
and fire DELETE
event (e.g. by calling
AbstractTableModel.fireTableRowsDeleted(int, int)
)removeRow
in interface ItemRemovable
public void exchangeRows(int oldIndex, int newIndex)
exchangeRows
in interface EditableModel
public boolean canExchangeRows(int oldIndex, int newIndex)
canExchangeRows
in interface EditableModel