public class MultiTypeDesignModel extends AbstractMultiTypeModel
Constructor and Description |
---|
MultiTypeDesignModel(MultiTypeTable viewModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createRow(java.lang.Object creator,
int rowIndex)
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 |
removeRow(int rowIndex)
Remove a row.
|
void |
swapRow(int from,
int direction)
Swap two rows.
|
addMultiTypeListener, fireRowChanged, fireRowInserted, fireRowRemoved, removeMultiTypeListener
public static final QTag NULL_TAG
public MultiTypeDesignModel(MultiTypeTable viewModel)
viewModel
- The model.public java.lang.Object[] getTypeOptions()
MultiTypeModel
public java.lang.Object getDeleteOption()
MultiTypeModel
public int getRowCount()
MultiTypeModel
public void createRow(java.lang.Object creator, int rowIndex)
MultiTypeModel
creator
- The thing that drives the creation. Either a new
element type or the name of a variable.rowIndex
- The row being created.public MultiTypeRow getRow(int index)
MultiTypeModel
index
- The index of the row.public void removeRow(int rowIndex)
MultiTypeModel
rowIndex
- The index of the row.public void swapRow(int from, int direction)
MultiTypeModel
from
- The row from.direction
- The direction of the swap, +1 or -1.