org.oddjob.arooa.design.view.multitype
Interface MultiTypeStrategy

All Known Implementing Classes:
MultiTypeStrategy.Strategies

public interface MultiTypeStrategy

The strategy used to layout a MultiTypeTableWidget.

Author:
rob

Nested Class Summary
static class MultiTypeStrategy.Strategies
           
 
Method Summary
 int getNameColumn()
          Get the index of the name column.
 int getTypeColumn()
          Get the index of the type column.
 int getValueColumn()
          Get the index of the value column.
 TableModel tableModelFor(MultiTypeModel multiTypeModel)
          Create the Swing table model for the table in the widget.
 

Method Detail

tableModelFor

TableModel tableModelFor(MultiTypeModel multiTypeModel)
Create the Swing table model for the table in the widget.

Parameters:
multiTypeModel - The model.
Returns:
A Swing TableModel.

getTypeColumn

int getTypeColumn()
Get the index of the type column. Will change for the Oddjob variables layout.

Returns:
The index.

getNameColumn

int getNameColumn()
Get the index of the name column. Will be -1 if no name, i.e. for lists.

Returns:
The index.

getValueColumn

int getValueColumn()
Get the index of the value column.

Returns:
The index.