com.arsdigita.toolbox.ui
Class DataTable.SortableTableColumn

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.table.TableColumn
              extended bycom.arsdigita.toolbox.ui.DataTable.SortableTableColumn
All Implemented Interfaces:
Cloneable, Component, Lockable
Enclosing class:
DataTable

public static class DataTable.SortableTableColumn
extends TableColumn

A TableColumn that could potentially be sorted


Field Summary
 
Fields inherited from class com.arsdigita.bebop.table.TableColumn
versionId
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
DataTable.SortableTableColumn(int modelIndex, Object value, Object key, boolean isSortable, TableCellRenderer renderer)
          Construct a new SortableTableColumn
 
Method Summary
 SingleSelectionModel getOrderSelectionModel()
           
 boolean isSortable()
           
 void setSortable(boolean isSortable)
          Determine whether this column is sortable
 
Methods inherited from class com.arsdigita.bebop.table.TableColumn
exportCellAttributes, generateXML, getCellRenderer, getHeaderKey, getHeaderRenderer, getHeaderValue, getModelIndex, getWidth, setAlign, setCellRenderer, setClassAttr, setHeadAlign, setHeadClassAttr, setHeaderKey, setHeaderRenderer, setHeaderValue, setHeadStyleAttr, setHeadVAlign, setModelIndex, setStyleAttr, setVAlign, setWidth
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setIdAttr, setKey, setMetaDataAttribute, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Constructor Detail

DataTable.SortableTableColumn

public DataTable.SortableTableColumn(int modelIndex,
                                     Object value,
                                     Object key,
                                     boolean isSortable,
                                     TableCellRenderer renderer)
Construct a new SortableTableColumn

Parameters:
modelIndex - the index of the column in the table model from which to retrieve values.
value - the value for the column header.
key - the key for the column header.
isSortable - whether the column is sortable or not
renderer - the renderer which will be used to render this column
Method Detail

setSortable

public void setSortable(boolean isSortable)
Determine whether this column is sortable

Parameters:
isSortable - if true, the column will be sortable

getOrderSelectionModel

public SingleSelectionModel getOrderSelectionModel()
Returns:
the SingleSelectionModel which is responsible for maintaining the sort order

isSortable

public boolean isSortable()
Returns:
true if this column is sortable, false otherwise


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