wt.templateutil.table
Class NavigationBarTableModel

java.lang.Object
  extended bywt.templateutil.table.NavigationBarTableModel
All Implemented Interfaces:
TableModel, TableModelStub

public class NavigationBarTableModel
extends Object
implements TableModelStub


Field Summary
private  NavigationTreeNode[][] cellNodes
           
private static String COLUMN_NAME
           
private  int columnCount
           
private  int rowCount
           
private  List selectedNodeList
           
private  HTTPState state
           
private  NavigationTreeModel treeModel
           
private  NavigationTreeNode[] treeNodes
           
 
Constructor Summary
NavigationBarTableModel(NavigationTreeModel treeModel, HTTPState state)
           
 
Method Summary
 void addTableModelListener(TableModelListener l)
          

Supported API: true
protected  int buildRow(int i)
           
protected  void buildSelectedAndAvailableNodes()
           
 Class getColumnClass(int columnIndex)
          

Supported API: true
 int getColumnCount()
          

Supported API: true
 int getColumnCount(int row)
           
 String getColumnName(int columnIndex)
          Returns name of the HTML table column for the column index passed in as input parameter.
 int getRowCount()
          

Supported API: true
 HTTPState getState()
           
protected  NavigationTreeModel getTreeModel()
           
 Object getValueAt(int rowIndex, int columnIndex)
          

Supported API: true
 boolean isCellEditable(int rowIndex, int columnIndex)
          

Supported API: true
 void removeTableModelListener(TableModelListener l)
          

Supported API: true
 void setState(HTTPState state)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
          

Supported API: true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_NAME

private static final String COLUMN_NAME
See Also:
Constant Field Values

treeModel

private NavigationTreeModel treeModel

selectedNodeList

private List selectedNodeList

rowCount

private int rowCount

columnCount

private int columnCount

treeNodes

private NavigationTreeNode[] treeNodes

cellNodes

private NavigationTreeNode[][] cellNodes

state

private HTTPState state
Constructor Detail

NavigationBarTableModel

public NavigationBarTableModel(NavigationTreeModel treeModel,
                               HTTPState state)
Method Detail

addTableModelListener

public void addTableModelListener(TableModelListener l)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
addTableModelListener in interface TableModelStub
Parameters:
l -

getColumnClass

public Class getColumnClass(int columnIndex)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
getColumnClass in interface TableModelStub
Parameters:
columnIndex -
Returns:
Class

getColumnCount

public int getColumnCount()
Description copied from interface: TableModelStub


Supported API: true

Specified by:
getColumnCount in interface TableModelStub
Returns:
int

getColumnName

public String getColumnName(int columnIndex)
Description copied from interface: TableModelStub
Returns name of the HTML table column for the column index passed in as input parameter.

Supported API: true

Specified by:
getColumnName in interface TableModelStub
Parameters:
columnIndex -
Returns:
String

getRowCount

public int getRowCount()
Description copied from interface: TableModelStub


Supported API: true

Specified by:
getRowCount in interface TableModelStub
Returns:
int

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
getValueAt in interface TableModelStub
Parameters:
rowIndex -
columnIndex -
Returns:
Object

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
isCellEditable in interface TableModelStub
Parameters:
rowIndex -
columnIndex -
Returns:
boolean

removeTableModelListener

public void removeTableModelListener(TableModelListener l)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
removeTableModelListener in interface TableModelStub
Parameters:
l -

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Description copied from interface: TableModelStub


Supported API: true

Specified by:
setValueAt in interface TableModelStub
Parameters:
value -
rowIndex -
columnIndex -

buildSelectedAndAvailableNodes

protected void buildSelectedAndAvailableNodes()

buildRow

protected int buildRow(int i)

getTreeModel

protected NavigationTreeModel getTreeModel()

setState

public void setState(HTTPState state)

getState

public HTTPState getState()

getColumnCount

public int getColumnCount(int row)