WUI : API


org.westofj.wui.table
Class WTableColumnModel

java.lang.Object
  extended byorg.westofj.wui.table.WTableColumnModel

public class WTableColumnModel
extends Object

Specifies a column definition.

Version:
$Revision: 1.1 $, $Date: 2003/08/29 10:46:54 $
Author:
bill

Constructor Summary
WTableColumnModel()
          Constructs an empty column model.
 
Method Summary
 void addColumn(WTableColumn column)
          Adds a column specification to the column model.
 void clear()
          Removes all column specifications from the column model.
 WTableColumn getColumn(int i)
          Returns the column specification at the specified index.
 int getColumnCount()
          Returns the number of column specifications in the column model.
 List getColumns()
          Returns an unmodifiable list of the column specifications in the column model.
 void removeColumn(int i)
          Removes the column specification at the specified index.
 void removeColumn(WTableColumn column)
          Removes the specified column specification from the column model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTableColumnModel

public WTableColumnModel()
Constructs an empty column model.

Method Detail

addColumn

public void addColumn(WTableColumn column)
Adds a column specification to the column model.

Parameters:
column - the column to add to the model.

clear

public void clear()
Removes all column specifications from the column model.


getColumn

public WTableColumn getColumn(int i)
Returns the column specification at the specified index.

Parameters:
i - the index of the column specification.
Returns:
WTableColumn the column specification at the specified index.

getColumnCount

public int getColumnCount()
Returns the number of column specifications in the column model.

Returns:
int the number of column specifications in the column model.

getColumns

public List getColumns()
Returns an unmodifiable list of the column specifications in the column model.

Returns:
List an unmodifiable list of the column specifications in the column model.

removeColumn

public void removeColumn(int i)
Removes the column specification at the specified index.

Parameters:
i - the index of the column specification to remove.

removeColumn

public void removeColumn(WTableColumn column)
Removes the specified column specification from the column model.

Parameters:
column - the column specification to remove from the column model.

Copyright (c) 2003 West of J - All rights reserved.