|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.vizzini.ui.ColorButton
public class ColorButton
Provides a button which, when clicked, allows the user to select a color. This class extends JPanel because the Mac OS X button doesn't look like the other platforms.
A change event is issued when property COLOR_PROPERTY is
changed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
COLOR_PROPERTY
The name of the color property. |
static Color |
DEFAULT_COLOR
Default color. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ColorButton(Component owner)
Construct this object with the given parameters. |
|
ColorButton(Component owner,
String colorChooserTitle)
Construct this object with the given parameters. |
|
| Method Summary | |
|---|---|
void |
addColorListener(PropertyChangeListener listener)
Add a property listener for the color property. |
Color |
getColor()
Return the selected color. |
boolean |
isDirty()
|
void |
removeColorListener(PropertyChangeListener listener)
Remove a property listener for the color property. |
void |
setColor(Color color)
Set the color. |
void |
setDirty(boolean isDirty)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COLOR_PROPERTY
public static Color DEFAULT_COLOR
| Constructor Detail |
|---|
public ColorButton(Component owner)
public ColorButton(Component owner,
String colorChooserTitle)
| Method Detail |
|---|
public void addColorListener(PropertyChangeListener listener)
public Color getColor()
public boolean isDirty()
public void removeColorListener(PropertyChangeListener listener)
public void setColor(Color color)
public void setDirty(boolean isDirty)
isDirty - The isDirty to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |