org.xulux.guilayer.swing.models
Class NyxTableColumn

java.lang.Object
  extended by javax.swing.table.TableColumn
      extended by org.xulux.guilayer.swing.models.NyxTableColumn
All Implemented Interfaces:
java.io.Serializable

public class NyxTableColumn
extends javax.swing.table.TableColumn

Override the standard TableColumn, so we can use instances of widgets to set columns , instead of dynamically creating them all the time.

Version:
$Id: NyxTableColumn.java,v 1.1 2005/12/18 12:58:21 mvdb Exp $
Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.TableColumn
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width
 
Constructor Summary
NyxTableColumn()
           
NyxTableColumn(int modelIndex)
           
NyxTableColumn(int modelIndex, int width)
           
NyxTableColumn(int modelIndex, int width, javax.swing.table.TableCellRenderer cellRenderer, javax.swing.table.TableCellEditor cellEditor)
           
NyxTableColumn(org.xulux.api.gui.IWidget widget)
           
 
Method Summary
 NyxTableColumnModel getModel()
           
 boolean isLocked()
           
 void setModel(NyxTableColumnModel model)
          Set the model for easy access to the model.
 
Methods inherited from class javax.swing.table.TableColumn
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NyxTableColumn

public NyxTableColumn()

NyxTableColumn

public NyxTableColumn(org.xulux.api.gui.IWidget widget)
Parameters:
widget - - the widget the create the column for.

NyxTableColumn

public NyxTableColumn(int modelIndex)
Parameters:
modelIndex - the modelIndex

NyxTableColumn

public NyxTableColumn(int modelIndex,
                      int width)
Parameters:
modelIndex - modelIndex
width - width

NyxTableColumn

public NyxTableColumn(int modelIndex,
                      int width,
                      javax.swing.table.TableCellRenderer cellRenderer,
                      javax.swing.table.TableCellEditor cellEditor)
Parameters:
modelIndex - modelIndex
width - width
cellRenderer - cellRenderer
cellEditor - cellEditor
Method Detail

isLocked

public boolean isLocked()
Returns:
is the column is locked or not.

setModel

public void setModel(NyxTableColumnModel model)
Set the model for easy access to the model.

Parameters:
model - - the nyx columnmodel.

getModel

public NyxTableColumnModel getModel()
Returns:
- the nyx column model.


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.