jwo.utils.gui
Class EditableHeaderTableColumn

java.lang.Object
  extended by javax.swing.table.TableColumn
      extended by jwo.utils.gui.EditableHeaderTableColumn
All Implemented Interfaces:
Serializable

public class EditableHeaderTableColumn
extends TableColumn

Represents a single editable column header.

Version:
2.3, 19th August, 2004.
Author:
Based on the code provided by Nobuo Tamemasa, modified by Jo Wood.
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
EditableHeaderTableColumn()
          Creates a new editable header for a column.
 
Method Summary
 void copyValues(TableColumn base)
          Copies the values from the given table column.
 TableCellEditor getHeaderEditor()
          Reports the editor associated with the header.
 boolean isHeaderEditable()
          Reports whether the header is editable or not.
 void setHeaderEditable(boolean isEditable)
          Determines whether the header is editable or not.
 void setHeaderEditor(TableCellEditor headerEditor)
          Sets the editor to be associated with the header.
 
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

EditableHeaderTableColumn

public EditableHeaderTableColumn()
Creates a new editable header for a column.

Method Detail

setHeaderEditor

public void setHeaderEditor(TableCellEditor headerEditor)
Sets the editor to be associated with the header.

Parameters:
headerEditor - New editor to be associated with header.

getHeaderEditor

public TableCellEditor getHeaderEditor()
Reports the editor associated with the header.

Returns:
Editor associated with header.

setHeaderEditable

public void setHeaderEditable(boolean isEditable)
Determines whether the header is editable or not.

Parameters:
isEditable - True if editable.

isHeaderEditable

public boolean isHeaderEditable()
Reports whether the header is editable or not.

Returns:
True if editable.

copyValues

public void copyValues(TableColumn base)
Copies the values from the given table column.

Parameters:
base - Column from which to copy.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009