com.sybase.uep.bobclient.controls.celltable
Interface ICell

All Known Implementing Classes:
Cell

public interface ICell

Interface that defines a cell of a cell table

Author:
congchen

Method Summary
 void drawCell(net.rim.device.api.ui.Graphics graphics, int x, int y, int cellIndex, boolean isFocus)
          Draws the cell
 java.util.Vector getCellAttributes()
          Gets all drawing items in the cell
 int getFocusCellHeight()
          Gets height of a focused cell
 int getIndex()
          Gets the index of the cell.
 int getPreferredHeight()
          Gets preferred height of a cell
 int getPreferredWidth()
          Gets preferred width of a cell
 int getUnfocusCellHeight()
          Gets height of a unfocused cell
 void initCell()
          Initialize a cell, initialization work can be done in the method.
 boolean isFocus()
          Gets the focus status of a cell
 void layout()
          Layouts the cell content
 void resetCell()
          Resets items in a cell, can be a value refresh
 void setFocus(boolean isFocus)
          Sets focus status of a cell
 void setFocusCellHeight(int focusCellHeight)
          Sets height for a focused cell
 void setIndex(int index)
          Sets index of a cell
 void setUnfocusCellHeight(int unfocusCellHeight)
          Sets height for a unfocused cell
 

Method Detail

initCell

void initCell()
Initialize a cell, initialization work can be done in the method.


resetCell

void resetCell()
Resets items in a cell, can be a value refresh


getCellAttributes

java.util.Vector getCellAttributes()
Gets all drawing items in the cell

Returns:
vector of cell item

getIndex

int getIndex()
Gets the index of the cell. The index is used among cells of a cell table to determine the position sequence

Returns:
the cell index

setIndex

void setIndex(int index)
Sets index of a cell

Parameters:
index - - used among cells of a cell table to determine the position sequence

setFocus

void setFocus(boolean isFocus)
Sets focus status of a cell

Parameters:
isFocus - - true means the cell is focused

isFocus

boolean isFocus()
Gets the focus status of a cell

Returns:
true means the cell is focused

setFocusCellHeight

void setFocusCellHeight(int focusCellHeight)
Sets height for a focused cell

Parameters:
focusCellHeight - - height in pixel

setUnfocusCellHeight

void setUnfocusCellHeight(int unfocusCellHeight)
Sets height for a unfocused cell

Parameters:
unfocusCellHeight - - height in pixel

getFocusCellHeight

int getFocusCellHeight()
Gets height of a focused cell

Returns:
cell height

getUnfocusCellHeight

int getUnfocusCellHeight()
Gets height of a unfocused cell

Returns:
cell height

getPreferredWidth

int getPreferredWidth()
Gets preferred width of a cell

Returns:
preferred width

getPreferredHeight

int getPreferredHeight()
Gets preferred height of a cell

Returns:
preferred height

drawCell

void drawCell(net.rim.device.api.ui.Graphics graphics,
              int x,
              int y,
              int cellIndex,
              boolean isFocus)
Draws the cell

Parameters:
graphics - - Graphics object
x - - X coordinator or the cell
y - - Y coordinator of the cell
cellIndex - - index of the cell that is drawing
isFocus - - true means the cell is focused

layout

void layout()
Layouts the cell content