Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.widgets
Class ColorDialog  view ColorDialog download ColorDialog.java

java.lang.Object
  extended byorg.eclipse.swt.widgets.Dialog
      extended byorg.eclipse.swt.widgets.ColorDialog

public class ColorDialog
extends Dialog

Instances of this class allow the user to select a color from a predefined set of available colors.

Styles:
(none)
Events:
(none)

IMPORTANT: This class is intended to be subclassed only within the SWT implementation.


Field Summary
(package private)  org.eclipse.swt.graphics.RGB rgb
           
 
Fields inherited from class org.eclipse.swt.widgets.Dialog
parent, style, title
 
Constructor Summary
ColorDialog(Shell parent)
          Constructs a new instance of this class given only its parent.
ColorDialog(Shell parent, int style)
          Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
 
Method Summary
 org.eclipse.swt.graphics.RGB getRGB()
          Returns the currently selected color in the receiver.
 org.eclipse.swt.graphics.RGB open()
          Makes the receiver visible and brings it to the front of the display.
 void setRGB(org.eclipse.swt.graphics.RGB rgb)
          Sets the receiver's selected color to be the argument.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkParent, checkSubclass, error, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rgb

org.eclipse.swt.graphics.RGB rgb
Constructor Detail

ColorDialog

public ColorDialog(Shell parent)
Constructs a new instance of this class given only its parent.


ColorDialog

public ColorDialog(Shell parent,
                   int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

Method Detail

getRGB

public org.eclipse.swt.graphics.RGB getRGB()
Returns the currently selected color in the receiver.


open

public org.eclipse.swt.graphics.RGB open()
Makes the receiver visible and brings it to the front of the display.


setRGB

public void setRGB(org.eclipse.swt.graphics.RGB rgb)
Sets the receiver's selected color to be the argument.