net.rim.device.api.ui.component.progressindicator
Class AbstractProgressIndicatorView

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.ScrollView
          extended by net.rim.device.api.ui.Manager
              extended by net.rim.device.api.ui.component.progressindicator.AbstractProgressIndicatorView
All Implemented Interfaces:
AdjustmentListener
Direct Known Subclasses:
ActivityIndicatorView, ProgressIndicatorView

public abstract class AbstractProgressIndicatorView
extends Manager

This manager presents an animating field to the user to indicate the progress of work being done by an application.

This manager accepts a delegate for handling layout and focus. If no delegate is provided, this manager defaults to using a VerticalFieldManager. All fields and managers added to this manager are, in fact, added to the delegate. The delegate is the only field directly stored within this manager. All access methods for adding, deleting, getting, inserting, and replacing are processed by the delegate as if those fields were direct children of this manager.

This manager follows the Model-View-Controller design pattern and, as such, also accepts the setting of an AbstractProgressIndicatorModel and an AbstractProgressIndicatorController. The model is responsible for handling the background data structures that represent the progress being made. The controller is responsible for defining the customized handling of user input.

If the controller does not consume an input event, this manager allows the delegate to handle the input. If it is not desired for the delegate to handle input, then you must override the various input methods: AbstractProgressIndicatorView.keyChar(char, int, int), AbstractProgressIndicatorView.keyControl(char, int, int), AbstractProgressIndicatorView.keyDown(int, int), AbstractProgressIndicatorView.keyRepeat(int, int), AbstractProgressIndicatorView.keyUp(int, int), AbstractProgressIndicatorView.navigationClick(int, int), AbstractProgressIndicatorView.navigationMovement(int, int, int, int), and AbstractProgressIndicatorView.touchEvent(net.rim.device.api.ui.TouchEvent).

Since:
BlackBerry API 6.0.0

Field Summary
 
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
 
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
 
Constructor Summary
AbstractProgressIndicatorView(long style)
          Constructs a new AbstractProgressIndicatorView, assigning a VerticalFieldManager as the delegate.
AbstractProgressIndicatorView(long style, Manager delegate)
          Constructs a new AbstractProgressIndicatorView, assigning the specified delegate.
 
Method Summary
 void add(Field field)
          Adds a field to this view.
 void addAll(Field[] fields)
          Adds an array of fields to this view.
protected  void cancelled()
          The current representation of progress has been cancelled.
 void configurationChanged(Adjustment source)
          Called when one of the Adjustment fields has been changed (other than the value field).
 void createLabel(String label)
          Creates a new LabelField and sets its text.
 void createLabel(String label, long style)
          Creates a new LabelField and sets its text.
 void delete(Field field)
          Removes a field from this view.
 void deleteAll()
          Removes all fields from this view.
 void deleteRange(int start, int count)
          Removes a range of fields from this view.
 AbstractProgressIndicatorController getController()
          Returns the ProgressIndicatorController that has been set as the controller for this view.
 Manager getDelegate()
          Returns this view's delegate manager.
 Field getField(int index)
          Returns the controlled field at a specified index.
 int getFieldAtLocation(int x, int y)
          Returns the index of a field under a particular point.
 int getFieldCount()
          Returns the number of fields controlled by this manager's delegate.
 Field getFieldWithFocus()
          Returns the controlled field with focus.
 int getFieldWithFocusIndex()
          Returns the index of the controlled field with focus.
 String getLabel()
          Returns the text of the label for this view.
 LabelField getLabelField()
          Returns the label for this view.
 AbstractProgressIndicatorModel getModel()
          Returns the ProgressIndicatorModel that has been set as the model for this view.
 void insert(Field field, int index)
          Inserts a field into this manager.
protected  boolean keyChar(char ch, int status, int time)
          Handles key generation events.
protected  boolean keyControl(char ch, int status, int time)
          Sends key generation events to the controlled field with focus.
protected  boolean keyDown(int keycode, int time)
          Sends key down events to the controlled field with focus.
protected  boolean keyRepeat(int keycode, int time)
          Sends key repeat events to the controlled field with focus.
protected  boolean keyStatus(int keycode, int time)
          Sends key status event to the controlled field with focus.
