public interface MultiTypeModel
MultiTypeTableWidget
and
process changes from the view.Modifier and Type | Method and Description |
---|---|
void |
addMultiTypeListener(MultiTypeListener listener)
Add a listener that will receive notification of changes to this
model.
|
void |
createRow(java.lang.Object creator,
int row)
Create a row.
|
java.lang.Object |
getDeleteOption()
Get the option that causes a row to be deleted.
|
MultiTypeRow |
getRow(int index)
Get a row.
|
int |
getRowCount()
The number of rows.
|
java.lang.Object[] |
getTypeOptions()
Get the options that are the type.
|
void |
removeMultiTypeListener(MultiTypeListener listener)
Remove a listener.
|
void |
removeRow(int index)
Remove a row.
|
void |
swapRow(int from,
int direction)
Swap two rows.
|
void addMultiTypeListener(MultiTypeListener listener)
listener
- The listener.void removeMultiTypeListener(MultiTypeListener listener)
listener
- The listener.java.lang.Object[] getTypeOptions()
java.lang.Object getDeleteOption()
int getRowCount()
void createRow(java.lang.Object creator, int row)
creator
- The thing that drives the creation. Either a new
element type or the name of a variable.row
- The row being created.MultiTypeRow getRow(int index)
index
- The index of the row.void removeRow(int index)
index
- The index of the row.void swapRow(int from, int direction)
from
- The row from.direction
- The direction of the swap, +1 or -1.