Package com.gitblit.models.NavLink

Examples of com.gitblit.models.NavLink.DropDownPageMenuNavLink


  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    PageParameters params = getPageParameters();

    DropDownPageMenuNavLink menu = new DropDownPageMenuNavLink("gb.filters",
        UserPage.class);
    // preserve time filter option on repository choices
    menu.menuItems.addAll(getRepositoryFilterItems(params));

    // preserve repository filter option on time choices
View Full Code Here


  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    PageParameters params = getPageParameters();

    DropDownPageMenuNavLink menu = new DropDownPageMenuNavLink("gb.filters",
        RepositoriesPage.class);
    // preserve time filter option on repository choices
    menu.menuItems.addAll(getRepositoryFilterItems(params));

    // preserve repository filter option on time choices
View Full Code Here

  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    PageParameters params = getPageParameters();

    DropDownPageMenuNavLink menu = new DropDownPageMenuNavLink("gb.filters",
        ProjectsPage.class);
    // preserve time filter option on repository choices
    menu.menuItems.addAll(getRepositoryFilterItems(params));

    // preserve repository filter option on time choices
View Full Code Here

    return true;
  }

  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    DropDownPageMenuNavLink filters = new DropDownPageMenuNavLink("gb.filters",
        ActivityPage.class);

    PageParameters currentParameters = getPageParameters();
    int daysBack = app().settings().getInteger(Keys.web.activityDuration, 7);
    if (currentParameters != null && !currentParameters.containsKey("db")) {
View Full Code Here

  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    PageParameters params = getPageParameters();

    DropDownPageMenuNavLink menu = new DropDownPageMenuNavLink("gb.filters",
        GitBlitWebApp.get().getHomePage());

    // preserve repository filter option on time choices
    menu.menuItems.addAll(getTimeFilterItems(params));
View Full Code Here

  @Override
  protected void addDropDownMenus(List<NavLink> navLinks) {
    PageParameters params = getPageParameters();

    DropDownPageMenuNavLink menu = new DropDownPageMenuNavLink("gb.filters",
        ProjectPage.class);
    // preserve time filter option on repository choices
    menu.menuItems.addAll(getRepositoryFilterItems(params));

    // preserve repository filter option on time choices
    menu.menuItems.addAll(getTimeFilterItems(params));

    if (menu.menuItems.size() > 0) {
      // Reset Filter
      menu.menuItems.add(new ParameterMenuItem(getString("gb.reset"), "p", WicketUtils.getProjectName(params)));
    }

    navLinks.add(menu);

    DropDownPageMenuNavLink projects = new DropDownPageMenuNavLink("gb.projects",
        ProjectPage.class);
    projects.menuItems.addAll(getProjectsMenu());
    navLinks.add(projects);
  }
View Full Code Here

          Component c = new LinkPanel("link", null, linkText, link.url);
          c.setRenderBodyOnly(true);
          item.add(c);
        } else if (navLink instanceof DropDownPageMenuNavLink) {
          // drop down menu
          DropDownPageMenuNavLink reg = (DropDownPageMenuNavLink) navLink;
          Component c = new DropDownMenu("link", linkText, reg);
          c.setRenderBodyOnly(true);
          item.add(c);
          WicketUtils.setCssClass(item, "dropdown");
        } else if (navLink instanceof DropDownMenuNavLink) {
View Full Code Here

TOP

Related Classes of com.gitblit.models.NavLink.DropDownPageMenuNavLink

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.