protected  boolean keyUp(int keycode, int time)
          Sends key up event to the controlled field with focus.
protected  boolean navigationClick(int status, int time)
          Invoked when the navigational action is selected.
protected  boolean navigationMovement(int dx, int dy, int status, int time)
          Invoked when a navigational motion occurs.
protected  int nextFocus(int direction, int axis)
          Override of Manager.nextFocus().
 void replace(Field oldField, Field newField)
          Removes a field from this manager's delegate and replaces it with another field.
protected  void reset()
          The data model has been reset to its initial state.
protected  void resumed()
          The data model has resumed progress.
 void setController(AbstractProgressIndicatorController controller)
          Sets the controller for this view.
 void setLabel(String label)
          Sets the text of the currently assigned label.
 void setModel(AbstractProgressIndicatorModel model)
          Sets the model for this view.
protected  void setNonProgrammaticValue(int value)
          Invoked when the value in the data model has changed via non-programmatic means.
protected  void sublayout(int width, int height)
          Implements custom layout features for this manager.
protected  boolean touchEvent(TouchEvent message)
          Handles touch input events (see TouchEvent).
 
Methods inherited from class net.rim.device.api.ui.Manager
cursorClick, cursorUnclick, getAccessibleContext, getFocusRect, getHorizontalScroll, getLeafFieldWithFocus, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, insertAll, invalidate, invalidate, invalidateFieldRange, invokeAction, isDataValid, isDirty, isDownArrowShown, isFocusable, isMuddy, isSelecting, isUpArrowShown, isValidLayout, layout, layoutChild, makeMenu, moveFocus, moveFocus, navigationUnclick, nextFocus, onFocus, onUnfocus, paint, paintChild, setDirty, setFocus, setHorizontalQuantization, setPositionChild, setScrollingInertial, setVerticalQuantization, setVirtualExtent, subpaint, trackwheelClick, trackwheelUnclick
 
Methods inherited from class net.rim.device.api.ui.ScrollView
getHorizontalAdjustment, getVerticalAdjustment, getVisibleHeight, getVisibleWidth, onDisplay, onExposed, onUndisplay, setCurrentLocation, setExtent, setHorizontalAdjustment, setHorizontalScroll, setHorizontalScroll, setScrollListener, setVerticalAdjustment, setVerticalScroll, setVerticalScroll, valueChanged, waitForScrolling
 
Methods inherited from class net.rim.device.api.ui.Field
drawFocus, drawHighlightRegion, fieldChangeNotify, focusAdd, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getCommandItemProvider, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFont, getHeight, getIndex, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPreferredHeight, getPreferredWidth, getScreen, getStyle, getTextFillColor, getTextStrokeColor, getTop, getVisualState, getWidth, invalidateAll, isEditable, isEnabled, isFocus, isLeftToRight, isPasteable, isScrollCopyable, isSelectable, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, makeContextMenu, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCommandItemProvider, setCookie, setEditable, setEnabled, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, updateLayout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

AbstractProgressIndicatorView

public AbstractProgressIndicatorView(long style)
Constructs a new AbstractProgressIndicatorView, assigning a VerticalFieldManager as the delegate.

Parameters:
style - The field style bits. See Field.
Since:
BlackBerry API 6.0.0

AbstractProgressIndicatorView

public AbstractProgressIndicatorView(long style,
                                     Manager delegate)
Constructs a new AbstractProgressIndicatorView, assigning the specified delegate.

Parameters:
style - The field style bits. See Field.
delegate - The Manager that is responsible for layout and focus for the view. If null, a VerticalFieldManager is assigned.
Since:
BlackBerry API 6.0.0


Method Detail

add

public void add(Field field)
Adds a field to this view.

This method prompts this view's delegate manager to add a new field.

Overrides:
add in class Manager
Parameters:
field - The Field to add.
Since:
BlackBerry API 6.0.0

addAll

public void addAll(Field[] fields)
Adds an array of fields to this view.

This method prompts the view's delegate manager to add the fields.

Overrides:
addAll in class Manager
Parameters:
fields - An array of Fields to add.
Throws:
IllegalStateException - if a field has already been added to the manager.
IllegalArgumentException - if a field is being added to itself.
Since:
BlackBerry API 6.0.0

