public class PaletteCategory
extends java.lang.Object
Palette control.| Constructor and Description |
|---|
PaletteCategory(java.lang.String title)
Initializes a new instance of the PaletteCategory class.
|
PaletteCategory(java.lang.String title,
javax.swing.Icon icon)
Initializes a new instance of the PaletteCategory class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
|
javax.swing.Icon |
getIcon()
Gets the category icon.
|
java.util.List<DiagramItem> |
getItems()
Gets the items in this category.
|
java.lang.String |
getTitle()
Gets the category title.
|
boolean |
isExpanded()
Gets a value indicating whether the category is expanded.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.
|
void |
setExpanded(boolean expanded)
Sets a value indicating whether the category is expanded.
|
void |
setIcon(javax.swing.Icon icon)
Sets the category icon.
|
void |
setTitle(java.lang.String title)
Sets the category title.
|
public PaletteCategory(java.lang.String title)
title - The category title.public PaletteCategory(java.lang.String title,
javax.swing.Icon icon)
title - The category title.icon - The category icon.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - The title text.public javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon - The icon.public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded - true if the category is expanded; otherwise, false.public java.util.List<DiagramItem> getItems()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to remove.