Venice 0.751beta

nz.org.venice.ui
Class Column

java.lang.Object
  extended bynz.org.venice.ui.Column
Direct Known Subclasses:
ExpressionColumn

public class Column
extends java.lang.Object

Representation of a column in a table.

Author:
Andrew Leppard
See Also:
AbstractTableModel

Field Summary
static int ALWAYS_HIDDEN
          The column is always hidden.
static int HIDDEN
          The column is currently hidden.
static int VISIBLE
          The column is currently visible.
 
Constructor Summary
Column(int number, java.lang.String fullName, java.lang.String shortName, java.lang.Class type, int visible)
          Create a new column.
 
Method Summary
 java.lang.String getFullName()
          Get the full name of the column.
 int getNumber()
          Get the column number.
 java.lang.String getShortName()
          Get the short name of the column.
 java.lang.Class getType()
          Get the data type of the data in the column.
 int getVisible()
          Return whether the column is visible.
 void setFullName(java.lang.String name)
          Set the full name of the column.
 void setShortName(java.lang.String name)
          Set the short name of the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIDDEN

public static final int HIDDEN
The column is currently hidden.

See Also:
Constant Field Values

VISIBLE

public static final int VISIBLE
The column is currently visible.

See Also:
Constant Field Values

ALWAYS_HIDDEN

public static final int ALWAYS_HIDDEN
The column is always hidden.

See Also:
Constant Field Values
Constructor Detail

Column

public Column(int number,
              java.lang.String fullName,
              java.lang.String shortName,
              java.lang.Class type,
              int visible)
Create a new column.

Parameters:
number - The column number
fullName - The full name of the column which appears in menus etc.
shortName - The short name of the column which appears in the table header.
type - Data type displayed in column.
visible - Either HIDDEN, VISIBLE or ALWAYS_HIDDEN.
Method Detail

getNumber

public int getNumber()
Get the column number.

Returns:
Column number.

getType

public java.lang.Class getType()
Get the data type of the data in the column.

Returns:
Type of column's data.

setShortName

public void setShortName(java.lang.String name)
Set the short name of the column.

Parameters:
name - New short name of the column.

getShortName

public java.lang.String getShortName()
Get the short name of the column.

Returns:
Short name of column.

setFullName

public void setFullName(java.lang.String name)
Set the full name of the column.

Parameters:
name - New full name of the column.

getFullName

public java.lang.String getFullName()
Get the full name of the column.

Returns:
Full name of column.

getVisible

public int getVisible()
Return whether the column is visible.

Returns:
Either HIDDEN, VISIBLE or ALWAYS_HIDDEN.

Venice 0.751beta