Class SfMenuItem

    • Constructor Detail

      • SfMenuItem

        public SfMenuItem​(String title)
        Constructor
        Parameters:
        title - the title of the menu-item
      • SfMenuItem

        public SfMenuItem​(IModel<String> title)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
      • SfMenuItem

        public SfMenuItem​(String title,
                          Class<? extends Page> pageClass)
        Constructor
        Parameters:
        title - the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
      • SfMenuItem

        public SfMenuItem​(IModel<String> title,
                          Class<? extends Page> pageClass)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
      • SfMenuItem

        public SfMenuItem​(String title,
                          Class<? extends Page> pageClass,
                          PageParameters pageParameters)
        Constructor
        Parameters:
        title - the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
        pageParameters - the PageParameters
      • SfMenuItem

        public SfMenuItem​(IModel<String> title,
                          Class<? extends Page> pageClass,
                          PageParameters pageParameters)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
        pageParameters - the PageParameters
      • SfMenuItem

        public SfMenuItem​(String title,
                          List<ISfMenuItem> items)
        Constructor
        Parameters:
        title - the title of the menu-item
        items - the sub-menu items
      • SfMenuItem

        public SfMenuItem​(IModel<String> title,
                          List<ISfMenuItem> items)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        items - the sub-menu items
      • SfMenuItem

        public SfMenuItem​(String title,
                          Class<? extends Page> pageClass,
                          List<ISfMenuItem> items)
        Constructor
        Parameters:
        title - the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
        items - the sub-menu items
      • SfMenuItem

        public SfMenuItem​(IModel<String> title,
                          Class<? extends Page> pageClass,
                          List<ISfMenuItem> items)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        pageClass - the class of the page to redirect to, when menu-item is clicked
        items - the sub-menu items
      • SfMenuItem

        public SfMenuItem​(String title,
                          String pageUrl)
        Constructor
        Parameters:
        title - title of the menu-item
        pageUrl - the url of the page to redirect to when menu-item is clicked
      • SfMenuItem

        public SfMenuItem​(Model<String> title,
                          String pageUrl)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        pageUrl - the url of the page to redirect to when menu-item is clicked
      • SfMenuItem

        public SfMenuItem​(String title,
                          String pageUrl,
                          boolean openInNewWindow)
        Constructor
        Parameters:
        title - title of the menu-item
        pageUrl - the url of the page to redirect to when menu-item is clicked
        openInNewWindow - whether the page is opened in a new window
      • SfMenuItem

        public SfMenuItem​(IModel<String> title,
                          String pageUrl,
                          boolean openInNewWindow)
        Constructor
        Parameters:
        title - IModel that represents the title of the menu-item
        pageUrl - the url of the page to redirect to when menu-item is clicked
        openInNewWindow - whether the page is opened in a new window