|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.component.pane.PaneManagerController
net.rim.device.api.ui.component.pane.HorizontalScrollableController
public class HorizontalScrollableController
Extension of PaneManagerController that implements a controller
for the HorizontalScrollableTitleView.
Navigation movement that occurs in the HorizontalScrollableTitleView
causes the Pane to change.
TouchGesture.TAP on either the left or right title causes the Pane
to change. When either occurs on the current title, the associated
Command is invoked Command.execute(Object) and the current instance
of this class is passed in as the contextual object.
TouchGesture.SWIPE will cause the Pane to change.
TouchEvent.MOVE that occurs in the region of the HorizontalScrollableTitleView
moves the title and content around the screen.
| Constructor Summary | ||
|---|---|---|
HorizontalScrollableController()
Basic class constructor, initializes the component. |
||
| Method Summary | ||
|---|---|---|
boolean |
navigationClick(int status,
int time)
Invoked when the navigational action is selected. |
|
boolean |
navigationMovement(int dx,
int dy,
int status,
int time)
Invoked in response to a navigational motion. |
|
boolean |
touchEvent(TouchEvent message)
Handles touch input events (see TouchEvent). |
|
| Methods inherited from class net.rim.device.api.ui.component.pane.PaneManagerController |
|---|
getCommand, getModel, getView, isInBounds, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, setCommand, setModel, setView |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HorizontalScrollableController()
Basic class constructor, initializes the component.
| Method Detail |
|---|
public boolean navigationClick(int status,
int time)
The system invokes this method when passing on a navigational click event.
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.
navigationClick in class PaneManagerControllerstatus - Bitfield of values defined by KeypadListener.time - Number of milliseconds since the device was turned on.
public boolean navigationMovement(int dx,
int dy,
int status,
int time)
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.
navigationMovement in class PaneManagerControllerdx - Magnitude of navigational motion: negative for a move left
and positive for a move right.dy - Magnitude of navigational motion: negative for an up wards
move, and positive for a down wards move.status - Bitfield of values defined by KeypadListener.time - Number of milliseconds since the device was turned on.
public boolean touchEvent(TouchEvent message)
TouchEvent).
The coordinates reflect the location of the touch event with respect to the top-left of the associated view. The x, y coordinates are then further mapped to the top-left corner of the field with input.
touchEvent in class PaneManagerControllermessage - TouchEvent object containing various input parameters
including the event type and touch coordinates.
IllegalArgumentException - If message is 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