|
|||||||||
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.BitmapField
com.sybase.uep.bobclient.controls.FooterField
public class FooterField
This is a custom Footer Field control It will paint the footer on the bottom of the screen
Field Summary | |
---|---|
static int |
DEFAULT_BORDER_COLOR
|
static int |
DEFAULT_TEXT_HEIGHT_SPACER
|
Fields inherited from class net.rim.device.api.ui.component.BitmapField |
---|
STAMP_MONOCHROME |
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 | |
---|---|
FooterField()
FooterField Constructor |
Method Summary | |
---|---|
FontStyle |
getFontStyle()
Get this control's font style |
java.lang.String |
getLabel()
Get the label of this footer |
int |
getPreferredHeight()
Retrieves the footer's preferred height |
int |
getPreferredWidth()
Retrieves the footer's preferred height |
boolean |
hasBorder()
Check to see if border is turned on |
void |
invalidate()
Method to invalidate the field to force it to redraw |
protected void |
layout(int width,
int height)
Lays out field contents. |
void |
paint(net.rim.device.api.ui.Graphics graphics)
Invoked by the framework to redraw the footer. |
void |
refresh()
refresh the fpoter |
void |
setBorderColor(int color)
Set the border color for this footer |
void |
setFontStyle(FontStyle fontStyle)
Set the font style for this control |
void |
setHasBorder(boolean hasBorder)
Set to have border around the footer or not |
void |
setLabel(java.lang.String label)
Set the label for this footer |
void |
setProperty(int key,
java.lang.String value)
Set the property values for the footer |
void |
setVariableLabel(ControlVariable variable)
Set the control variable object for the label |
Methods inherited from class net.rim.device.api.ui.component.BitmapField |
---|
drawFocus, getBitmap, getBitmapHeight, getBitmapWidth, paintBitmap, setBitmap, setImage, setSpace |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getAccessibleContext, 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, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, makeContextMenu, moveFocus, moveFocus, navigationClick, navigationMovement, navigationUnclick, onDisplay, onExposed, onFocus, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onUnfocus, onVisibilityChange, paintBackground, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, touchEvent, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_BORDER_COLOR
public static final int DEFAULT_TEXT_HEIGHT_SPACER
Constructor Detail |
---|
public FooterField()
Method Detail |
---|
public void setVariableLabel(ControlVariable variable)
variable
- - control variable objectpublic FontStyle getFontStyle()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- - font style objectpublic void paint(net.rim.device.api.ui.Graphics graphics)
paint
in class net.rim.device.api.ui.component.BitmapField
graphics
- - Graphics context for drawingpublic void setHasBorder(boolean hasBorder)
bol
- - True will have a border around the footerpublic boolean hasBorder()
public void setBorderColor(int color)
color
- int value for the hex color valuepublic void setLabel(java.lang.String label)
label
- String value for the labelpublic java.lang.String getLabel()
public void refresh()
public void setProperty(int key, java.lang.String value)
key
- - Unique key of a specific footer attributevalue
- - The supplied value for this attributepublic int getPreferredHeight()
getPreferredHeight
in class net.rim.device.api.ui.component.BitmapField
public int getPreferredWidth()
getPreferredWidth
in class net.rim.device.api.ui.component.BitmapField
protected void layout(int width, int height)
layout
in class net.rim.device.api.ui.component.BitmapField
width
- - Amount of available horizontal space.height
- - Amount of available vertical space.public void invalidate()
invalidate
in class net.rim.device.api.ui.Field
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |