Examples of Links


Examples of com.citytechinc.cq.component.annotations.widgets.rte.Links

  }

  private RtePlugin buildLinksPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.links().length > 0) {
      Links linksAnnotation = rteAnnotation.links()[0];
      List<String> features = new ArrayList<String>();

      if (linksAnnotation.modifylink()) {
        features.add("modifylink");
      }
      if (linksAnnotation.unlink()) {
        features.add("unlink");
      }
      if (linksAnnotation.anchor()) {
        features.add("anchor");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("table");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Links

  }

  private RtePlugin buildLinksPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.links().length > 0) {
      Links linksAnnotation = rteAnnotation.links()[0];
      List<String> features = new ArrayList<String>();

      if (linksAnnotation.modifylink()) {
        features.add("modifylink");
      }
      if (linksAnnotation.unlink()) {
        features.add("unlink");
      }
      if (linksAnnotation.anchor()) {
        features.add("anchor");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("links");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Links

  }

  private RtePlugin buildLinksPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.links().length > 0) {
      Links linksAnnotation = rteAnnotation.links()[0];
      List<String> features = new ArrayList<String>();

      if (linksAnnotation.modifylink()) {
        features.add("modifylink");
      }
      if (linksAnnotation.unlink()) {
        features.add("unlink");
      }
      if (linksAnnotation.anchor()) {
        features.add("anchor");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("table");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Links

    }
    return this.links;
  }

  protected Links loadLinks() {
    return new Links(this, null);
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Links

  }

  @Override
  protected Links loadLinks() {
    List<? extends Node> links = htmlElements().findAll("a");
    return new Links(this, links);
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Links

  public void testLoadWikipediaIndexPage() {
    Mechanize agent = new MechanizeAgent();
    AbstractDocument page = agent.get("http://www.wikipedia.org");
    assertNotNull(page);
    assertTrue(page.size() > 10000);
    Links links = page.links();
    assertTrue(links.size() > 10);
    assertNotNull(links.find("*[title*='English']"));
  }
 
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Links

  public void testClickingEnglishWikipediaVersionLink() {
    Mechanize agent = new MechanizeAgent();
    AbstractDocument page = agent.get("http://www.wikipedia.org");
    assertNotNull(page);
    assertTrue(page.size() > 10000);
    Links links = page.links();
    assertTrue(links.size() > 10);
    Link link = links.find("*[title*='English']");
    assertNotNull(link);
    Resource englishPage = link.click();
    assertEquals("Wikipedia, the free encyclopedia", englishPage.getTitle());
  }
View Full Code Here

Examples of com.sun.jersey.server.linking.Links

    private void findLinkHeaders(Class<?> entityClass) {
        Link linkHeaderAnnotation = entityClass.getAnnotation(Link.class);
        if (linkHeaderAnnotation != null) {
            linkHeaders.add(new LinkDescriptor(linkHeaderAnnotation));
        }
        Links linkHeadersAnnotation = entityClass.getAnnotation(Links.class);
        if (linkHeadersAnnotation != null) {
            for (Link linkHeader: linkHeadersAnnotation.value()) {
                linkHeaders.add(new LinkDescriptor(linkHeader));
            }
        }

        // look in superclasses
View Full Code Here

Examples of org.destecs.core.vdmlink.Links

    try
    {
      if (p != null)
      {
        Contract contract = ParserUtil.getContract(p, null);
        Links vdmLinks = ParserUtil.getVdmLinks(p, null);

        sb.append("--- \n");
        sb.append("--- Shared Design Parameters ---\n");
        sb.append("--- \n");
        for (IVariable sdp : contract.getSharedDesignParameters())
        {
          LinkInfo info = vdmLinks.getBoundVariableInfo(sdp.getName());
          String id = "?";
          if (info != null)
          {
            id = info.getQualifiedNameString();
          }
          sb.append(id + " <-> " + sdp.getName() + " <-> "
              + sdp.getName() + " not checked\n");
        }

        sb.append("\n\n");
        sb.append("--- \n");
        sb.append("--- Monitored Variables ---\n");
        sb.append("--- \n");
        for (IVariable sdp : contract.getMonitoredVariables())
        {
          LinkInfo info = vdmLinks.getBoundVariableInfo(sdp.getName());
          String id = "?";
          if (info != null)
          {
            id = info.getQualifiedNameString();
          }
          sb.append(id + " <-> " + sdp.getName() + " <-> "
              + sdp.getName() + " not checked\n");
        }
        sb.append("\n\n");
        sb.append("--- \n");
        sb.append("--- Controlled Variables ---\n");
        sb.append("--- \n");
        for (IVariable sdp : contract.getControlledVariables())
        {
          LinkInfo info = vdmLinks.getBoundVariableInfo(sdp.getName());
          String id = "?";
          if (info != null)
          {
            id = info.getQualifiedNameString();
          }
          sb.append(id + " <-> " + sdp.getName() + " <-> "
              + sdp.getName() + " not checked\n");
        }
        sb.append("\n\n");
        sb.append("--- \n");
        sb.append("--- Events ---\n");
        sb.append("--- \n");
        for (String event : contract.getEvents())
        {
          LinkInfo info = vdmLinks.getBoundVariableInfo(event);
          String id = "?";
          if (info != null)
          {
            id = info.getQualifiedNameString();
          }
View Full Code Here

Examples of org.destecs.core.vdmlink.Links

   */
  public static Links getVdmLinks(IDestecsProject project,
      IAddErrorHandler errorHandler) throws Exception
  {
    VdmLinkParserWrapper vdmLinkParser = new VdmLinkParserWrapper();
    Links vdmlinks = (Links) parse(vdmLinkParser, project.getVdmLinkFile(),
        errorHandler);
    return vdmlinks;
  }
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.