Class MenuItem

    • Constructor Detail

      • MenuItem

        public MenuItem()
    • Method Detail

      • getText

        public String getText()
        Get the text associated with this menu item.

        Default: null

        Returns:
        text the text value
      • setText

        public void setText​(String text)
        Set the text to be associated with this menu item.
        Parameters:
        text - the text to display
      • getTextKey

        public String getTextKey()
        Get the key to a language string, if internationalization is required.

        Default: null

        Since:
        7.2.2.0
      • setTextKey

        public void setTextKey​(String textKey)
        Set the key to a language string, if internationalization is required.
        Since:
        7.2.2.0
      • getOnclick

        public org.zkoss.json.JavaScriptValue getOnclick()
        Get the javascript function associated with this menu item's onclick event.

        Default: null

      • setOnclick

        public void setOnclick​(org.zkoss.json.JavaScriptValue onclick)
        Set the javascript function to handle this menu item's onclick event.
        Parameters:
        onclick - the javascript function to be associated with onclick event