Package com.gitblit.models.Menu

Examples of com.gitblit.models.Menu.ExternalLinkMenuItem


          PageLinkMenuItem pageLink = (PageLinkMenuItem) entry;
          item.add(new LinkPanel("menuItem", null, null, pageLink.toString(), pageLink.getPageClass(),
              pageLink.getPageParameters(), false).setRenderBodyOnly(true));
        } else if (entry instanceof ExternalLinkMenuItem) {
          // link to a specified href
          ExternalLinkMenuItem extLink = (ExternalLinkMenuItem) entry;
          item.add(new LinkPanel("menuItem", null, extLink.toString(), extLink.getHref(),
              extLink.openInNewWindow()).setRenderBodyOnly(true));
        } else if (entry instanceof MenuDivider) {
          // divider
          item.add(new Label("menuItem").setRenderBodyOnly(true));
          WicketUtils.setCssClass(item, "divider");
        } else {
View Full Code Here


          PageLinkMenuItem pageLink = (PageLinkMenuItem) entry;
          item.add(new LinkPanel("menuItem", null, null, pageLink.toString(), pageLink.getPageClass(),
              pageLink.getPageParameters(), false).setRenderBodyOnly(true));
        } else if (entry instanceof ExternalLinkMenuItem) {
          // link to a specified href
          ExternalLinkMenuItem extLink = (ExternalLinkMenuItem) entry;
          item.add(new LinkPanel("menuItem", null, extLink.toString(), extLink.getHref(),
              extLink.openInNewWindow()).setRenderBodyOnly(true));
        } else if (entry instanceof MenuDivider) {
          // divider
          item.add(new Label("menuItem").setRenderBodyOnly(true));
          WicketUtils.setCssClass(item, "divider");
        } else {
View Full Code Here

            PageLinkMenuItem pageLink = (PageLinkMenuItem) item;
            menuItem.add(new LinkPanel("submenuLink", null, null, name, pageLink.getPageClass(),
                pageLink.getPageParameters(), false).setRenderBodyOnly(true));
          } else if (item instanceof ExternalLinkMenuItem) {
            // link to a specified href
            ExternalLinkMenuItem extLink = (ExternalLinkMenuItem) item;
            menuItem.add(new LinkPanel("submenuLink", null, name, extLink.getHref(),
                extLink.openInNewWindow()).setRenderBodyOnly(true));
          } else if (item instanceof MenuDivider) {
            // divider
            menuItem.add(new Label("submenuLink").setRenderBodyOnly(true));
            WicketUtils.setCssClass(menuItem, "divider");
          }
View Full Code Here

TOP

Related Classes of com.gitblit.models.Menu.ExternalLinkMenuItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.