com.sybase.uep.bobclient.controls
Class TableColumn

java.lang.Object
  extended by com.sybase.uep.bobclient.controls.TableColumn

public class TableColumn
extends java.lang.Object

Table column class Used by the TableField class

Author:
tdang

Constructor Summary
TableColumn()
          Constructor for TableColumn
 
Method Summary
 int getColor(int defColor)
          Get the column text color
 net.rim.device.api.ui.Font getFont(net.rim.device.api.ui.Font defFont)
          Get the column font object
 java.lang.String getLabel()
          Get the column label
 java.lang.String getTypicalString()
          get the length of the column text value
 int getWidth()
          Get the width of the column
 boolean hasClickThru()
          Check if there are clickacross under this column
 void setClickThru(java.lang.String label)
          Set if this column has clickacross
 void setColor(int color)
          Set the font color of this column
 void setFont(net.rim.device.api.ui.Font font)
          Set the font object for this column
 void setLabel(java.lang.String label)
          Set the column label
 void setTypicalString(java.lang.String typical)
          Set the typical length for this column label
 void setWidth(int width)
          Set the column width
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableColumn

public TableColumn()
Constructor for TableColumn

Method Detail

getColor

public int getColor(int defColor)
Get the column text color

Parameters:
defColor - Default text color
Returns:
text color of the column

getFont

public net.rim.device.api.ui.Font getFont(net.rim.device.api.ui.Font defFont)
Get the column font object

Parameters:
defFont - Default font
Returns:
Font Object

getLabel

public java.lang.String getLabel()
Get the column label

Returns:
String value of the column label

getTypicalString

public java.lang.String getTypicalString()
get the length of the column text value

Returns:
The String of the typical length

getWidth

public int getWidth()
Get the width of the column

Returns:
int value of the column width

setClickThru

public void setClickThru(java.lang.String label)
Set if this column has clickacross

Parameters:
label - Column label that has clickacross

hasClickThru

public boolean hasClickThru()
Check if there are clickacross under this column

Returns:
True if this column has clickacross

setColor

public void setColor(int color)
Set the font color of this column


setFont

public void setFont(net.rim.device.api.ui.Font font)
Set the font object for this column


setLabel

public void setLabel(java.lang.String label)
Set the column label

Parameters:
label - Column label string

setTypicalString

public void setTypicalString(java.lang.String typical)
Set the typical length for this column label

Parameters:
typical - The string to show the length of the label

setWidth

public void setWidth(int width)
Set the column width

Parameters:
width - int value for the column width