cancelled

protected void cancelled()
The current representation of progress has been cancelled.

Since:
BlackBerry API 6.0.0

configurationChanged

public void configurationChanged(Adjustment source)
Called when one of the Adjustment fields has been changed (other than the value field).

Specified by:
configurationChanged in interface AdjustmentListener
Overrides:
configurationChanged in class ScrollView
Parameters:
source - The Adjustment.
Since:
BlackBerry API 6.0.0

createLabel

public void createLabel(String label)
Creates a new LabelField and sets its text. This label is created with no style bits set.

Parameters:
label - The text to set for the label.
Since:
BlackBerry API 6.0.0

createLabel

public void createLabel(String label,
                        long style)
Creates a new LabelField and sets its text.

Parameters:
label - The text to set for the label.
style - The style bits to set for the LabelField.
Since:
BlackBerry API 6.0.0

delete

public void delete(Field field)
Removes a field from this view.

This method prompts this view's delegate manager to remove the field.

Overrides:
delete in class Manager
Parameters:
field - The Field to remove.
Throws:
IllegalArgumentException - if the field to be deleted does not belong to this manager.
Since:
BlackBerry API 6.0.0

deleteAll

public void deleteAll()
Removes all fields from this view.

This method prompts this view's delegate manager to remove all fields.

Overrides:
deleteAll in class Manager
Since:
BlackBerry API 6.0.0

deleteRange

public void deleteRange(int start,
                        int count)
Removes a range of fields from this view. Provide the index of the first field you want to delete and the number of fields to delete.

This method prompts this view's delegate manager to remove the fields.

Overrides:
deleteRange in class Manager
Parameters:
start - Index at which to begin deletion.
count - Number of fields to delete.
Throws:
IndexOutOfBoundsException - if start or count are invalid.
Since:
BlackBerry API 6.0.0

getController

public AbstractProgressIndicatorController getController()
Returns the ProgressIndicatorController that has been set as the controller for this view.

Returns:
The ProgressIndicatorController that has been set for this view or null if none has been set.
Since:
BlackBerry API 6.0.0

getDelegate

public Manager getDelegate()
Returns this view's delegate manager.

Returns:
The delegate manager for this view.
Since:
BlackBerry API 6.0.0

getField

public Field getField(int index)
Returns the controlled field at a specified index.

Overrides:
getField in class Manager
Parameters:
index - Index of the field to return.
Returns:
Controlled field at the specified index.
Throws:
IndexOutOfBoundsException - if index is not valid.
Since:
BlackBerry API 6.0.0

getFieldAtLocation

public int getFieldAtLocation(int x,
                              int y)
Returns the index of a field under a particular point.

Given the coordinates of a point that is local to this manager's extent, this method returns the index of the controlled field under that point (or -1 if no field is found under the specified point).

This method constrains its search to the extent of this manager. If you provide a coordinate outside this manager's extent, this method uses values along the edges of the extent as required.

By default, this method performs a linear search hit, testing each controlled field in turn. If you implement a manager, you can override this method to optimize its functionality.

This method prompts this view's delegate manager to perform the search through the children for it.

Overrides:
getFieldAtLocation in class Manager
Parameters:
x - Distance from the left edge of manager's extent.
y - Distance from the top edge of manager's extent.
Returns:
Index of the field, -1 if no field is found.
Since:
BlackBerry API 6.0.0

getFieldCount

public int getFieldCount()
Returns the number of fields controlled by this manager's delegate. The delegate itself is not included within the count.

Overrides:
getFieldCount in class Manager
Returns:
Number of fields controlled by this manager's delegate.
Since:
BlackBerry API 6.0.0

getFieldWithFocus

public Field getFieldWithFocus()
Returns the controlled field with focus.

Invoke this method to return the field controlled by this manager's delegate that has the focus. Note that the field returned might be another manager.

Overrides:
getFieldWithFocus in class Manager
Returns:
Controlled field with focus, null if no field has the focus.
See Also:
Manager.getLeafFieldWithFocus()
Since:
BlackBerry API 6.0.0

getFieldWithFocusIndex

public int getFieldWithFocusIndex()
Returns the index of the controlled field with focus.

