com.arsdigita.bebop.table
Class DefaultTableColumnModel

java.lang.Object
  extended bycom.arsdigita.bebop.table.DefaultTableColumnModel
All Implemented Interfaces:
Lockable, TableColumnModel
Direct Known Subclasses:
DataTable.DataTableColumnModel

public class DefaultTableColumnModel
extends Object
implements TableColumnModel

Describe interface TableColumnModel here.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/table/DefaultTableColumnModel.java#7 $
Author:
David Lutterkort

Field Summary
static String versionId
           
 
Constructor Summary
DefaultTableColumnModel()
           
DefaultTableColumnModel(Object[] headers)
           
DefaultTableColumnModel(Object[] headers, SingleSelectionModel sel)
           
DefaultTableColumnModel(SingleSelectionModel sel)
           
 
Method Summary
 void add(int columnIndex, TableColumn column)
          Insert a column at the given index.
 void add(TableColumn column)
           
 Iterator columns()
           
 TableColumn get(int columnIndex)
           
 int getIndex(Object key)
           
 SingleSelectionModel getSelectionModel()
           
 boolean isLocked()
          Return whether an object is locked and thus immutable, or can still be modified.
 void lock()
          Lock an object.
 void remove(TableColumn column)
           
 void set(int columnIndex, TableColumn v)
           
 void setSelectionModel(SingleSelectionModel model)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DefaultTableColumnModel

public DefaultTableColumnModel()

DefaultTableColumnModel

public DefaultTableColumnModel(SingleSelectionModel sel)

DefaultTableColumnModel

public DefaultTableColumnModel(Object[] headers)

DefaultTableColumnModel

public DefaultTableColumnModel(Object[] headers,
                               SingleSelectionModel sel)
Method Detail

add

public void add(TableColumn column)
Specified by:
add in interface TableColumnModel

add

public void add(int columnIndex,
                TableColumn column)
Description copied from interface: TableColumnModel
Insert a column at the given index. The columns from columnIndex on are shifted one up.

Specified by:
add in interface TableColumnModel
Parameters:
columnIndex - the index for the new column.
column - the table column to add to the model.

get

public TableColumn get(int columnIndex)
Specified by:
get in interface TableColumnModel

set

public void set(int columnIndex,
                TableColumn v)
Specified by:
set in interface TableColumnModel

size

public int size()
Specified by:
size in interface TableColumnModel

getIndex

public int getIndex(Object key)
Specified by:
getIndex in interface TableColumnModel

columns

public Iterator columns()
Specified by:
columns in interface TableColumnModel

remove

public void remove(TableColumn column)
Specified by:
remove in interface TableColumnModel

getSelectionModel

public final SingleSelectionModel getSelectionModel()
Specified by:
getSelectionModel in interface TableColumnModel

setSelectionModel

public void setSelectionModel(SingleSelectionModel model)
Specified by:
setSelectionModel in interface TableColumnModel

lock

public final void lock()
Description copied from interface: Lockable
Lock an object. Locked objects are to be considered immutable. Any attempt to modify them, e.g., through a setXXX method should lead to an exception.

Most lockable Bebop classes throw an IllegalStateException if an attempt is made to modify a locked instance.

Specified by:
lock in interface Lockable

isLocked

public final boolean isLocked()
Description copied from interface: Lockable
Return whether an object is locked and thus immutable, or can still be modified.

Specified by:
isLocked in interface Lockable


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC