|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICell
Interface that defines a cell of a cell table
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 |
---|
void initCell()
void resetCell()
java.util.Vector getCellAttributes()
int getIndex()
void setIndex(int index)
index
- - used among cells of a cell table to determine the position sequencevoid setFocus(boolean isFocus)
isFocus
- - true means the cell is focusedboolean isFocus()
void setFocusCellHeight(int focusCellHeight)
focusCellHeight
- - height in pixelvoid setUnfocusCellHeight(int unfocusCellHeight)
unfocusCellHeight
- - height in pixelint getFocusCellHeight()
int getUnfocusCellHeight()
int getPreferredWidth()
int getPreferredHeight()
void drawCell(net.rim.device.api.ui.Graphics graphics, int x, int y, int cellIndex, boolean isFocus)
graphics
- - Graphics objectx
- - X coordinator or the celly
- - Y coordinator of the cellcellIndex
- - index of the cell that is drawingisFocus
- - true means the cell is focusedvoid layout()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |