net.rim.device.api.lcdui
Class BlackBerryCustomItem

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.CustomItem
          extended by 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

Field Summary
 
Fields inherited from class javax.microedition.lcdui.CustomItem
KEY_PRESS, KEY_RELEASE, KEY_REPEAT, NONE, POINTER_DRAG, POINTER_PRESS, POINTER_RELEASE, TRAVERSE_HORIZONTAL, TRAVERSE_VERTICAL
 
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
 
Constructor Summary
protected BlackBerryCustomItem(String label)
          Creates a new instance of a CustomItem.
 
Method Summary
 void touchEvent(TouchEvent message)
          Indicates a touch event.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

BlackBerryCustomItem

protected BlackBerryCustomItem(String label)
Creates a new instance of a CustomItem.

See Also:
CustomItem.CustomItem(String)
Since:
BlackBerry API 4.7.0


Method Detail

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