Class AbstractPaletteItem
java.lang.Object
com.inductiveautomation.vision.api.designer.palette.AbstractPaletteItem
- All Implemented Interfaces:
ComponentInstantiator,PaletteItem
- Direct Known Subclasses:
JavaBeanPaletteItem,SerializedPaletteItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) The name of the type of component that will be createdgetIcon()getName()booleanIs this palette item currently enabled?booleanIs this palette item currently selected? Some types of palette items may never become selectedvoidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) protected voidsetDisplayName(String displayName) voidsetEnabled(boolean enabled) protected voidprotected voidvoidsetSelected(boolean selected) Select this palette item.protected voidsetShortDescription(String shortDescription) protected voidsetSmallIcon(Icon smallIcon) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.vision.api.designer.ComponentInstantiator
createComponentMethods inherited from interface com.inductiveautomation.vision.api.designer.palette.PaletteItem
isSelectable
-
Constructor Details
-
AbstractPaletteItem
public AbstractPaletteItem()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Description copied from interface:PaletteItemIs this palette item currently enabled?- Specified by:
isEnabledin interfacePaletteItem
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacePaletteItem
-
isSelected
public boolean isSelected()Description copied from interface:PaletteItemIs this palette item currently selected? Some types of palette items may never become selected- Specified by:
isSelectedin interfacePaletteItem
-
setSelected
public void setSelected(boolean selected) Description copied from interface:PaletteItemSelect this palette item. Some types of palette items may not accept becoming selected- Specified by:
setSelectedin interfacePaletteItem
-
getDisplayName
Description copied from interface:ComponentInstantiatorThe name of the type of component that will be created- Specified by:
getDisplayNamein interfaceComponentInstantiator
-
getName
- Specified by:
getNamein interfacePaletteItem
-
getShortDescription
- Specified by:
getShortDescriptionin interfacePaletteItem
-
setDisplayName
-
setName
-
setShortDescription
-
toString
-
firePropertyChange
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfacePaletteItem
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfacePaletteItem
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePaletteItem
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePaletteItem
-
getIcon
- Specified by:
getIconin interfacePaletteItem
-
setIcon
-
getSmallIcon
- Specified by:
getSmallIconin interfacePaletteItem
-
setSmallIcon
-