Package thinletcommons
Class ColorChooser
java.lang.Object
thinletcommons.ColorChooser
A Thinlet color chooser dialog.
The dialog is modal and blocks the calling frame/dialog. It is therefore displayed in a separate window.
- Author:
- Dirk Moebius
-
Constructor Summary
ConstructorsConstructorDescriptionColorChooser(Dialog owner, String title) ColorChooser(Frame owner, String title) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Thinlet callback.voidinit(Object sl_red, Object sl_green, Object sl_blue, Object sb_red, Object sb_green, Object sb_blue, Object tf_hue, Object tf_saturation, Object tf_brightness, Object pb_hue, Object pb_saturation, Object pb_brightness, Object rgb_label) Thinlet callback.voidok()Thinlet callback.voidsetSelectedColor(Color color) voidshow()Show the modal dialog.voidsliderChanged(int value, Object spinbox) Thinlet callback.voidspinboxChanged(String text, Object slider) Thinlet callback.
-
Constructor Details
-
ColorChooser
-
ColorChooser
-
-
Method Details
-
show
public void show()Show the modal dialog. This halts the application until the user dismisses the dialog. -
setSelectedColor
-
getSelectedColor
-
init
public void init(Object sl_red, Object sl_green, Object sl_blue, Object sb_red, Object sb_green, Object sb_blue, Object tf_hue, Object tf_saturation, Object tf_brightness, Object pb_hue, Object pb_saturation, Object pb_brightness, Object rgb_label) Thinlet callback. -
sliderChanged
Thinlet callback. -
spinboxChanged
Thinlet callback. -
ok
public void ok()Thinlet callback. -
close
public void close()Thinlet callback.
-