public class DefaultPaletteModel extends javax.swing.AbstractListModel<PaletteCategory> implements PaletteModel
PaletteModel.| Constructor and Description |
|---|
DefaultPaletteModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(PaletteCategory category)
Adds a category to the model.
|
void |
clear()
Removes all categories from the model.
|
java.util.List<PaletteCategory> |
getCategories()
Gets all categories in the model.
|
PaletteCategory |
getElementAt(int index)
Gets the category at the specified index.
|
int |
getSize()
Gets the number of categories in the model.
|
void |
removeCategory(PaletteCategory category)
Removes a category from the model.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic int getSize()
PaletteModelgetSize in interface PaletteModelgetSize in interface javax.swing.ListModel<PaletteCategory>public PaletteCategory getElementAt(int index)
PaletteModelgetElementAt in interface PaletteModelgetElementAt in interface javax.swing.ListModel<PaletteCategory>index - The index of the category.PaletteCategory at the specified index.public java.util.List<PaletteCategory> getCategories()
PaletteModelgetCategories in interface PaletteModelPaletteCategory objects.public void addCategory(PaletteCategory category)
category - The PaletteCategory to add.public void removeCategory(PaletteCategory category)
category - The PaletteCategory to remove.public void clear()