de.tkuhn.swing.table
Class ColumnState

java.lang.Object
  extended by de.tkuhn.swing.table.ColumnState
All Implemented Interfaces:
java.io.Serializable

public class ColumnState
extends java.lang.Object
implements java.io.Serializable

JavaBean used to store the state of a TableColumn in the ColumnStateTableColumnModel You should not have to use this class.

Version:
0.9.3
Author:
Tilmann Kuhn
See Also:
ColumnStateTableColumnModel, Serialized Form

Constructor Summary
ColumnState()
          Creates a new ColumnState
ColumnState(java.lang.Object colId)
          Create a new ColumnState for given colId
 
Method Summary
 java.lang.Object getColId()
          Getter for property colId.
 int getIndex()
          Getter for property index.
 int getMaxWidth()
          Getter for property maxWidth.
 int getMinWidth()
          Getter for property minWidth.
 int getPrefWidth()
          Getter for property prefWidth.
 boolean isHidden()
          Getter for property hidden.
 void resetState(javax.swing.table.TableColumn col)
          Reset the column's widthes to the ones in this state
 void saveState(javax.swing.table.TableColumn col)
          Save the widthes of the column in this state
 void setColId(java.lang.Object colId)
          Setter for property colId.
 void setHidden(boolean hidden)
          Setter for property hidden.
 void setIndex(int index)
          Setter for property index.
 void setMaxWidth(int maxWidth)
          Setter for property maxWidth.
 void setMinWidth(int minWidth)
          Setter for property minWidth.
 void setPrefWidth(int prefWidth)
          Setter for property prefWidth.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnState

public ColumnState(java.lang.Object colId)
Create a new ColumnState for given colId

Parameters:
colId - the column identifier

ColumnState

public ColumnState()
Creates a new ColumnState

Method Detail

saveState

public void saveState(javax.swing.table.TableColumn col)
Save the widthes of the column in this state

Parameters:
col - the column

resetState

public void resetState(javax.swing.table.TableColumn col)
Reset the column's widthes to the ones in this state

Parameters:
col - the column

getMaxWidth

public int getMaxWidth()
Getter for property maxWidth.

Returns:
Value of property maxWidth.

setMaxWidth

public void setMaxWidth(int maxWidth)
Setter for property maxWidth.

Parameters:
maxWidth - New value of property maxWidth.

getMinWidth

public int getMinWidth()
Getter for property minWidth.

Returns:
Value of property minWidth.

setMinWidth

public void setMinWidth(int minWidth)
Setter for property minWidth.

Parameters:
minWidth - New value of property minWidth.

getPrefWidth

public int getPrefWidth()
Getter for property prefWidth.

Returns:
Value of property prefWidth.

setPrefWidth

public void setPrefWidth(int prefWidth)
Setter for property prefWidth.

Parameters:
prefWidth - New value of property prefWidth.

getIndex

public int getIndex()
Getter for property index.

Returns:
Value of property index.

setIndex

public void setIndex(int index)
Setter for property index.

Parameters:
index - New value of property index.

isHidden

public boolean isHidden()
Getter for property hidden.

Returns:
Value of property hidden.

setHidden

public void setHidden(boolean hidden)
Setter for property hidden.

Parameters:
hidden - New value of property hidden.

getColId

public java.lang.Object getColId()
Getter for property colId.

Returns:
Value of property colId.

setColId

public void setColId(java.lang.Object colId)
Setter for property colId.

Parameters:
colId - New value of property colId.


Copyright © Tilmann Kuhn