|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.controls.celltable.Cell
public class Cell
Represents a cell of a cell table
Constructor Summary | |
---|---|
Cell(CellTable celltable,
int cellIndex)
Constructor |
|
Cell(int cellIndex)
Constructor |
Method Summary | |
---|---|
void |
addCellAttribute(IControlXYDraw control,
int rowSpan,
int colSpan)
Adds a cell attribute to the cell |
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()
Produces cell attributes |
boolean |
isFocus()
Gets the focus status of a cell |
void |
layout()
Layouts the cell content |
void |
resetCell()
Resets controls in a cell |
void |
setCellTable(CellTable celltable)
Sets cell table to this cell. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell(int cellIndex)
cellIndex
- cell indexpublic Cell(CellTable celltable, int cellIndex)
celltable
- cell tablecellIndex
- cell indexMethod Detail |
---|
public void drawCell(net.rim.device.api.ui.Graphics graphics, int x, int y, int cellIndex, boolean isFocus)
ICell
drawCell
in interface ICell
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 focusedpublic void initCell()
initCell
in interface ICell
public void resetCell()
resetCell
in interface ICell
cellIndex
- - index of the cellpublic void setFocus(boolean isFocus)
ICell
setFocus
in interface ICell
isFocus
- - true means the cell is focusedpublic boolean isFocus()
ICell
isFocus
in interface ICell
public int getPreferredWidth()
ICell
getPreferredWidth
in interface ICell
public int getPreferredHeight()
ICell
getPreferredHeight
in interface ICell
public java.util.Vector getCellAttributes()
ICell
getCellAttributes
in interface ICell
public int getIndex()
ICell
getIndex
in interface ICell
public void setIndex(int index)
ICell
setIndex
in interface ICell
index
- - used among cells of a cell table to determine the position sequencepublic void layout()
ICell
layout
in interface ICell
public int getFocusCellHeight()
ICell
getFocusCellHeight
in interface ICell
public void setFocusCellHeight(int focusCellHeight)
ICell
setFocusCellHeight
in interface ICell
focusCellHeight
- - height in pixelpublic int getUnfocusCellHeight()
ICell
getUnfocusCellHeight
in interface ICell
public void setUnfocusCellHeight(int unfocusCellHeight)
ICell
setUnfocusCellHeight
in interface ICell
unfocusCellHeight
- - height in pixelpublic void addCellAttribute(IControlXYDraw control, int rowSpan, int colSpan)
control
- - cell attribute, eg. CellImage or CellLabelrowSpan
- colSpan
- public void setCellTable(CellTable celltable)
celltable
- the cell table to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |