Class DefaultPaletteItemGroup
java.lang.Object
javax.swing.AbstractListModel
com.inductiveautomation.factorypmi.designer.palette.model.DefaultPaletteItemGroup
- All Implemented Interfaces:
- PaletteItemGroup,- Serializable,- ListModel
- Direct Known Subclasses:
- CustomPaletteItemGroup
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected PropertyChangeSupportprotected booleanprotected Iconprotected PropertyChangeListenerprotected List<PaletteItem>protected StringFields inherited from class javax.swing.AbstractListModellistenerList
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPaletteItem(PaletteItem item) Adds a new palette item into the groupvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) getElementAt(int index) getIcon()Get the icon for this palette item group.getName()Returns the name of this palette item groupgetPaletteItem(int index) Return the palette item contained at positionindexintgetSize()voidinsertPaletteItem(int index, PaletteItem item) Inserts the item at the given position, moving what is currently at that position to the rightbooleanbooleanDefault implementation returns false.protected voiditemUpdated(PaletteItem item) voidremovePaletteItem(PaletteItem item) Removes the palette item at the given index.voidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidsetEnabled(boolean enabled) voidvoidSets the name of this palette item groupvoidsetPaletteItem(int index, PaletteItem item) Sets the palette item at the index.toString()Methods inherited from class javax.swing.AbstractListModeladdListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.ListModeladdListDataListener, removeListDataListener
- 
Field Details- 
changeSupport
- 
name
- 
items
- 
enabledprotected boolean enabled
- 
icon
- 
itemListener
 
- 
- 
Constructor Details- 
DefaultPaletteItemGroup
 
- 
- 
Method Details- 
getElementAt- Specified by:
- getElementAtin interface- ListModel
 
- 
getSizepublic int getSize()
- 
getNameDescription copied from interface:PaletteItemGroupReturns the name of this palette item group- Specified by:
- getNamein interface- PaletteItemGroup
 
- 
addPaletteItemDescription copied from interface:PaletteItemGroupAdds a new palette item into the group- Specified by:
- addPaletteItemin interface- PaletteItemGroup
 
- 
setPaletteItemDescription copied from interface:PaletteItemGroupSets the palette item at the index. (Overwrites the item, not insert)- Specified by:
- setPaletteItemin interface- PaletteItemGroup
 
- 
insertPaletteItemDescription copied from interface:PaletteItemGroupInserts the item at the given position, moving what is currently at that position to the right- Specified by:
- insertPaletteItemin interface- PaletteItemGroup
 
- 
getPaletteItemDescription copied from interface:PaletteItemGroupReturn the palette item contained at positionindex- Specified by:
- getPaletteItemin interface- PaletteItemGroup
 
- 
removePaletteItemDescription copied from interface:PaletteItemGroupRemoves the palette item at the given index.- Specified by:
- removePaletteItemin interface- PaletteItemGroup
 
- 
itemUpdated
- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- PaletteItemGroup
 
- 
isMutablepublic boolean isMutable()Default implementation returns false.- Specified by:
- isMutablein interface- PaletteItemGroup
 
- 
setEnabledpublic void setEnabled(boolean enabled) - Specified by:
- setEnabledin interface- PaletteItemGroup
 
- 
setNameDescription copied from interface:PaletteItemGroupSets the name of this palette item group- Specified by:
- setNamein interface- PaletteItemGroup
 
- 
toString
- 
addPropertyChangeListener- Specified by:
- addPropertyChangeListenerin interface- PaletteItemGroup
 
- 
addPropertyChangeListener- Specified by:
- addPropertyChangeListenerin interface- PaletteItemGroup
 
- 
removePropertyChangeListener- Specified by:
- removePropertyChangeListenerin interface- PaletteItemGroup
 
- 
removePropertyChangeListener- Specified by:
- removePropertyChangeListenerin interface- PaletteItemGroup
 
- 
getIconDescription copied from interface:PaletteItemGroupGet the icon for this palette item group. null is allowed.- Specified by:
- getIconin interface- PaletteItemGroup
 
- 
setIcon
 
-