Examples of Navigation


Examples of org.playframework.playclipse.Navigation

   
    if (action == null || p == null) {
      System.out.println("no action to go to.");
    }
    else {
      new Navigation(win, p).goToAction(action);
    }
    return null;
  }
View Full Code Here

Examples of org.playframework.playclipse.Navigation

          viewName = "app/" + (useJapid ? "japidviews" : "views") + "/"
              + (packageName.equals("controllers") ? "" : packageName.substring(12).replace('.', '/') + "/") + controllerName
              + "/" + viewName + ".html";
        }

        (new Navigation(window, p)).goToViewAbs(viewName);
      }
    }

    return null;
  }
View Full Code Here

Examples of org.playframework.playclipse.Navigation

  private static final String ACTION = "action";
  private Navigation navigation;

  protected Navigation getNav() {
    if (navigation == null) {
      navigation = new Navigation(getHelper());
    }
    return navigation;
  }
View Full Code Here

Examples of org.slim3.controller.Navigation

    }

    @Test
    public void response() throws Exception {
        request.setCharacterEncoding("UTF-8");
        Navigation result = target.response("OK");
        assertThat(result, is(nullValue()));
        assertThat(response.getContentType(), is("text/plain; charset=UTF-8"));
        assertThat(response.getContentLength(), is(2));
        assertThat(response.getOutputAsString(), is("OK"));
    }
View Full Code Here

Examples of org.slim3.controller.Navigation

    }

    @Test
    public void response_shift_jis() throws Exception {
        request.setCharacterEncoding("Shift_JIS");
        Navigation result = target.response("こんにちは001");
        assertThat(result, is(nullValue()));
        assertThat(response.getContentType(), is("text/plain; charset=Shift_JIS"));
        assertThat(response.getContentLength(), is(13));
        assertThat(response.getOutputAsString(), is("こんにちは001"));
    }
View Full Code Here

Examples of org.zkoss.openlayers.control.Navigation

    super.doAfterCompose(comp);
    map.setOptions(toMap(pair("controls", Collections.EMPTY_LIST)));
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    nav = new Navigation(toMap(pair("zoomWheelEnabled", false)));
    map.addControl(nav);
    map.zoomToMaxExtent();

  }
View Full Code Here

Examples of org.zkybase.web.sitemap.navigation.Navigation

   * @return node ID
   */
  protected String addNavigation(Model model, String nodeId) {
    notNull(model);
    notNull(nodeId);
    model.addAttribute(new Navigation(sitemap, nodeId, model.asMap()));
    return nodeId;
  }
View Full Code Here

Examples of sagan.support.nav.Navigation

            public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
                                   ModelAndView modelAndView) throws Exception {

                if (handler instanceof HandlerMethod) {
                    HandlerMethod handlerMethod = (HandlerMethod) handler;
                    Navigation navSection = handlerMethod.getBean().getClass().getAnnotation(Navigation.class);
                    if (navSection != null && modelAndView != null) {
                        modelAndView.addObject("navSection", navSection.value().toString().toLowerCase());
                    }
                }
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.