Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.component.ui
Class BBCommandButton.buttonImpl

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.component.ButtonField
          extended by oracle.adfnmc.component.ui.BBCommandButton.buttonImpl
All Implemented Interfaces:
net.rim.device.api.ui.DrawStyle, BBCommandButton.IButtonComponent, BBPositionField, INativeUiComponent
Enclosing class:
BBCommandButton

public class BBCommandButton.buttonImpl
extends net.rim.device.api.ui.component.ButtonField
implements BBCommandButton.IButtonComponent


Field Summary
 
Fields inherited from class net.rim.device.api.ui.component.ButtonField
BARE, CONSUME_CLICK, NEVER_DIRTY
 
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
BBCommandButton.buttonImpl(java.lang.String label, long style)
           
 
Method Summary
 void dispose()
           
 void doLayout(int width, int height)
           
 Component getAdfmcOwner()
           
 boolean getFocusable()
           
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 java.lang.String getText()
           
 boolean getVisible()
           
 int getX()
           
 int getY()
           
 boolean hasFocus()
           
 void invalidateControl()
           
protected  boolean invokeAction(int action)
           
 boolean isDisabled()
           
 boolean isFocusable()
           
protected  boolean keyChar(char key, int status, int time)
           
protected  void layout(int width, int height)
           
protected  void onFocus(int direction)
           
protected  void onUnfocus()
           
protected  void paint(net.rim.device.api.ui.Graphics g)
           
protected  void paintBackground(net.rim.device.api.ui.Graphics g)
           
 void setDisabled(boolean disabled)
           
 void setFocusable(boolean focusable)
           
 void setHeightInternal(int height)
          Sets the extent to the specified height and forces a relayout of the control.
 void setIcon(net.rim.device.api.system.Bitmap icon)
           
 void setIconPosition(int iconPosition)
           
 void setText(java.lang.String text)
           
 void setVisible(boolean visible)
           
 void setWidthInternal(int width)
          Sets the extent to the specified width and forces a relayout of the control.
protected  boolean touchEvent(net.rim.device.api.ui.TouchEvent event)
           
protected  boolean trackwheelClick(int status, int time)
           
 
Methods inherited from class net.rim.device.api.ui.component.ButtonField
drawFocus, getAccessibleContext, getLabel, getRunnable, keyDown, keyUp, setDirty, setLabel, setMuddy, setRunnable, trackwheelUnclick
 
Methods inherited from class net.rim.device.api.ui.Field
applyTheme, assertHaveEventLock, drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, 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, isDataValid, isDirty, isEditable, isFocus, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyControl, keyRepeat, keyStatus, makeContextMenu, moveFocus, moveFocus, navigationClick, navigationMovement, navigationUnclick, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setEditable, setExtent, setFocus, setFocusListener, setFont, setMargin, setMargin, setMinimalWidth, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelRoll, updateLayout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.component.ui.INativeUiComponent
isVisible
 

Constructor Detail

BBCommandButton.buttonImpl

public BBCommandButton.buttonImpl(java.lang.String label,
                                  long style)
Method Detail

setText

public void setText(java.lang.String text)
Specified by:
setText in interface BBCommandButton.IButtonComponent

getText

public java.lang.String getText()
Specified by:
getText in interface BBCommandButton.IButtonComponent

setIcon

public void setIcon(net.rim.device.api.system.Bitmap icon)
Specified by:
setIcon in interface BBCommandButton.IButtonComponent

setIconPosition

public void setIconPosition(int iconPosition)
Specified by:
setIconPosition in interface BBCommandButton.IButtonComponent

layout

protected void layout(int width,
                      int height)
Overrides:
layout in class net.rim.device.api.ui.component.ButtonField

getX

public int getX()
Specified by:
getX in interface BBPositionField

getY

public int getY()
Specified by:
getY in interface BBPositionField

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface INativeUiComponent
Overrides:
isFocusable in class net.rim.device.api.ui.Field

onFocus

protected void onFocus(int direction)
Overrides:
onFocus in class net.rim.device.api.ui.Field

onUnfocus

protected void onUnfocus()
Overrides:
onUnfocus in class net.rim.device.api.ui.component.ButtonField

hasFocus

public boolean hasFocus()
Specified by:
hasFocus in interface BBCommandButton.IButtonComponent

paintBackground

protected void paintBackground(net.rim.device.api.ui.Graphics g)
Overrides:
paintBackground in class net.rim.device.api.ui.Field

paint

protected void paint(net.rim.device.api.ui.Graphics g)
Overrides:
paint in class net.rim.device.api.ui.component.ButtonField

setDisabled

public void setDisabled(boolean disabled)
Specified by:
setDisabled in interface INativeUiComponent

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface INativeUiComponent

getFocusable

public boolean getFocusable()
Specified by:
getFocusable in interface BBCommandButton.IButtonComponent

setFocusable

public void setFocusable(boolean focusable)
Specified by:
setFocusable in interface BBCommandButton.IButtonComponent

getVisible

public boolean getVisible()
Specified by:
getVisible in interface BBCommandButton.IButtonComponent

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface BBCommandButton.IButtonComponent

getPreferredWidth

public int getPreferredWidth()
Overrides:
getPreferredWidth in class net.rim.device.api.ui.component.ButtonField

getPreferredHeight

public int getPreferredHeight()
Overrides:
getPreferredHeight in class net.rim.device.api.ui.component.ButtonField

invokeAction

protected boolean invokeAction(int action)
Overrides:
invokeAction in class net.rim.device.api.ui.component.ButtonField

touchEvent

protected boolean touchEvent(net.rim.device.api.ui.TouchEvent event)
Overrides:
touchEvent in class net.rim.device.api.ui.Field

trackwheelClick

protected boolean trackwheelClick(int status,
                                  int time)
Overrides:
trackwheelClick in class net.rim.device.api.ui.component.ButtonField

keyChar

protected boolean keyChar(char key,
                          int status,
                          int time)
Overrides:
keyChar in class net.rim.device.api.ui.component.ButtonField

dispose

public void dispose()
Specified by:
dispose in interface INativeUiComponent

invalidateControl

public void invalidateControl()
Specified by:
invalidateControl in interface INativeUiComponent

setWidthInternal

public void setWidthInternal(int width)
Sets the extent to the specified width and forces a relayout of the control.

Specified by:
setWidthInternal in interface BBCommandButton.IButtonComponent
Parameters:
width - - the new width

setHeightInternal

public void setHeightInternal(int height)
Sets the extent to the specified height and forces a relayout of the control.

Specified by:
setHeightInternal in interface BBCommandButton.IButtonComponent
Parameters:
height - - the new height

doLayout

public void doLayout(int width,
                     int height)
Specified by:
doLayout in interface INativeUiComponent

getAdfmcOwner

public Component getAdfmcOwner()
Specified by:
getAdfmcOwner in interface INativeUiComponent

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.