org.inclou.Palette
Interface ChoserInterface

All Known Implementing Classes:
MIDmanualSelector, MIDmultiSelector, MIDpaletteSelector

public interface ChoserInterface

This interface must be implemented by those applications which desire to use PaletteCanvas, RGBform or CompleteForm class library. Examples of each case are provided in this package, under the name of MIDxxxx. When one of those class libraries is constructed, an interface must be provided so that (after displaying it) when user has made the color selection, it informs you of the color selected through the selectionMade method.

Version:
Version 1.0 of package org.inclou.Palette
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.

Method Summary
 void selectionMade(int color)
          User application should hide PaletteCanvas, RGBform or CompleteForm in its implementation of this method.
 

Method Detail

selectionMade

public void selectionMade(int color)
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.

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.