com.limegroup.gnutella.gui.tables
Class LimeTableColumn

java.lang.Object
  extended byjavax.swing.table.TableColumn
      extended bycom.limegroup.gnutella.gui.tables.LimeTableColumn
All Implemented Interfaces:
java.io.Serializable

public class LimeTableColumn
extends javax.swing.table.TableColumn

A personalized TableColumn for storing extended information. This class provides support for storing:

See Also:
Serialized Form

Field Summary
static javax.swing.table.TableCellRenderer HEADER_RENDERER
          Variable for the HeaderRenderer for all components.
 
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
LimeTableColumn(int model, java.lang.String id, int width, boolean vis, java.lang.Class clazz)
          Creates a new TableColumn.
 
Method Summary
 java.lang.Class getColumnClass()
          Gets the class of this column.
 int getDefaultOrder()
          Gets the default order for this column.
 boolean getDefaultVisibility()
          Gets the default visibility for this column.
 int getDefaultWidth()
          Gets the default width for this column.
 java.lang.String getId()
          Gets the Id as a string.
 java.lang.String getName()
          Get the name, as a string.
 void setHeaderValue(java.lang.Object val)
          Disallows changing of header value
 void setIdentifier(java.lang.Object id)
          Disallows changing of identifier
 void setModelIndex(int idx)
          Disallows changing of model number
 java.lang.String toString()
           
 
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, setMaxWidth, setMinWidth, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_RENDERER

public static final javax.swing.table.TableCellRenderer HEADER_RENDERER
Variable for the HeaderRenderer for all components.

Constructor Detail

LimeTableColumn

public LimeTableColumn(int model,
                       java.lang.String id,
                       int width,
                       boolean vis,
                       java.lang.Class clazz)
Creates a new TableColumn. If you do not know a default width, use -1.

Method Detail

toString

public java.lang.String toString()

getDefaultVisibility

public boolean getDefaultVisibility()
Gets the default visibility for this column.


getDefaultWidth

public int getDefaultWidth()
Gets the default width for this column.


getDefaultOrder

public int getDefaultOrder()
Gets the default order for this column.


getName

public java.lang.String getName()
Get the name, as a string.


getColumnClass

public java.lang.Class getColumnClass()
Gets the class of this column.


getId

public java.lang.String getId()
Gets the Id as a string.


setModelIndex

public void setModelIndex(int idx)
Disallows changing of model number


setHeaderValue

public void setHeaderValue(java.lang.Object val)
Disallows changing of header value


setIdentifier

public void setIdentifier(java.lang.Object id)
Disallows changing of identifier