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 - either a KendoIcon constant or a 'k-i-icon' css class
    • 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 being displayed in the Menu
        Specified by:
        getIcon in interface IMenuItem
        Returns:
        the icon css class
      • setIcon

        public AbstractMenuItem setIcon​(String icon)
        Sets the icon css class being displayed in the Menu (ie: ui-my-icon)
        Parameters:
        icon - either a KendoIcon constant or a 'k-i-icon' css class
        Returns:
        this, for chaining
      • 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 AbstractMenuItem setEnabled​(boolean enabled)
        Sets whether the menu-item is enabled
        Parameters:
        enabled - true or false
        Returns:
        this, for chaining
      • isSelected

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

        public AbstractMenuItem setSelected​(boolean selected)
        Sets whether the menu-item is selected
        Parameters:
        selected - true or false
        Returns:
        this, for chaining