Class AbstractMenuItem

    • Constructor Detail

      • AbstractMenuItem

        public AbstractMenuItem​(org.apache.wicket.model.IModel<String> title,
                                String icon)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        icon - the icon css class; 'ui-icon-blank' or JQueryIcon.BLANK may be used to display no icon.
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: IMenuItem
        Gets the menu-item markup id
        Specified by:
        getId in interface IMenuItem
        Returns:
        the menu-item markup id
      • getTitle

        public org.apache.wicket.model.IModel<String> getTitle()
        Description copied from interface: IMenuItem
        Gets the menu-item title
        Specified by:
        getTitle in interface IMenuItem
        Returns:
        the menu-item title
      • setTitle

        public void setTitle​(org.apache.wicket.model.IModel<String> title)
        Sets the menu-item title
        Parameters:
        title - the menu-item title
      • getIcon

        public String getIcon()
        Description copied from interface: IMenuItem
        Gets the icon css class being displayed in the Menu
        Specified by:
        getIcon in interface IMenuItem
        Returns:
        the icon css class
      • setIcon

        public void setIcon​(String icon)
        Sets the icon css class being displayed in the Menu (ie: ui-my-icon)
        Parameters:
        icon - the icon css class
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: IMenuItem
        Indicates whether the menu-item is enabled
        Specified by:
        isEnabled in interface IMenuItem
        Returns:
        true or false
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether the menu-item is enabled
        Parameters:
        enabled - true or false