|
||||||||||
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.text.TextColorSetChooser
public class TextColorSetChooser
Provides a generic GUI component for selection of a text color set.
A text color set changed event can be obtained by registering a
java.beans.PropertyChangeListener
using
addTextColorSetListener()
.
Listener example:
_fontUI.addTextColorSetListener(new PropertyChangeListener()
{
public void propertyChange(PropertyChangeEvent event)
{
TextColorSetChooser chooser = (TextColorSetChooser)event.getSource();
TextColorSet set = (TextColorSet)event.getNewValue();
// Do something
}
} );
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 |
TEXT_COLOR_SET_PROPERTY
Name of the text color property. |
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 | |
---|---|
TextColorSetChooser()
Construct this object. |
Method Summary | |
---|---|
void |
addTextColorSetListener(PropertyChangeListener listener)
Add a property listener for the text color property. |
TextColorSet |
getTextColorSet()
Return the text color. |
boolean |
isDirty()
|
void |
removeTextColorSetListener(PropertyChangeListener listener)
Remove a property listener for the text color property. |
void |
setDirty(boolean isDirty)
|
void |
setEnabled(boolean enabled)
Set the enabled state of this widget. |
void |
setTextColorSet(TextColorSet textColorSet)
Set the color scheme. |
void |
setTitle(String title)
Create a titled border with the given string. |
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 TEXT_COLOR_SET_PROPERTY
Constructor Detail |
---|
public TextColorSetChooser()
Method Detail |
---|
public void addTextColorSetListener(PropertyChangeListener listener)
public TextColorSet getTextColorSet()
public boolean isDirty()
public void removeTextColorSetListener(PropertyChangeListener listener)
public void setDirty(boolean isDirty)
isDirty
- The isDirty to set.public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public void setTextColorSet(TextColorSet textColorSet)
public void setTitle(String title)
title
- The title for the titled border.
|
||||||||||
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 |