public class MultiTypeDesignModel extends AbstractMultiTypeModel
| Constructor and Description |
|---|
MultiTypeDesignModel(MultiTypeTable viewModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createRow(Object creator,
int rowIndex)
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 |
removeRow(int rowIndex)
Remove a row.
|
void |
swapRow(int from,
int direction)
Swap two rows.
|
addMultiTypeListener, fireRowChanged, fireRowInserted, fireRowRemoved, removeMultiTypeListenerpublic static final QTag NULL_TAG
public MultiTypeDesignModel(MultiTypeTable viewModel)
viewModel - The model.public Object[] getTypeOptions()
MultiTypeModelpublic Object getDeleteOption()
MultiTypeModelpublic int getRowCount()
MultiTypeModelpublic void createRow(Object creator, int rowIndex)
MultiTypeModelcreator - 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)
MultiTypeModelindex - The index of the row.public void removeRow(int rowIndex)
MultiTypeModelrowIndex - The index of the row.public void swapRow(int from,
int direction)
MultiTypeModelfrom - The row from.direction - The direction of the swap, +1 or -1.Copyright © 2023. All rights reserved.