|
||||||||||
| 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
de.enough.polish.blackberry.nativeui.StringItemLabelField
public class StringItemLabelField
Paints a J2ME Polish field as it behaves normally instead of using a native BlackBerry representation.
Copyright Enough Software 2010
| Field Summary | |
|---|---|
protected StringItem |
stringItem
|
| 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, AXIS_HORIZONTAL, AXIS_SEQUENTIAL, AXIS_VERTICAL, 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 | |
|---|---|
StringItemLabelField(StringItem parent)
Creates a new custom field with a FIELD_LEFT style |
|
StringItemLabelField(StringItem parent,
long style)
Creates a new custom field |
|
| Method Summary | |
|---|---|
void |
animate(long currentTime,
ClippingRegion repaintRegion)
Animates this element. |
Item |
getPolishItem()
Retrieves access to the parent item of this Native item. |
void |
notifyValueChanged(Item parent,
Object value)
Notifies the native implementation about a value change. |
| Methods inherited from class net.rim.device.api.ui.component.LabelField |
|---|
getAccessibleContext, getPosition, getPreferredHeight, getPreferredWidth, getText, isSelectionCopyable, layout, paint, selectionCopy, setPosition, setText, setText, setText, setText, toString |
| Methods inherited from class net.rim.device.api.ui.Field |
|---|
applyTheme, assertHaveEventLock, drawFocus, drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getCommandItemProvider, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, 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, isEnabled, isFocus, isFocusable, isMuddy, isPasteable, isScrollCopyable, isSelectable, isSelecting, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, moveFocus, moveFocus, navigationClick, navigationMovement, navigationUnclick, onDisplay, onExposed, onFocus, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onUnfocus, onVisibilityChange, paintBackground, paste, select, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCommandItemProvider, setCookie, setDirty, setEditable, setEnabled, setExtent, setFocus, setFocusListener, setFont, setMargin, setMargin, setMinimalWidth, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, touchEvent, trackwheelClick, trackwheelRoll, trackwheelUnclick, updateLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected StringItem stringItem
| Constructor Detail |
|---|
public StringItemLabelField(StringItem parent)
parent - the parent item
public StringItemLabelField(StringItem parent,
long style)
parent - the parent itemstyle - the BlackBerry native style| Method Detail |
|---|
public Item getPolishItem()
NativeItem
getPolishItem in interface NativeItem
public void notifyValueChanged(Item parent,
Object value)
NativeItem
notifyValueChanged in interface NativeItemparent - the J2ME Polish parent item.value - the new value, might be null
public void animate(long currentTime,
ClippingRegion repaintRegion)
Animatable
animate in interface AnimatablecurrentTime - the current time in millisecondsrepaintRegion - the repaint area that needs to be updated when this item is animatedItem.addRelativeToContentRegion(ClippingRegion, int, int, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||