int
so that palettes with more than 256 entries are no problem. When accessing (reading or writing) samples of this palette, use the constants {@link #INDEX_RED}, {@link #INDEX_GREEN} and {@link #INDEX_BLUE} ofthis class to define a color channel.
@author Marco Schmidt
@see net.sourceforge.jiu.data.PalettedImage
When creating a Palette object make sure your IChoiceRenderer returns a specific ID, not the index.
Ajaxifying the palette: The palette itself cannot be ajaxified because it is a panel and therefore does not receive any javascript events. Instead ajax behaviors can be attached to the recorder component which supports the javascript onchange
event. The behavior should be attached by overriding {@link #newRecorderComponent()}Example:
Form form=new Form(...); Palette palette=new Palette(...) { protected Recorder newRecorderComponent() { Recorder recorder=super.newRecorderComponent(); recorder.add(new AjaxFormComponentUpdatingBehavior("onchange") {...}); return recorder; } }@author Igor Vaynberg ( ivaynberg ) @param < T> Type of model object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|