Class CellRendererStateSupport.Builder
java.lang.Object
com.inductiveautomation.ignition.designer.gui.cellrenderer.CellRendererStateSupport.Builder
- Enclosing class:
- CellRendererStateSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponents
(JComponent... components) addIconLabels
(JLabel... labels) build()
setFocusBorder
(Border focusBorder)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addComponents
- Parameters:
components
-List of components for which the component states is to be managed by this class. If the component in the list is a
JLabel
and that label containsCellRendererIcon
, the icon state will be managed by this class.The first component in the list will serve as the component for which the focus border will be drawn.
-
addStateComponents
public CellRendererStateSupport.Builder addStateComponents(CellRendererStateSupport.CellRendererStateComponent... components) - Parameters:
components
- List of components for which the state is to be managed by this class.
-
addIconLabels
- Parameters:
labels
- List of labels for which the current icon is null, but when icons are set on these labels, we would like the state of these icons to be managed. If the current icon is not null {link #addComponents(JComponent...)} can be used, orCellRendererStateSupport.builder(JComponent...)
.
-
setFocusBorder
-
build
-