Class ButtonComponent


  • public final class ButtonComponent
    extends java.lang.Object
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns:
        A unique identifier for the component.
      • getLabel

        public java.lang.String getLabel()
        Returns:
        The text that will be rendered inside the button.
      • getAction

        public ActionComponent getAction()
        Returns:
        This can be a Submit Action, URL Action, or Sheets Action.
      • getStyle

        public java.util.Optional<ButtonComponent.Style> getStyle()
        Returns:
        Styles the button. Default is 'primary'.
      • getDisabled

        public java.util.Optional<java.lang.Boolean> getDisabled()
        Returns:
        Styles the button and prevents the action. Default is false.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object