|
|||||||||
| 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.toolbar.ToolbarButtonField
net.rim.device.api.ui.toolbar.ToolbarSpacer
public class ToolbarSpacer
A spacer used in ToolbarManager or ToolbarSetManager when a particular arrangement
of ToolbarButtonFields is desired. It has no image, no text, no
tooltip and is disabled by default. It occupies the same amount of space as any other ToolbarButtonField.
| Field Summary | ||
|---|---|---|
static long |
ELASTIC
Deprecated. All spacers take up the same space as any ToolbarButtonField |
|
static long |
RIGID
Deprecated. All spacers take up the same space as any ToolbarButtonField |
|
| Constructor Summary | ||
|---|---|---|
ToolbarSpacer()
Creates a ToolbarSpacer with the an ordinal of 0. |
||
ToolbarSpacer(int ordinal)
Creates a ToolbarSpacer with the specified ordinal. |
||
ToolbarSpacer(long style,
int ordinal)
Creates a ToolbarSpacer with a specified style and ordinal. |
||
| Method Summary | ||
|---|---|---|
Image |
getImage()
Returns the Image associated with this ToolbarSpacer. |
|
String |
getText()
Returns the text associated with this ToolbarSpacer. |
|
String |
getToolTip()
Returns the tooltip text associated with this ToolbarSpacer. |
|
void |
invoke()
Invokes the Command associated with this ToolbarSpacer. |
|
boolean |
isEnabled()
Indicates whether the ToolbarSpacer is clickable. |
|
| Methods inherited from class net.rim.device.api.ui.toolbar.ToolbarButtonField |
|---|
createToolbarButton, getCommand, getOrdinal, getPreferredHeight, getPreferredWidth, getTooltip, layout, onDisplay, onExposed, onObscured, paint, run, setCommand, setCommandContext, setEnabled, setImage, setText, setTooltip, touchEvent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long RIGID
public static final long ELASTIC
| Constructor Detail |
|---|
public ToolbarSpacer()
ToolbarSpacer with the an ordinal of 0.
public ToolbarSpacer(int ordinal)
ordinal - Ordinal for this spacer.
public ToolbarSpacer(long style,
int ordinal)
style - Was once one of RIGID or ELASTIC, is now ignoredordinal - Ordinal for this spacer.| Method Detail |
|---|
public final Image getImage()
Image associated with this ToolbarSpacer.
getImage in class ToolbarButtonFieldnull since a ToolbarSpacer has no image associated with it.public final String getText()
ToolbarSpacer.
getText in class ToolbarButtonFieldnull since a ToolbarSpacer has no text associated with it.public final String getToolTip()
ToolbarSpacer.
getToolTip in class ToolbarButtonFieldnull since a ToolbarSpacer has no tooltip text associated with it.public final void invoke()
Command associated with this ToolbarSpacer.
Note: Since a
ToolbarSpacer> has no Command associated with it, this method does nothing.
invoke in class ToolbarButtonField
public final boolean isEnabled()
ToolbarSpacer is clickable.
isEnabled in class ToolbarButtonFieldfalse since a ToolbarSpacer is always disabled and does not accept focus or input.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal