org.gnu.gtk

Class ColorSelectionDialog


public class ColorSelectionDialog
extends Dialog

The ColorSelectionDialog provides a standard dialog which allows the user to select a color much like the FileSelection provides a standard dialog for file selection.

Constructor Summary

ColorSelectionDialog(Handle handle)
Construct a ColorSelectionDialog using a handle to a native resource.
ColorSelectionDialog(String title)
Construct a new ColorSelectionDialog.

Method Summary

Button
getCancelButton()
Return the Cancel Button widget for this dialog.
static ColorSelectionDialog
getColorSelectionDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.
ColorSelection
getColorSelectionWidget()
Return the ColorSelection widget for this dialog.
Button
getHelpButton()
Return the Help Button widget for this dialog.
Button
getOKButton()
Return the OK Button widget for this Dialog.
static Type
getType()
Retrieve the runtime type used by the GLib library.

Methods inherited from class org.gnu.gtk.Dialog

addButton, addButton, addListener, addWidget, getActionArea, getDialog, getDialogLayout, getEventListenerClass, getEventType, getHasSeparator, getResponseForWidget, getType, removeListener, run, setDefaultResponse, setHasSeparator

Methods inherited from class org.gnu.gtk.Window

addAccelGroup, deiconify, destroy, fullscreen, getAcceptFocus, getDefaultIconList, getFocusOnMap, getFocusWidget, getGravity, getIcon, getIconList, getIconName, getPosition, getScreen, getSize, getSkipPagerHint, getSkipTaskbarHint, getTitle, getTransientParent, getType, getWindow, hasToplevelFocus, iconify, isActive, isDestroyed, listToplevelWindows, maximize, move, present, removeAccelGroup, resize, setAcceptFocus, setAutoStartupNotification, setDecorated, setDefaultIcon, setDefaultIconFromFile, setDefaultIconList, setDefaultIconName, setDefaultSize, setDefaultWidget, setFocusOnMap, setFocusWidget, setGeometryHints, setGravity, setIcon, setIconFromFile, setIconList, setIconName, setKeepAbove, setKeepBelow, setModal, setPosition, setResizable, setScreen, setSkipPagerHint, setSkipTaskbarHint, setTitle, setTransientParent, stick, unfullscreen, unmaximize, unstick

Methods inherited from class org.gnu.gtk.Bin

getChild, getType

Methods inherited from class org.gnu.gtk.Container

add, addListener, getBorderWidth, getChildren, getEventListenerClass, getEventType, getResizeMode, getType, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode

Methods inherited from class org.gnu.gtk.Widget

activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getColormap, getContext, getData, getDisplay, getDragData, getEventListenerClass, getEventType, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getType, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight

Methods inherited from class org.gnu.gtk.GtkObject

destroy, getType, sink

Methods inherited from class org.gnu.glib.GObject

addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify

Constructor Details

ColorSelectionDialog

public ColorSelectionDialog(Handle handle)
Construct a ColorSelectionDialog using a handle to a native resource.

ColorSelectionDialog

public ColorSelectionDialog(String title)
Construct a new ColorSelectionDialog.
Parameters:
title - The text to display on the title bar of the dialog.

Method Details

getCancelButton

public Button getCancelButton()
Return the Cancel Button widget for this dialog.
Returns:
The Cancel Button.

getColorSelectionDialog

public static ColorSelectionDialog getColorSelectionDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.

getColorSelectionWidget

public ColorSelection getColorSelectionWidget()
Return the ColorSelection widget for this dialog.
Returns:
The ColorSelection widget.

getHelpButton

public Button getHelpButton()
Return the Help Button widget for this dialog.
Returns:
The Help Button.

getOKButton

public Button getOKButton()
Return the OK Button widget for this Dialog.
Returns:
The OK Button.

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface Dialog