|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
com.sybase.uep.bobclient.controls.Button
com.sybase.uep.bobclient.controls.ToolbarItem
public class ToolbarItem
Field Summary |
---|
Fields inherited from class com.sybase.uep.bobclient.controls.Button |
---|
_appLogger, _controlID, _cushion, _customEventsHandler, _eImage, _focusFontStyle, _image, _imageAlignment, _orientation, _unfocusFontStyle, BUTTON_TOP_BOTTOM_CUSHION, IMAGE_ALIGN_CENTER, IMAGE_ALIGN_LEFT, IMAGE_ALIGN_RIGHT |
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 | |
---|---|
ToolbarItem()
|
Method Summary | |
---|---|
protected void |
drawBorder(net.rim.device.api.ui.Graphics g,
FontStyle buttonFontStyle)
|
protected void |
drawGradient(net.rim.device.api.ui.Graphics g,
FontStyle fontStyle,
int height,
int width)
|
java.lang.String |
getName()
(non-Javadoc) |
int |
getPreferredHeight()
(non-Javadoc) |
int |
getPreferredWidth()
(non-Javadoc) |
ToolbarManager |
getToolbarManager()
Returns toolbar manager |
protected void |
paint(net.rim.device.api.ui.Graphics g)
(non-Javadoc) |
void |
setImage(java.lang.String image,
int alignment)
Add image to the button |
void |
setName(java.lang.String name)
the name works as tooltip value also |
void |
setToolbarManager(ToolbarManager tbm)
Set toolbar manager |
protected boolean |
touchEvent(net.rim.device.api.ui.TouchEvent message)
(non-Javadoc) |
Methods inherited from class com.sybase.uep.bobclient.controls.Button |
---|
drawButton, drawFocus, getAction, getBorderColor, getButtonWidth, getColSpan, getControlID, getCustomEventsDelegate, getFocusFontStyle, getHorizontalAlignment, getRowSpan, getUnfocusFontStyle, getValue, getVerticalAlignment, layout, navigationClick, navigationMovement, navigationUnclick, onFocus, onUnfocus, refresh, refreshFooter, runAction, setAction, setBackgroundColor, setBorderColor, setColSpan, setControlID, setCustomEventsDelegate, setFocusFontStyle, setFooterField, setImage, setImage, setImage, setImageAlignment, setLabel, setLabel, setLayoutHeight, setLayoutWidth, setProperty, setProperty, setProperty, setRowSpan, setUnfocusFontStyle, setVariableLabel, toString |
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, 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, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, 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, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolbarItem()
Method Detail |
---|
public ToolbarManager getToolbarManager()
public void setToolbarManager(ToolbarManager tbm)
tbm
- the toolbar manager to setpublic int getPreferredHeight()
getPreferredHeight
in interface Control
getPreferredHeight
in class Button
int
value of the available layout heightField.getPreferredHeight()
public int getPreferredWidth()
getPreferredWidth
in interface Control
getPreferredWidth
in class Button
int
value of the available layout widthField.getPreferredWidth()
public java.lang.String getName()
Button
getName
in interface Control
getName
in class Button
Control.getName()
public void setName(java.lang.String name)
name
- protected void paint(net.rim.device.api.ui.Graphics g)
paint
in class Button
Field.paint(Graphics g)
protected void drawGradient(net.rim.device.api.ui.Graphics g, FontStyle fontStyle, int height, int width)
drawGradient
in class Button
protected void drawBorder(net.rim.device.api.ui.Graphics g, FontStyle buttonFontStyle)
drawBorder
in class Button
protected boolean touchEvent(net.rim.device.api.ui.TouchEvent message)
Button
touchEvent
in class Button
Field.touchEvent(TouchEvent message)
public void setImage(java.lang.String image, int alignment)
Button
setImage
in class Button
image
- String
for the file name of the imagealignment
- int
value for the alignment of the button.
Can be IMAGE_ALIGN_LEFT
(image will be to the left of the text if any),
IMAGE_ALIGN_RIGHT
(image will be to the right of the text if any),
or IMAGE_ALIGN_CENTER
(image will be to the center and there shouldn't be text otherwise it will paint over the text)Button.setImage(String, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |