com.metamatrix.toolbox.ui.widget.table
Class EnhancedTableColumn

java.lang.Object
  extended by javax.swing.table.TableColumn
      extended by com.metamatrix.toolbox.ui.widget.table.EnhancedTableColumn
All Implemented Interfaces:
java.io.Serializable

public class EnhancedTableColumn
extends javax.swing.table.TableColumn

Since:
2.0
Version:
2.0
Author:
John P. A. Verhaeg
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
EnhancedTableColumn(int modelIndex)
           
 
Method Summary
 int getSortPriority()
           
protected  void initializeEnhancedTableColumn()
           
 boolean isHidden()
           
 boolean isSorted()
           
 boolean isSortedAscending()
           
 boolean isSortedDescending()
           
 void setMaxWidth(int width)
           
 void setMinWidth(int width)
           
 void setPreferredWidth(int width)
           
 
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, setModelIndex, setResizable, setWidth, sizeWidthToFit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedTableColumn

public EnhancedTableColumn(int modelIndex)
Since:
2.0
Method Detail

getSortPriority

public int getSortPriority()
Returns:
The column's sort priority relative to one if more than one column is sorted, zero otherwise
Since:
2.0

initializeEnhancedTableColumn

protected void initializeEnhancedTableColumn()
Since:
2.0

isHidden

public boolean isHidden()
Returns:
True if the column is hidden
Since:
2.0

isSorted

public boolean isSorted()
Returns:
True if the column is sorted
Since:
2.0

isSortedAscending

public boolean isSortedAscending()
Returns:
True if the column is sorted in ascending order
Since:
2.0

isSortedDescending

public boolean isSortedDescending()
Returns:
True if the column is sorted in ascending order
Since:
2.0

setMaxWidth

public void setMaxWidth(int width)
Overrides:
setMaxWidth in class javax.swing.table.TableColumn
Since:
2.0

setMinWidth

public void setMinWidth(int width)
Overrides:
setMinWidth in class javax.swing.table.TableColumn
Since:
2.0

setPreferredWidth

public void setPreferredWidth(int width)
Overrides:
setPreferredWidth in class javax.swing.table.TableColumn
Since:
2.0


Copyright © 2009. All Rights Reserved.