This method prompts this view's delegate manager to return the index of the field with focus.

Overrides:
getFieldWithFocusIndex in class Manager
Returns:
Index of the controlled field with focus, -1 if no field has the focus.
Since:
BlackBerry API 6.0.0

getLabel

public String getLabel()
Returns the text of the label for this view. Labels can be set by using AbstractProgressIndicatorView.createLabel(java.lang.String).

Returns:
A string containing the text of the label, null if no label is set.
Since:
BlackBerry API 6.0.0

getLabelField

public LabelField getLabelField()
Returns the label for this view. Labels can be set by using AbstractProgressIndicatorView.createLabel(java.lang.String).

Returns:
The LabelField containing the label for this field, null is none has been created.
Since:
BlackBerry API 6.0.0

getModel

public AbstractProgressIndicatorModel getModel()
Returns the ProgressIndicatorModel that has been set as the model for this view.

Returns:
The ProgressIndicatorModel that has been set for this view, null if none has been set.
Since:
BlackBerry API 6.0.0

insert

public void insert(Field field,
                   int index)
Inserts a field into this manager.

Invoke this method to insert a new field into this manager's delegate. You provide the field to add and the index position for the new field.

This method prompts this view's delegate manager to insert the provided field.

Overrides:
insert in class Manager
Parameters:
field - Field to insert.
index - Index at which to insert the field.
Throws:
IndexOutOfBoundsException - if index is less than 0 or greater than AbstractProgressIndicatorView.getFieldCount().
IllegalStateException - if the field has already been added to the manager.
IllegalArgumentException - if the field is being added to itself.
Since:
BlackBerry API 6.0.0

keyChar

protected boolean keyChar(char ch,
                          int status,
                          int time)
Handles key generation events.

Sends the event to the field with focus. If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyChar in class Manager
Parameters:
ch - Character generated.
status - Modifier key status.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

keyControl

protected boolean keyControl(char ch,
                             int status,
                             int time)
Sends key generation events to the controlled field with focus.

If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyControl in class Manager
Parameters:
ch - Character generated.
status - Modifier key status.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

keyDown

protected boolean keyDown(int keycode,
                          int time)
Sends key down events to the controlled field with focus.

If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyDown in class Manager
Parameters:
keycode - Code of key pressed.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

keyRepeat

protected boolean keyRepeat(int keycode,
                            int time)
Sends key repeat events to the controlled field with focus.

If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyRepeat in class Manager
Parameters:
keycode - Code of key repeated.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

keyStatus

protected boolean keyStatus(int keycode,
                            int time)
Sends key status event to the controlled field with focus.

If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyStatus in class Manager
Parameters:
keycode - Code of status key.
time - Number of milliseconds since the device was turned on.
Returns:
True if event was consumed; otherwise, returns false.
Since:
BlackBerry API 6.0.0

keyUp

protected boolean keyUp(int keycode,
                        int time)
Sends key up event to the controlled field with focus.

If no controlled field has the focus, this method does nothing and returns false.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
keyUp in class Manager
Parameters:
keycode - Code of key released.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

navigationClick

protected boolean navigationClick(int status,
                                  int time)
Invoked when the navigational action is selected. The system invokes this method when passing on a navigational click event. The Alt+Click combination will enter selection mode or, if already in selection mode, will copy.

The source of the navigation event can be determined by checking the KeypadListener.STATUS_TRACKWHEEL and KeypadListener.STATUS_FOUR_WAY bits in the status parameter; exactly one of them will be set.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
navigationClick in class Manager
Parameters:
status - Bitfield of values defined by KeypadListener.
time - Number of milliseconds since the device was turned on.
Returns:
true if this method consumed the event, false otherwise.
Since:
BlackBerry API 6.0.0

navigationMovement

protected boolean navigationMovement(int dx,
                                     int dy,
                                     int status,
                                     int time)
Invoked when a navigational motion occurs.

