0

How can add a listener to a javax.microedition.lcdui.CustomItem so that when it is selected an event is fired ?

Thanks

bharath
  • 14,283
  • 16
  • 57
  • 95
blue-sky
  • 51,962
  • 152
  • 427
  • 752

1 Answers1

1

There are no listeners. What you do is override various low-level input events like pointerPressed() or keyPressed(). See the CustomItem javadocs for details, there are sections describing how pointer and keyboard input is handled:

http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/lcdui/CustomItem.html

See also these articles:

http://developers.sun.com/mobility/midp/ttips/customitem/

http://developers.sun.com/mobility/midp/ttips/customitemtraversal/index.html

Eric Giguere
  • 3,495
  • 15
  • 11