org.inclou.PaletteExamples
Class MIDmultiSelector

java.lang.Object
  extended byjavax.microedition.midlet.MIDlet
      extended byorg.inclou.PaletteExamples.MIDmultiSelector
All Implemented Interfaces:
ChoserInterface, CommandListener

public class MIDmultiSelector
extends MIDlet
implements ChoserInterface, CommandListener

Execute SUITE1 to run this application This is an MIDlet application example (named as "Multi selector" in SUITE1) that shows the CompleteForm functionality of selecting a color through several ways (manual RGB, FullColor palette ore GrayScale palette) by implementing ChoserInterface interface. If you want a complete interface of selecting a color (anyhow, the way user prefers), this may be the best solution. It should also be runnable from other packages.

Simulation example Simulation example Simulation example
Simulation example Simulation example 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.

Constructor Summary
MIDmultiSelector()
           
 
Method Summary
 void commandAction(Command c, Displayable d)
           
 void destroyApp(boolean unconditional)
           
 void pauseApp()
           
 void selectionMade(int color)
          User application should hide PaletteCanvas, RGBform or CompleteForm in its implementation of this method.
 void startApp()
           
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIDmultiSelector

public MIDmultiSelector()
Method Detail

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.