Examples of href()


Examples of com.pointcliki.ui.Hyperlink.HyperlinkEvent.href()

        } else if (ev.href().equals("smarts")) {
          SmartsSideBar s = new SmartsSideBar();
          setSideContainer(s);
          s.init();
          showCursor = true;
        } else if (ev.href().equals("logics")) {
          ObjectSideBar s = new ObjectSideBar();
          setSideContainer(s);
          s.init();
          if (fSelectedLogic != null) s.editLogic(fSelectedLogic);
          showLogics = true;
View Full Code Here

Examples of com.puppetlabs.geppetto.graph.IHrefProducer.href()

      public int getStart() {
        return -1;
      }

    };
    String result = producer.href(fakeExport, new File("/foo/bar/"));
    assertEquals("https://github.com/puppetlabs/geppetto/master/about.html#L23", result);

  }

  @Test
View Full Code Here

Examples of org.qi4j.library.rest.common.link.Link.href()

            {
                ValueBuilder<Link> linkBuilder = module.newValueBuilder( Link.class );
                Link prototype = linkBuilder.prototype();
                prototype.classes().set( "query" );
                prototype.text().set( humanReadable( query.getName() ) );
                prototype.href().set( query.getName().toLowerCase() );
                prototype.rel().set( query.getName().toLowerCase() );
                prototype.id().set( query.getName().toLowerCase() );
                queriesProperty.add( linkBuilder.newInstance() );
            }
        }
View Full Code Here

Examples of org.qi4j.library.rest.common.link.Link.href()

            {
                ValueBuilder<Link> linkBuilder = module.newValueBuilder( Link.class );
                Link prototype = linkBuilder.prototype();
                prototype.classes().set( "command" );
                prototype.text().set( humanReadable( command.getName() ) );
                prototype.href().set( command.getName().toLowerCase() );
                prototype.rel().set( command.getName().toLowerCase() );
                prototype.id().set( command.getName().toLowerCase() );
                commandsProperty.add( linkBuilder.newInstance() );
            }
        }
View Full Code Here

Examples of org.qi4j.library.rest.common.link.Link.href()

            {
                ValueBuilder<Link> linkBuilder = module.newValueBuilder( Link.class );
                Link prototype = linkBuilder.prototype();
                prototype.classes().set( "resource" );
                prototype.text().set( humanReadable( subResource.getName() ) );
                prototype.href().set( subResource.getName().toLowerCase() + "/" );
                prototype.rel().set( subResource.getName().toLowerCase() );
                prototype.id().set( subResource.getName().toLowerCase() );
                resourcesProperty.add( linkBuilder.newInstance() );
            }
        }
View Full Code Here

Examples of org.qi4j.library.rest.common.link.Link.href()

            }
            else
            {
                response.setStatus( Status.REDIRECTION_TEMPORARY );
                Link link = (Link) result;
                Reference reference = new Reference( response.getRequest().getResourceRef(), link.href().get() );
                response.setLocationRef( reference );
                return true;
            }
        }
        else if( result instanceof Links )
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.