Record Class ReorderItemSupport.BindingSource

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.mvvm.binders.swing.util.ReorderItemSupport.BindingSource
Enclosing class:
ReorderItemSupport<T>

public static record ReorderItemSupport.BindingSource(Runnable moveSelectionUp, Runnable moveSelectionDown, PropertyPublisherReadOnly<Boolean> upEnabled, PropertyPublisherReadOnly<Boolean> downEnabled) extends Record
  • Constructor Details

    • BindingSource

      public BindingSource(Runnable moveSelectionUp, Runnable moveSelectionDown, PropertyPublisherReadOnly<Boolean> upEnabled, PropertyPublisherReadOnly<Boolean> downEnabled)
      Creates an instance of a BindingSource record class.
      Parameters:
      moveSelectionUp - the value for the moveSelectionUp record component
      moveSelectionDown - the value for the moveSelectionDown record component
      upEnabled - the value for the upEnabled record component
      downEnabled - the value for the downEnabled record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • moveSelectionUp

      public Runnable moveSelectionUp()
      Returns the value of the moveSelectionUp record component.
      Returns:
      the value of the moveSelectionUp record component
    • moveSelectionDown

      public Runnable moveSelectionDown()
      Returns the value of the moveSelectionDown record component.
      Returns:
      the value of the moveSelectionDown record component
    • upEnabled

      public PropertyPublisherReadOnly<Boolean> upEnabled()
      Returns the value of the upEnabled record component.
      Returns:
      the value of the upEnabled record component
    • downEnabled

      public PropertyPublisherReadOnly<Boolean> downEnabled()
      Returns the value of the downEnabled record component.
      Returns:
      the value of the downEnabled record component