|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiTypeModel
The model used to provide data to a MultiTypeTableWidget
and
process changes from the view.
Method Summary | |
---|---|
void |
addMultiTypeListener(MultiTypeListener listener)
Add a listener that will receive notification of changes to this model. |
void |
createRow(Object creator,
int row)
Create a row. |
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. |
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. |
Method Detail |
---|
void addMultiTypeListener(MultiTypeListener listener)
listener
- The listener.void removeMultiTypeListener(MultiTypeListener listener)
listener
- The listener.Object[] getTypeOptions()
Object getDeleteOption()
int getRowCount()
void createRow(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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |