org.inclou.PaletteExamples
Class MIDmanualSelector
java.lang.Object
javax.microedition.midlet.MIDlet
org.inclou.PaletteExamples.MIDmanualSelector
- All Implemented Interfaces:
- ChoserInterface, CommandListener
- public class MIDmanualSelector
- extends MIDlet
- implements ChoserInterface, CommandListener
Execute SUITE1 to run this application
This is a MIDlet application example (named as "Manual selector"
in SUITE1) that shows the RGBform functionality
of manually selecting a color (indicating R, G and B value) by implementing
ChoserInterface interface. It should also be runnable from other packages.
|
Example executed in a Java mobile simulator. |
- Version:
- Version 1.0 of package org.inclou.PaletteExamples
This package is MIDP 1.0 compliant.
This package has been compiled under 1.4.2 JDK.
- Author:
- Joel Samper. This code is published in www.inclou.org/freeware where you will find more php/java libraries. Please refer to this web for use conditions and other documentation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIDmanualSelector
public MIDmanualSelector()
startApp
public void startApp()
pauseApp
public void pauseApp()
destroyApp
public void destroyApp(boolean unconditional)
commandAction
public void commandAction(Command c,
Displayable d)
- Specified by:
commandAction in interface CommandListener
selectionMade
public void selectionMade(int color)
- Description copied from interface:
ChoserInterface
- User application should hide PaletteCanvas, RGBform or CompleteForm in its
implementation of this method. Note
that if user has selected cancel action then selectionMade(-1) is called.
- Specified by:
selectionMade in interface ChoserInterface
- Parameters:
color - Color selected by user in 0x00RRGGBB format; -1 if user has cancelled.
of FullColor mode of PaletteCanvas. False if user has used GrayScale mode.