com.retek.commons.gui.table
Class RDisplayTableCell

java.lang.Object
  extended bycom.retek.commons.gui.table.RDisplayTableCell

public class RDisplayTableCell
extends java.lang.Object

This class represents the data that can be stored in a table cell.

Retek Inc. Copyright (c) 2002


Field Summary
static int BOOLEAN
           
static int DATE
           
static int NUMBER
           
static int NUMBER_LEFT
           
static int NUMBER_RIGHT
           
static int TEXT
           
static int TEXT_FULL
           
 
Constructor Summary
RDisplayTableCell()
          Returns new RDisplayTableCell object.
 
Method Summary
 java.awt.Color getBackground()
          Retrieves the background cell color from the cell.
 java.awt.Color getForeground()
          Retrieves the foreground cell color from the cell.
 java.lang.Object getSecondaryData()
          Retrieves the secondary (non-displayed) data within the cell.
 int getType()
          Retrieves the cell type from the cell.
 java.lang.String getValue()
          Retrieves the cell value from the cell.
 void setBackground(java.awt.Color color)
          Assigns a background cell color to the cell.
 void setForeground(java.awt.Color color)
          Assigns a foreground cell color to the cell.
 void setSecondaryData(java.lang.Object object)
          Assigns an object within the cell as stored (non-displayed data).
 void setType(int type)
          Assigns a cell type to the cell.
 void setValue(java.lang.String value)
          Assigns a cell value to the cell.
 java.lang.String toString()
          Returns the value of this cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

NUMBER_LEFT

public static final int NUMBER_LEFT
See Also:
Constant Field Values

NUMBER_RIGHT

public static final int NUMBER_RIGHT
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

TEXT_FULL

public static final int TEXT_FULL
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values
Constructor Detail

RDisplayTableCell

public RDisplayTableCell()
Returns new RDisplayTableCell object.

Method Detail

setType

public void setType(int type)
Assigns a cell type to the cell.

Parameters:
type - The cell type to assign to the cell.

getType

public int getType()
Retrieves the cell type from the cell.

Returns:
The cell type of the cell.

setValue

public void setValue(java.lang.String value)
Assigns a cell value to the cell.

Parameters:
value - The cell value to assign to the cell.

getValue

public java.lang.String getValue()
Retrieves the cell value from the cell.

Returns:
The cell value of the cell.

setSecondaryData

public void setSecondaryData(java.lang.Object object)
Assigns an object within the cell as stored (non-displayed data).

Parameters:
object - The object to store.

getSecondaryData

public java.lang.Object getSecondaryData()
Retrieves the secondary (non-displayed) data within the cell.

Returns:
A data object or null if none has been assigned.

setForeground

public void setForeground(java.awt.Color color)
Assigns a foreground cell color to the cell.

Parameters:
color - The color to assign to the foreground of the cell.

getForeground

public java.awt.Color getForeground()
Retrieves the foreground cell color from the cell.

Returns:
The foreground color of the cell.

setBackground

public void setBackground(java.awt.Color color)
Assigns a background cell color to the cell.

Parameters:
color - The color to assign to the background of the cell.

getBackground

public java.awt.Color getBackground()
Retrieves the background cell color from the cell.

Returns:
The background color of the cell.

toString

public java.lang.String toString()
Returns the value of this cell.

Returns:
The value of the cell.


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25