|
|||||||||
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.ScrollView
net.rim.device.api.ui.Manager
net.rim.device.api.ui.Screen
net.rim.device.api.ui.container.PopupScreen
net.rim.blackberry.api.sendmenu.SendCommandScreen
public class SendCommandScreen
Represents a pop-up dialog screen that is specialized for displaying
and executing encapsulated SendCommand
objects.
This class can be used as an alternative to SendCommandMenu
.
For example, a "Send" toolbar item could display this
SendCommandScreen
when a user clicks it.
Field Summary | ||
---|---|---|
|
static long |
DEFAULT_STYLE
Default style of the screen. |
|
static StringProvider |
DEFAULT_TEXT
Default title of the pop-up screen. |
Fields inherited from class net.rim.device.api.ui.Screen |
---|
DEFAULT_CLOSE, DEFAULT_MENU, NO_SYSTEM_MENU_ITEMS |
Fields inherited from class net.rim.device.api.ui.Manager |
---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, HORIZONTAL_SCROLL_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK, VERTICAL_SCROLL_MASK |
Constructor Summary | ||
---|---|---|
|
SendCommandScreen(SendCommand[] commands)
Constructs a new SendCommandScreen instance with the
specified SendCommand objects. |
|
|
SendCommandScreen(SendCommand[] commands,
long style)
Constructs a new SendCommandScreen instance with the
specified SendCommand objects and the style
parameter that is passed to the constructor of the superclass,
PopupScreen . |
Method Summary | ||
---|---|---|
|
SendCommand[] |
getSendCommands()
Returns the array of SendCommand objects that was provided
to the constructor. |
|
void |
handleSendCommandException(SendCommand sendCommand,
SendCommandException exception)
Displays an error message in a dialog box. |
Methods inherited from class net.rim.device.api.ui.container.PopupScreen |
---|
getAccessibleContext, paint, sublayout |
Methods inherited from class net.rim.device.api.ui.Manager |
---|
addAll, cursorMovement, deleteAll, getHorizontalScroll, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, insertAll, invalidateFieldRange, isDownArrowShown, isUpArrowShown, isValidLayout, layout, layoutChild, moveFocus, moveFocus, nextFocus, nextFocus, paintChild, setFocus, setPositionChild, setScrollingInertial, setVirtualExtent, shouldCursorScroll, subpaint |
Methods inherited from class net.rim.device.api.ui.ScrollView |
---|
configurationChanged, getHorizontalAdjustment, getVerticalAdjustment, getVisibleHeight, getVisibleWidth, setCurrentLocation, setExtent, setHorizontalAdjustment, setHorizontalScroll, setHorizontalScroll, setScrollListener, setVerticalAdjustment, setVerticalScroll, setVerticalScroll, valueChanged, waitForScrolling |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_STYLE
public static final StringProvider DEFAULT_TEXT
Constructor Detail |
---|
public SendCommandScreen(SendCommand[] commands)
SendCommandScreen
instance with the
specified SendCommand
objects.
The constructed SendCommandScreen
uses the default style
of the superclass, PopupScreen
.
commands
- An array of SendCommand
objects, each of
which maps to a button on the pop-up screen.
NullPointerException
- if commands
is null
.public SendCommandScreen(SendCommand[] commands, long style)
SendCommandScreen
instance with the
specified SendCommand
objects and the style
parameter that is passed to the constructor of the superclass,
PopupScreen
.
The SendCommand
objects in the specified array are
displayed in this SendCommandScreen
. The
SendCommand
that is selected by the user will have its
run()
method invoked.
If the specified SendCommand
array is null
,
then a NullPointerException
is thrown. However, any
null
elements in the specified SendCommand
array are ignored.
commands
- An array of SendCommand
objects, each of
which maps to a button on the pop-up screen.style
- The style for the screen. This value is simply passed to the constructor of the super class. Please see Manager
and Field
NullPointerException
- if commands
is null
.Method Detail |
---|
public void handleSendCommandException(SendCommand sendCommand, SendCommandException exception)
This method is invoked by this SendCommandScreen
if the
SendCommand.run()
method of the executed SendCommand
throws a SendCommandException
.
This method may be overridden in subclasses.
sendCommand
- The executed SendCommand
.exception
- The SendCommandException
that was thrown by
the executed SendCommand
.public SendCommand[] getSendCommands()
SendCommand
objects that was provided
to the constructor.
SendCommand
objects that was provided
to the constructor. This method never returns null
.
|
|||||||||
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