Class MultiStateIconComponent
java.lang.Object
com.ptc.core.components.rendering.AbstractGuiComponent
com.ptc.core.components.rendering.guicomponents.AbstractGraphicalComponent
com.ptc.core.components.rendering.guicomponents.MultiStateIconComponent
- All Implemented Interfaces:
GuiComponent,GraphicalComponent,com.ptc.core.components.rendering.guicomponents.PrintableComponent,GraphicalAttRepresentationHandler,com.ptc.netmarkets.util.misc.NmFormatable,Serializable
- Direct Known Subclasses:
TrafficLightComponent
A multi-state icon component is a graphical representation that renders as one of several icons based an underlying
attribute value. This class supports only integer-valued attributes.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract IconComponentgetIconComponent(int state) The getIconComponent method should return the icon that corresponds with the int passed in.Methods inherited from class com.ptc.core.components.rendering.AbstractGuiComponent
setColumnName, setEnabled, setId, setLabel, setMultiValued, setName
-
Method Details
-
getIconComponent
The getIconComponent method should return the icon that corresponds with the int passed in. It will throw a WTException if the int passed in does not map to a valid state.
Supported API: true
- Parameters:
state- the integer corresponding to the returned icon- Returns:
- the icon corresponding to "state".
- Throws:
WTException- if "state" is an invalid value.
-