Class CustomPaletteItemGroup
java.lang.Object
javax.swing.AbstractListModel
com.inductiveautomation.factorypmi.designer.palette.model.DefaultPaletteItemGroup
com.inductiveautomation.factorypmi.designer.palette.model.CustomPaletteItemGroup
- All Implemented Interfaces:
PaletteItemGroup
,Serializable
,ListModel
- See Also:
-
Field Summary
Fields inherited from class com.inductiveautomation.factorypmi.designer.palette.model.DefaultPaletteItemGroup
changeSupport, enabled, icon, itemListener, items, name
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPaletteItem
(PaletteItem item) Adds a new palette item into the groupgetItems()
For serializationboolean
Default implementation returns false.void
removePaletteItem
(PaletteItem item) Removes the palette item at the given index.void
void
setItems
(List<PaletteItem> items) For serializationvoid
setPaletteItem
(int index, PaletteItem item) Sets the palette item at the index.void
Methods inherited from class com.inductiveautomation.factorypmi.designer.palette.model.DefaultPaletteItemGroup
addPropertyChangeListener, addPropertyChangeListener, getElementAt, getIcon, getName, getPaletteItem, getSize, insertPaletteItem, isEnabled, itemUpdated, removePropertyChangeListener, removePropertyChangeListener, setEnabled, setName, toString
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
CustomPaletteItemGroup
public CustomPaletteItemGroup()Serialization constructor -
CustomPaletteItemGroup
-
-
Method Details
-
isMutable
public boolean isMutable()Description copied from class:DefaultPaletteItemGroup
Default implementation returns false.- Specified by:
isMutable
in interfacePaletteItemGroup
- Overrides:
isMutable
in classDefaultPaletteItemGroup
-
getItems
For serialization -
setItems
For serialization -
addPaletteItem
Description copied from interface:PaletteItemGroup
Adds a new palette item into the group- Specified by:
addPaletteItem
in interfacePaletteItemGroup
- Overrides:
addPaletteItem
in classDefaultPaletteItemGroup
-
removePaletteItem
Description copied from interface:PaletteItemGroup
Removes the palette item at the given index.- Specified by:
removePaletteItem
in interfacePaletteItemGroup
- Overrides:
removePaletteItem
in classDefaultPaletteItemGroup
-
setPaletteItem
Description copied from interface:PaletteItemGroup
Sets the palette item at the index. (Overwrites the item, not insert)- Specified by:
setPaletteItem
in interfacePaletteItemGroup
- Overrides:
setPaletteItem
in classDefaultPaletteItemGroup
-
setIcon
- Overrides:
setIcon
in classDefaultPaletteItemGroup
-
getResourcePath
-
setResourcePath
-