|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.design.view.multitype.AbstractMultiTypeModel
org.oddjob.arooa.design.view.multitype.MultiTypeDesignModel
public class MultiTypeDesignModel
The model for a MultiTypeTable created from a property.
Field Summary | |
---|---|
static QTag |
NULL_TAG
|
Constructor Summary | |
---|---|
MultiTypeDesignModel(MultiTypeTable viewModel)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.oddjob.arooa.design.view.multitype.AbstractMultiTypeModel |
---|
addMultiTypeListener, fireRowChanged, fireRowInserted, fireRowRemoved, removeMultiTypeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QTag NULL_TAG
Constructor Detail |
---|
public MultiTypeDesignModel(MultiTypeTable viewModel)
viewModel
- The model.Method Detail |
---|
public Object[] getTypeOptions()
MultiTypeModel
public Object getDeleteOption()
MultiTypeModel
public int getRowCount()
MultiTypeModel
public void createRow(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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |