|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.component.LabelField
com.sybase.uep.bobclient.controls.Label
com.sybase.uep.bobclient.controls.celltable.CellLabel
public class CellLabel
Represents cell attribute that only contains text
Field Summary |
---|
Fields inherited from class com.sybase.uep.bobclient.controls.Label |
---|
_controlID, _customEventsHandler, _dataParts, _orientation, _wrapText |
Fields inherited from class net.rim.device.api.ui.component.LabelField |
---|
DEFAULT_POSITION |
Fields inherited from class net.rim.device.api.ui.Field |
---|
ACTION_INVOKE, EDITABLE, EDITABLE_MASK, FIELD_BOTTOM, FIELD_HALIGN_MASK, FIELD_HCENTER, FIELD_LEADING, FIELD_LEFT, FIELD_RIGHT, FIELD_TOP, FIELD_TRAILING, FIELD_VALIGN_MASK, FIELD_VCENTER, FOCUSABLE, FOCUSABLE_MASK, HIGHLIGHT_FOCUS, HIGHLIGHT_SELECT, NON_FOCUSABLE, NON_SPELLCHECKABLE, READONLY, SPELLCHECKABLE, SPELLCHECKABLE_MASK, STATUS_MOVE_FOCUS_HORIZONTALLY, STATUS_MOVE_FOCUS_VERTICALLY, USE_ALL_HEIGHT, USE_ALL_WIDTH, VISUAL_STATE_ACTIVE, VISUAL_STATE_DISABLED, VISUAL_STATE_DISABLED_FOCUS, VISUAL_STATE_FOCUS, VISUAL_STATE_NORMAL |
Fields inherited from interface net.rim.device.api.ui.DrawStyle |
---|
BASELINE, BOTTOM, ELLIPSIS, HALIGN_MASK, HCENTER, HDEFAULT, HFULL, LEADING, LEFT, RIGHT, TOP, TRAILING, TRUNCATE_BEGINNING, VALIGN_MASK, VCENTER, VDEFAULT, VFULL |
Constructor Summary | |
---|---|
CellLabel(long style)
|
|
CellLabel(java.lang.String label,
long style)
|
Method Summary | |
---|---|
void |
addLabelItem(java.lang.Object value,
int itemType)
Adds cell label item to the label |
void |
addLabelItemConfig(CellLabelItemConfig labelItemConfig)
Adds configuration of a label item to the label |
void |
draw(net.rim.device.api.ui.Graphics g,
int relativeX,
int relativeY,
boolean isFocus)
Draws the item that implements the interface |
int |
getAbsoluteXPos()
Returns the cell label's absolute X position. |
int |
getAbsoluteXPosFocus()
Returns the cell label's absolute X position when focused. |
int |
getAbsoluteYPos()
Returns the cell label's absolute Y position. |
int |
getAbsoluteYPosFocus()
Returns the cell label's absolute Y position when focused. |
CellLabelConfig |
getLabelConfig()
Gets the label configuration |
int |
getPreferredWidth()
(non-Javadoc) |
int |
getPreferredWidth(boolean isFocus)
Returns preferred width based on whether focused |
int |
getXPosition(boolean isFocus)
Gets the X coordinator of the drawing item |
int |
getYPosition(boolean isFocus)
Gets the Y coordinator of the drawing item |
boolean |
isFocus()
|
void |
setColSpan(int columnSpan)
(non-Javadoc) |
void |
setFocus()
|
void |
setFocusFontStyle(FontStyle focusFontStyle)
Set the focus font style for this control |
void |
setLabelConfig(CellLabelConfig labelConfig)
Sets label configuration |
void |
setLabelFocus(boolean isFocus)
Sets the focus status |
void |
setOrder(int order)
Sets the order of the label |
void |
setRowSpan(int rowSpan)
(non-Javadoc) |
void |
setUnfocusFontStyle(FontStyle unfocusFontStyle)
Sets unfocused font style |
void |
setWrapText(boolean isWrapText)
Set if the text should wrap or not |
void |
setXPosition(int xPos,
boolean isFocus)
Sets the X coordinator of the drawing item |
void |
setYPosition(int yPos,
boolean isFocus)
Sets the Y coordinator of the drawing item |
Methods inherited from class com.sybase.uep.bobclient.controls.Label |
---|
drawFocus, drawLabel, getColSpan, getControlID, getCustomEventsDelegate, getFocusFontStyle, getFontStyle, getHorizontalAlignment, getLabelWidth, getLayoutWidth, getName, getPreferredHeight, getRowSpan, getValue, getVerticalAlignment, layout, navigationClick, navigationMovement, navigationUnclick, onFocus, onUnfocus, paint, refresh, resetTextIfTruncated, setBackgroundColor, setControlID, setCustomEventsDelegate, setFontStyle, setFooterField, setIsGridType, setIsRequired, setLayoutHeight, setLayoutWidth, setProperty, setRequiredForegroundColor, setText, setVariableLabel, setWrapHeight, touchEvent |
Methods inherited from class net.rim.device.api.ui.component.LabelField |
---|
getAccessibleContext, getPosition, getText, isSelectionCopyable, selectionCopy, setPosition, setText, setText, setText, toString |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFocusRect, getFont, getHeight, getIndex, getLeafFieldWithFocus, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidate, invalidate, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocusable, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, makeContextMenu, moveFocus, moveFocus, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, paintBackground, paste, select, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CellLabel(long style)
public CellLabel(java.lang.String label, long style)
Method Detail |
---|
public int getPreferredWidth()
Label
getPreferredWidth
in interface Control
getPreferredWidth
in class Label
int
value of the available layout widthControl.getPreferredWidth()
public int getPreferredWidth(boolean isFocus)
isFocus
- whether it is focused
public void setLabelFocus(boolean isFocus)
isFocus
- public void setFocus()
setFocus
in class net.rim.device.api.ui.Field
public boolean isFocus()
isFocus
in class net.rim.device.api.ui.Field
public void draw(net.rim.device.api.ui.Graphics g, int relativeX, int relativeY, boolean isFocus)
IControlXYDraw
draw
in interface IControlXYDraw
g
- - Graphics objectrelativeX
- - relative X coordinatorrelativeY
- - relative Y coordinatorisFocus
- - true means the control is focusedpublic int getXPosition(boolean isFocus)
IControlXYDraw
getXPosition
in interface IControlXYDraw
isFocus
- - true means the method returns the position when the control is focused
public void setXPosition(int xPos, boolean isFocus)
IControlXYDraw
setXPosition
in interface IControlXYDraw
xPos
- - X coordinatorisFocus
- - true means xPos is the position when the control is focusedpublic int getYPosition(boolean isFocus)
IControlXYDraw
getYPosition
in interface IControlXYDraw
isFocus
- - true means the method returns the position when the control is focused
public void setYPosition(int yPos, boolean isFocus)
IControlXYDraw
setYPosition
in interface IControlXYDraw
yPos
- - Y coordinatorisFocus
- - true means yPos is the position when the control is focusedpublic CellLabelConfig getLabelConfig()
public void setLabelConfig(CellLabelConfig labelConfig)
labelConfig
- public void setFocusFontStyle(FontStyle focusFontStyle)
Label
setFocusFontStyle
in class Label
focusFontStyle
- FontStyle
font style objectFontStyle
public void setUnfocusFontStyle(FontStyle unfocusFontStyle)
unfocusFontStyle
- public void setRowSpan(int rowSpan)
Label
setRowSpan
in interface Control
setRowSpan
in class Label
rowSpan
- int
value of the row spanControl.setRowSpan(int rowspan)
public void setColSpan(int columnSpan)
Label
setColSpan
in interface Control
setColSpan
in class Label
columnSpan
- int
value of the column spanControl.setColSpan(int colspan)
public void addLabelItemConfig(CellLabelItemConfig labelItemConfig)
labelItemConfig
- public void setWrapText(boolean isWrapText)
Label
setWrapText
in class Label
isWrapText
- true
if text should auto wrap, otherwise false
public void setOrder(int order)
order
- - used among cell attributes to determine display positionpublic void addLabelItem(java.lang.Object value, int itemType)
value
- itemType
- - defined in ICellAttributeTypeConstantspublic int getAbsoluteXPos()
public int getAbsoluteYPos()
public int getAbsoluteXPosFocus()
public int getAbsoluteYPosFocus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |