Class ToolButton

java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.toolbutton.ToolButton
All Implemented Interfaces:
ClientObject, Component

public class ToolButton extends AbstractComponent
  • Field Details

    • onDropDownOpened

      public final Event<Void> onDropDownOpened
    • onClick

      public final Event<Void> onClick
  • Constructor Details

    • ToolButton

      public ToolButton(Icon<?,?> icon)
    • ToolButton

      public ToolButton(Icon<?,?> icon, String title)
    • ToolButton

      public ToolButton(Icon<?,?> icon, String title, Component dropDownComponent)
  • Method Details

    • isGrayOutIfNotHovered

      public boolean isGrayOutIfNotHovered()
    • setGrayOutIfNotHovered

      public void setGrayOutIfNotHovered(boolean grayOutIfNotHovered)
    • createUiComponent

      public UiComponent createUiComponent()
      Specified by:
      createUiComponent in class AbstractComponent
    • handleUiEvent

      public void handleUiEvent(UiEvent event)
    • getIcon

      public Icon<?,?> getIcon()
    • setIcon

      public void setIcon(Icon<?,?> icon)
    • getIconSize

      public Integer getIconSize()
    • setIconSize

      public void setIconSize(Integer iconSize)
    • getCaption

      public String getCaption()
    • setCaption

      public void setCaption(String caption)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • isOpenDropDownIfNotSet

      public boolean isOpenDropDownIfNotSet()
    • setOpenDropDownIfNotSet

      public void setOpenDropDownIfNotSet(boolean openDropDownIfNotSet)
    • getDropDownComponent

      public Component getDropDownComponent()
    • setDropDownComponent

      public void setDropDownComponent(Component dropDownComponent)
    • getMinDropDownWidth

      public Integer getMinDropDownWidth()
    • setMinDropDownWidth

      public void setMinDropDownWidth(Integer minDropDownWidth)
    • getMinDropDownHeight

      public Integer getMinDropDownHeight()
    • setMinDropDownHeight

      public void setMinDropDownHeight(Integer minDropDownHeight)
    • closeDropDown

      public void closeDropDown()