The source of the navigation event can be determined by checking the KeypadListener.STATUS_TRACKWHEEL and KeypadListener.STATUS_FOUR_WAY bits in the status parameter; exactly one of them will be set.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
navigationMovement in class Manager
Parameters:
dx - Magnitude of the navigational motion: negative for a move left and positive for a move right.
dy - Magnitude of the navigational motion: negative for an upward move, and positive for a downward move.
status - Bitfield of values defined by KeypadListener.
time - Number of milliseconds since the device was turned on.
Returns:
true if the event was consumed, false otherwise.
Since:
BlackBerry API 6.0.0

nextFocus

protected int nextFocus(int direction,
                        int axis)
Override of Manager.nextFocus(). This method always returns -1. This is intended in order to not attempt to move the focus off of the delegate while focus is in the scope of this manager.

Overrides:
nextFocus in class Manager
Parameters:
direction - Direction the focus is moving within the field.
axis - The axis of movement.
Returns:
-1
Since:
BlackBerry API 6.0.0

replace

public void replace(Field oldField,
                    Field newField)
Removes a field from this manager's delegate and replaces it with another field. The specified oldField must be a child of this manager's delegate and the specified newField must not be being managed by any manager.

This method prompts this view's delegate to perform the replacing.

Overrides:
replace in class Manager
Parameters:
oldField - The field to be replaced.
newField - The field to replace it.
Throws:
IllegalArgumentException - if any argument is null, if oldField is not being managed by this manager (that is, oldField.getManager() != this), or if newField is being managed by any manager including this one (that is, newField.getManager() != null).
IllegalStateException - if oldField.getIndex() returns -1.
See Also:
AbstractProgressIndicatorView.delete(Field), AbstractProgressIndicatorView.insert(Field, int), Field.getIndex(), Field.getManager(), Field.setFocus()
Since:
BlackBerry API 6.0.0

reset

protected void reset()
The data model has been reset to its initial state.

Since:
BlackBerry API 6.0.0

resumed

protected void resumed()
The data model has resumed progress. This is most common after a cancel.

Since:
BlackBerry API 6.0.0

setController

public void setController(AbstractProgressIndicatorController controller)
Sets the controller for this view. The specified controller will override any controller currently set. The specified controller will be responsible for handling input events.

Parameters:
controller - The ProgressIndicatorController to associate with this view.
Since:
BlackBerry API 6.0.0

setLabel

public void setLabel(String label)
Sets the text of the currently assigned label. If no label is currently assigned, this method calls AbstractProgressIndicatorView.createLabel(String) to have a label created and added to the delegate of this view.

Parameters:
label - The text to set the label to.
Since:
BlackBerry API 6.0.0

setModel

public void setModel(AbstractProgressIndicatorModel model)
Sets the model for this view. The specified model will override any model currently set. The specified model will be responsible for representing the data pertaining to the progress.

This method will automatically add this view's listener to the model (AbstractProgressIndicatorModel.addListener(net.rim.device.api.ui.component.progressindicator.ProgressIndicatorListener)). If you override this method, you must either call super.setModel() or add the listener directly.

Parameters:
model - The ProgressIndicatorModel to associate with this view.
Since:
BlackBerry API 6.0.0

setNonProgrammaticValue

protected void setNonProgrammaticValue(int value)
Invoked when the value in the data model has changed via non-programmatic means. This is normally invoked as a result of user input that directly alters the value.

Parameters:
value - The new value of the data model.
Since:
BlackBerry API 6.0.0

sublayout

protected void sublayout(int width,
                         int height)
Implements custom layout features for this manager.

This method performs a full layout on its delegate. The delegate is responsible for the layout of all fields that have been added to the view.

Specified by:
sublayout in class Manager
Parameters:
width - Width available for this manager.
height - Height available for this manager.
Since:
BlackBerry API 6.0.0

touchEvent

protected boolean touchEvent(TouchEvent message)
Handles touch input events (see TouchEvent). The coordinates reflect the location of the touch event with respect to the top-left of this manager. The coordinates are then further mapped to the top-left corner of the field with input.

This method prompts this view's controller to process the input event. If the event is not consumed, the delegate then processes it.

Overrides:
touchEvent in class Manager
Parameters:
message - TouchEvent object containing input parameters including the event type and touch coordinates.
Returns:
true if the event is consumed, false otherwise.
Throws:
IllegalArgumentException - if message is null.
Since:
BlackBerry API 6.0.0





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