Class UrlMenuItem

    • Constructor Detail

      • UrlMenuItem

        public UrlMenuItem​(String title,
                           CharSequence url)
        Constructor
        Parameters:
        title - the title of the menu-item
        url - the url to redirect to
      • UrlMenuItem

        public UrlMenuItem​(String title,
                           String icon,
                           CharSequence url)
        Constructor
        Parameters:
        title - the title of the menu-item
        icon - either a KendoIcon constant or a 'k-i-icon' css class
        url - the url to redirect to
      • UrlMenuItem

        public UrlMenuItem​(org.apache.wicket.model.IModel<String> title,
                           CharSequence url)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        url - the url to redirect to
      • UrlMenuItem

        public UrlMenuItem​(org.apache.wicket.model.IModel<String> title,
                           String icon,
                           CharSequence url)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        icon - either a KendoIcon constant or a 'k-i-icon' css class
        url - the url to redirect to
    • Method Detail

      • getUrl

        public String getUrl()
      • onClick

        public void onClick​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Description copied from interface: IMenuItem
        Triggered when the menu-item is clicked
        Parameters:
        target - the AjaxRequestTarget