|
||||||||||
| 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.table.TableStyleChooser
public class TableStyleChooser
Provides a generic GUI component for selection of a table style. A table style consists of the fonts and colors used by a table.
A table style changed event can be obtained by registering a
java.beans.PropertyChangeListener using
addTableStyleListener().
Listener example:
_textStyleUI.addTableStyleListener(new PropertyChangeListener()
{
public void propertyChange(PropertyChangeEvent event)
{
TableStyleChooser chooser = (TableStyleChooser)event.getSource();
TableStyle tableStyle = (TableStyle)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 |
TABLE_STYLE_PROPERTY
Name of the table style 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 | |
|---|---|
TableStyleChooser()
Construct this object. |
|
| Method Summary | |
|---|---|
void |
addTableStyleListener(PropertyChangeListener listener)
Add a property listener for the table style property. |
protected JPanel |
createButtonPanel()
Create a button panel. |
protected JPanel |
createTableHeaderStylePanel()
Create the table header font panel. |
protected JPanel |
createTableStylePanel()
Create the table font panel. |
protected Action |
getRestoreDefaultsAction()
Return the restore defaults action. |
TableStyle |
getTableStyle()
Return the text style. |
boolean |
isDirty()
|
void |
removeTableStyleListener(PropertyChangeListener listener)
Remove a property listener for the table style property. |
void |
restoreDefaultsActionPerformed(ActionEvent event)
Callback for the restore defaults action. |
void |
setDirty(boolean isDirty)
|
void |
setEnabled(boolean enabled)
Set the enabled state of this widget. |
void |
setTableStyle(TableStyle tableStyle)
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 TABLE_STYLE_PROPERTY
| Constructor Detail |
|---|
public TableStyleChooser()
| Method Detail |
|---|
public void addTableStyleListener(PropertyChangeListener listener)
public TableStyle getTableStyle()
public boolean isDirty()
public void removeTableStyleListener(PropertyChangeListener listener)
public void restoreDefaultsActionPerformed(ActionEvent event)
public void setDirty(boolean isDirty)
isDirty - The isDirty to set.public void setEnabled(boolean enabled)
setEnabled in class JComponentpublic void setTableStyle(TableStyle tableStyle)
public void setTitle(String title)
title - The title for the titled border.protected JPanel createButtonPanel()
protected JPanel createTableHeaderStylePanel()
protected JPanel createTableStylePanel()
protected Action getRestoreDefaultsAction()
|
||||||||||
| 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 |