Interface PaletteItemGroup
- 
- All Superinterfaces:
- javax.swing.ListModel
 - All Known Implementing Classes:
- CustomPaletteItemGroup,- DefaultPaletteItemGroup
 
 public interface PaletteItemGroup extends javax.swing.ListModel
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPaletteItem(PaletteItem item)Adds a new palette item into the groupvoidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)javax.swing.IcongetIcon()Get the icon for this palette item group.java.lang.StringgetName()Returns the name of this palette item groupPaletteItemgetPaletteItem(int index)Return the palette item contained at positionindexvoidinsertPaletteItem(int index, PaletteItem item)Inserts the item at the given position, moving what is currently at that position to the rightbooleanisEnabled()booleanisMutable()Returns true if this PaletteItemGroup can be changed.voidremovePaletteItem(PaletteItem item)Removes the palette item at the given index.voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)voidsetEnabled(boolean enabled)voidsetName(java.lang.String name)Sets the name of this palette item groupvoidsetPaletteItem(int index, PaletteItem item)Sets the palette item at the index.
 
- 
- 
- 
Method Detail- 
addPropertyChangeListenervoid addPropertyChangeListener(java.beans.PropertyChangeListener listener) 
 - 
addPropertyChangeListenervoid addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.beans.PropertyChangeListener listener) 
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
 - 
getPaletteItemPaletteItem getPaletteItem(int index) Return the palette item contained at positionindex
 - 
addPaletteItemvoid addPaletteItem(PaletteItem item) Adds a new palette item into the group
 - 
setPaletteItemvoid setPaletteItem(int index, PaletteItem item)Sets the palette item at the index. (Overwrites the item, not insert)
 - 
insertPaletteItemvoid insertPaletteItem(int index, PaletteItem item)Inserts the item at the given position, moving what is currently at that position to the right
 - 
removePaletteItemvoid removePaletteItem(PaletteItem item) Removes the palette item at the given index.
 - 
getNamejava.lang.String getName() Returns the name of this palette item group
 - 
setNamevoid setName(java.lang.String name) Sets the name of this palette item group
 - 
getIconjavax.swing.Icon getIcon() Get the icon for this palette item group. null is allowed.
 - 
isMutableboolean isMutable() Returns true if this PaletteItemGroup can be changed. Only custom palettes are mutable.
 - 
isEnabledboolean isEnabled() 
 - 
setEnabledvoid setEnabled(boolean enabled) 
 
- 
 
-