Record Class BindableTreeNode.CheckBoxProps
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.mvvm.binders.swing.BindableTreeNode.CheckBoxProps
- Enclosing class:
BindableTreeNode<T>
public static record BindableTreeNode.CheckBoxProps(boolean enabled, boolean visible, BindableTreeNode.CheckBoxState state, BindableTreeNode.CheckBoxBehavior behavior)
extends Record
Lazily-allocated record holding all checkbox-related state. Null on nodes that never
participate in checkbox behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckBoxProps(boolean enabled, boolean visible, BindableTreeNode.CheckBoxState state, BindableTreeNode.CheckBoxBehavior behavior) Creates an instance of aCheckBoxPropsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbehavior()Returns the value of thebehaviorrecord component.defaults()booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.withEnabled(boolean enabled) withVisible(boolean visible)
-
Constructor Details
-
CheckBoxProps
public CheckBoxProps(boolean enabled, boolean visible, BindableTreeNode.CheckBoxState state, BindableTreeNode.CheckBoxBehavior behavior) Creates an instance of aCheckBoxPropsrecord class.- Parameters:
enabled- the value for theenabledrecord componentvisible- the value for thevisiblerecord componentstate- the value for thestaterecord componentbehavior- the value for thebehaviorrecord component
-
-
Method Details
-
defaults
-
withEnabled
-
withVisible
-
withState
-
withBehavior
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
behavior
Returns the value of thebehaviorrecord component.- Returns:
- the value of the
behaviorrecord component
-