Package io.keikai.ui

Class ToolbarButton

  • All Implemented Interfaces:
    java.io.Serializable, org.zkoss.json.JSONAware
    Direct Known Subclasses:
    DropdownToolbarButton

    public class ToolbarButton
    extends java.lang.Object
    implements org.zkoss.json.JSONAware, java.io.Serializable
    A toolbar button for Spreadsheet component (Immutable).

    If the button's key is duplicated in AuxAction.getAction(), then the getTemplateURI() will be ignored and using the default template instead. Due to this limitation, you can remove the default button's key and then add a new toolbar button with an extra key which provides a different behavior implementation for it.

    Since:
    5.0.0
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ToolbarButton.Builder
      Toolbar button builder
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ToolbarButton​(java.lang.String key)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getIconClass()
      Returns the icon class, if any.
      java.lang.String getIconURI()
      Returns the icon uri, if any.
      java.lang.String getKey()
      Returns the button key.
      java.lang.String getLabel()
      Returns the button label.
      java.lang.String getTemplateURI()
      Returns the template uri, if any.
      java.lang.String getTooltip()
      Returns the tooltip text, if any.
      java.lang.String toJSONString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToolbarButton

        protected ToolbarButton​(java.lang.String key)
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns the button key.
        Returns:
      • getLabel

        public java.lang.String getLabel()
        Returns the button label.
        Returns:
      • getIconURI

        public java.lang.String getIconURI()
        Returns the icon uri, if any.
        Returns:
      • getIconClass

        public java.lang.String getIconClass()
        Returns the icon class, if any.
        Returns:
        Since:
        5.2.0
      • getTooltip

        public java.lang.String getTooltip()
        Returns the tooltip text, if any.
        Returns:
      • getTemplateURI

        public java.lang.String getTemplateURI()
        Returns the template uri, if any.
        Returns:
      • toJSONString

        public java.lang.String toJSONString()
        Specified by:
        toJSONString in interface org.zkoss.json.JSONAware