net.rim.device.api.lcdui
Class BlackBerryCustomItem
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.CustomItem
net.rim.device.api.lcdui.BlackBerryCustomItem
public abstract class BlackBerryCustomItem
- extends CustomItem
This class extends the functionality of the CustomItem
class to include
full touch support.
Classes inheriting from this class can override the BlackBerryCustomItem.touchEvent(net.rim.device.api.ui.TouchEvent)
method to receive
TouchEvent
messages.
- See Also:
TouchEvent
,
Field.touchEvent
- Since:
- BlackBerry API 4.7.0
Fields inherited from class javax.microedition.lcdui.Item |
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
Methods inherited from class javax.microedition.lcdui.CustomItem |
getGameAction, getInteractionModes, getLabel, getMinContentHeight, getMinContentWidth, getPrefContentHeight, getPrefContentWidth, hideNotify, invalidate, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, setLabel, showNotify, sizeChanged, traverse, traverseOut |
Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLayout, setPreferredSize |
BlackBerryCustomItem
protected BlackBerryCustomItem(String label)
- Creates a new instance of a CustomItem.
- See Also:
CustomItem.CustomItem(String)
- Since:
- BlackBerry API 4.7.0
touchEvent
public void touchEvent(TouchEvent message)
- Indicates a touch event.
- Parameters:
message
- TouchEvent
object containing various input parameters
including the event type and touch coordinates.- Since:
- BlackBerry API 4.7.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