Record Class FlowCellData

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.gui.flowpane.FlowCellData

public record FlowCellData(String header, InteractiveIcon icon, String typeText, String typeTooltip, String statusText, String errorText, boolean enabled, boolean visible) extends Record
  • Constructor Details

    • FlowCellData

      public FlowCellData(String header, InteractiveIcon icon, String typeText, String typeTooltip, String statusText, String errorText, boolean enabled, boolean visible)
      Creates an instance of a FlowCellData record class.
      Parameters:
      header - the value for the header record component
      icon - the value for the icon record component
      typeText - the value for the typeText record component
      typeTooltip - the value for the typeTooltip record component
      statusText - the value for the statusText record component
      errorText - the value for the errorText record component
      enabled - the value for the enabled record component
      visible - the value for the visible record component
  • Method Details

    • empty

      public static FlowCellData empty()
    • withHeader

      public FlowCellData withHeader(String headerText)
    • withEnabled

      public FlowCellData withEnabled(boolean enabled)
    • withTypeText

      public FlowCellData withTypeText(String type)
    • withStatusText

      public FlowCellData withStatusText(String status)
    • withIcon

      public FlowCellData withIcon(InteractiveIcon icon)
    • withErrorText

      public FlowCellData withErrorText(String error)
    • withTypeTooltip

      public FlowCellData withTypeTooltip(String tooltip)
    • withVisible

      public FlowCellData withVisible(boolean visible)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • icon

      public InteractiveIcon icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • typeText

      public String typeText()
      Returns the value of the typeText record component.
      Returns:
      the value of the typeText record component
    • typeTooltip

      public String typeTooltip()
      Returns the value of the typeTooltip record component.
      Returns:
      the value of the typeTooltip record component
    • statusText

      public String statusText()
      Returns the value of the statusText record component.
      Returns:
      the value of the statusText record component
    • errorText

      public String errorText()
      Returns the value of the errorText record component.
      Returns:
      the value of the errorText record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • visible

      public boolean visible()
      Returns the value of the visible record component.
      Returns:
      the value of the visible record component