Examples of Navigation


Examples of com.aldaviva.autorpg.display.web.pages.panels.Navigation

 
  public BasePage(){
    add(CSSPackageResource.getHeaderContribution(CSS_DIR_PREFIX+"Reset.css"));
    add(CSSPackageResource.getHeaderContribution(CSS_DIR_PREFIX+"Global.css"));
   
    Navigation navigation = new Navigation("navigation", this);
    add(navigation);
   
    add(new Label("pageTitle", new StringResourceModel("navLinks.text."+getClass().getSimpleName(), navigation, null)));
   
    add(new Link<BasePage>("logo"){
View Full Code Here

Examples of com.google.code.lightssh.project.security.entity.Navigation

    if( top == null || top.isEmpty() )
      return top;
   
    List<Navigation> results = new ArrayList<Navigation>( );
    for( Navigation item:top ){
      Navigation tmp = item.trimByPermission( pers );
      if( tmp != null )
        results.add(tmp);
    }
   
    return results;
View Full Code Here

Examples of net.minecraft.server.Navigation

   * @param speed to move with
   */
  public void moveTo(Location location, double speed) {
    EntityLiving nmsEntity = CommonNMS.getNative(this.entity);
    if(nmsEntity instanceof EntityInsentient) {
      Navigation navigation = (Navigation) EntityLivingRef.getNavigation.invoke(nmsEntity);
      double x = location.getX();
      double y = location.getY();
      double z = location.getZ();
      if(!navigation.a(x, y, z, speed)) {
        int dx = MathUtil.floor(x);
        int dy = (int) y;
        int dz = MathUtil.floor(z);
        PathEntity path = nmsEntity.world.a(nmsEntity, dx, dy, dz, (float) this.getPathfindingRange(), true, false, false, true);
        this.moveWithPath(path, speed);
View Full Code Here

Examples of net.sf.mvc.mobile.Navigation

  private Alert view;
 
  public void load(Object parameter) throws Exception {
    Object[] params = (Object[]) parameter;
    Observation existing = (Observation) params[0];   
    Navigation onYes = (Navigation) params[1];
    Navigation onNo = (Navigation) params[2];
 
    view.setString("${overwrite.existing}\n"+existing);
    view.setTimeout(Alert.FOREVER);
    view.removeCommand(yesCommand);
    view.removeCommand(noCommand);
View Full Code Here

Examples of org.apache.myfaces.tobago.example.demo.Navigation

  }

  public String navigateAction() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    VariableResolver resolver = facesContext.getApplication().getVariableResolver();
    Navigation navigation = (Navigation) resolver.resolveVariable(facesContext, "navigation");

    // in case of both the select control is not processed during lifecycle
    // we need to get the value from the request params
    navigateAction = (String) facesContext.getExternalContext().getRequestParameterMap().get("page:navSelect");

    LOG.info("navigateAction = \"" + navigateAction + "\"");
    if (navigateAction == null) {
      return logAndNavigate(null);
    } else if ("left".equals(navigateAction)) {
      AjaxUtils.addAjaxComponent(facesContext, "page:left");
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("right".equals(navigateAction)) {
      AjaxUtils.addAjaxComponent(facesContext, "page:right");
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("both".equals(navigateAction)) {
      AjaxUtils.addAjaxComponent(facesContext, "page:left");
      AjaxUtils.addAjaxComponent(facesContext, "page:right");
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("parent".equals(navigateAction)) {
      navigateAction = null;
      AjaxUtils.addAjaxComponent(facesContext, "page:parent");
      return logAndNavigate(null);
    } else if ("prev".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoPrevious());
    } else if ("next".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoNext());
    }
    return logAndNavigate(null);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.example.demo.Navigation

  }

  public String navigateAction() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    VariableResolver resolver = facesContext.getApplication().getVariableResolver();
    Navigation navigation = (Navigation) resolver.resolveVariable(facesContext, "navigation");
    LOG.info("navigateAction = \"" + navigateAction + "\"");
    if (navigateAction == null) {
      return logAndNavigate(null);
    } else if ("both".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("prev".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoPrevious());
    } else if ("next".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoNext());
    }
    return logAndNavigate(null);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.example.demo.Navigation

  }

  public String navigateAction() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    VariableResolver resolver = facesContext.getApplication().getVariableResolver();
    Navigation navigation = (Navigation) resolver.resolveVariable(facesContext, "navigation");
    LOG.info("navigateAction = \"" + navigateAction + "\"");
    if (navigateAction == null) {
      return logAndNavigate(null);
    } else if ("both".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("prev".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoPrevious());
    } else if ("next".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoNext());
    }
    return logAndNavigate(null);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.example.demo.Navigation

  }

  public String navigateAction() {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    VariableResolver resolver = facesContext.getApplication().getVariableResolver();
    Navigation navigation = (Navigation) resolver.resolveVariable(facesContext, "navigation");

    // in case of both the select control is not processed during lifecycle
    // we need to get the value from the request params
    navigateAction = (String) facesContext.getExternalContext().getRequestParameterMap().get("page:content:navSelect");

    LOG.info("navigateAction = \"" + navigateAction + "\"");
    if (navigateAction == null) {
      return logAndNavigate(null);
    } else if ("parent".equals(navigateAction)) {
      navigateAction = null;
      AjaxUtils.addAjaxComponent(facesContext, "page:content:parent");
      return logAndNavigate(null);
    } else if ("both".equals(navigateAction)) {
      AjaxUtils.addAjaxComponent(facesContext, "page:content:left");
      AjaxUtils.addAjaxComponent(facesContext, "page:content:right");
      navigateAction = null;
      return logAndNavigate(null);
    } else if ("prev".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoPrevious());
    } else if ("next".equals(navigateAction)) {
      navigateAction = null;
      return logAndNavigate(navigation.gotoNext());
    }
    return logAndNavigate(null);
  }
View Full Code Here

Examples of org.apache.pluto.portalImpl.aggregation.navigation.Navigation

    // Aaron's code -- to force the navigation tree to render fully expanded, and not offer links to non-leaf nodes
    //                 todo this is pretty bad and should be replaced by a subclass of TabNavigation
    //                 see http://svn.apache.org/repos/asf/portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/aggregation/navigation/
    java.util.List list = new java.util.ArrayList();
    java.util.Stack stack = new java.util.Stack();
    Navigation root = fragment.getRootNavigation();
    java.util.List childList = (java.util.List)root.getChildren();
    java.util.Map map = new java.util.HashMap();
    for(int i=childList.size()-1; i>=0; i--) {
        stack.push(childList.get(i));
        map.put(stack.peek(), new Integer(0));
    }
    while(!stack.isEmpty()) {
        Navigation nav = (Navigation) stack.pop();
        Integer depth = (Integer) map.get(nav);
        list.add(new NavigationTreeBean(nav, nav.getChildren().size() > 0 || url.isPartOfGlobalNavigation(nav.getLinkedFragment().getId()), depth.intValue()));
        childList = (java.util.List)nav.getChildren();
        for(int i=childList.size()-1; i>=0; i--) {
            stack.push(childList.get(i));
            map.put(stack.peek(), new Integer(depth.intValue()+1));
        }
    }
    tree = (NavigationTreeBean[]) list.toArray(new NavigationTreeBean[list.size()]);
    // End Aaron's Code

    for (int i=0; i<tree.length; i++) {
            Navigation nav = tree[i].navigation;
            String imageName = nav.getDescription();
            int index = imageName.indexOf(" ");
            if ((index == -1) || !imageName.substring(index-4, index).equals(GIF)) {
               imageName = DEFAULT_GIF;
            } else {
               imageName = imageName.substring(0,index);
            }

            boolean partOfNav = tree[i].partOfGlobalNav;

            if (tree[i].depth>0)
            {

      out.write("\n\t\t\t\t\t\t\t\t<tr><td><div class=\"Subselection\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\"> \n                <tr>\n                  <td class=\"Left\">&nbsp;</td> \n                  <td class=\"Indent\">&nbsp;</td> \n                  <td class=\"Middle\">\n");

              for (int k=0; k<tree[i].depth; k++)
              {

      out.write("\n  \t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;\n");

              }
                if (!partOfNav)
                {

      out.write("\n                    <a href=\"");
      out.print(new PortalURL(request, nav.getLinkedFragment()).toString());
      out.write("\"><img border=\"0\" src=\"");
      out.print(request.getContextPath());
      out.write("/images/");
      out.print(imageName);
      out.write("\">&nbsp;");
      out.print(nav.getTitle());
      out.write("</a>\n");

                }
                else
                {

      out.write("                  <img border=\"0\" src=\"");
      out.print(request.getContextPath());
      out.write("/images/");
      out.print(imageName);
      out.write("\">&nbsp;");
      out.print(nav.getTitle());
      out.write('\n');

                }

      out.write("\n                  </td> \n                  <td class=\"Right\">&nbsp;</td> \n                </tr> \n\t\t\t\t\t\t\t\t</table></div></td></tr>\n");

            }
            else
            {

      out.write("\t\t\t\t\t\t\n\t\t\n  \t\t\t\t\t\t<tr><td><div class=\"Selection\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n              <tr>\n\t\t\t\t\t\t\t  <td class=\"CollapsedLeft\">&nbsp;</td>\n\t\t\t\t\t\t\t\t<td class=\"Indent\">&nbsp;</td>\n\t\t\t\t\t\t\t  <td class=\"TopMiddle\">\n");

                if (!partOfNav)
                {

      out.write("                  <a href=\"");
      out.print(new PortalURL(request, nav.getLinkedFragment()).toString());
      out.write("\"><img border=\"0\" src=\"");
      out.print(request.getContextPath());
      out.write("/images/");
      out.print(imageName);
      out.write("\">&nbsp;");
      out.print(nav.getTitle());
      out.write("</a>\n");

                }
                else
                {

      out.write("                  <img border=\"0\" src=\"");
      out.print(request.getContextPath());
      out.write("/images/");
      out.print(imageName);
      out.write("\">&nbsp;");
      out.print(nav.getTitle());
      out.write('\n');

                }

      out.write("\n \t\t\t\t\t\t\t      \n\t \t\t\t\t\t\t  </td>\n                <td class=\"CollapsedRight\">&nbsp;</td> \n              </tr>\n\t\t\t\t\t\t</table></div></td></tr>\n");
View Full Code Here

Examples of org.gatein.api.navigation.Navigation

    public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
        String resourceID = request.getResourceID();

        if (resourceID != null && resourceID.equals(NODE_RESOURCE_ID)) {
            String siteId = request.getParameter("siteId");
            Navigation navigation = PortalRequest.getInstance().getPortal().getNavigation(SiteId.fromString(siteId));

            String chosenNodeURI = request.getParameter("uri");

            Node chosenNode = navigation.getNode(NodePath.fromString(chosenNodeURI), Nodes.visitNodes(getNodeLevel(request)));

            boolean showEmptyCategory = getShowEmptyCategory(request);

            NodeBean chosenNodeBean = generateNodeBean(chosenNode, SiteId.fromString(siteId), showEmptyCategory);
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.