Examples of href()


Examples of com.ettrema.httpclient.Resource.href()

            return;
        }

        if( toDelete.size() == 1 ) {
            Resource r = toDelete.get( 0 );
            int result = JOptionPane.showConfirmDialog( component, "Are you sure you want to delete: " + r.href() + "?" );
            if( result == JOptionPane.YES_OPTION ) {
                try {
                    r.delete();
                } catch( Exception ex ) {
                    ex.printStackTrace();
View Full Code Here

Examples of com.ettrema.httpclient.Resource.href()

                  throw new RuntimeException( ex );
              }
          } else {
              File f = (File) r;
              if( ( f.contentType != null && f.contentType.equals( "text/html" ) ) || f.name.endsWith( "html" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( ( f.contentType != null && f.contentType.contains( "image" ) ) || f.name.endsWith( "jpg" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( f.contentType != null && f.contentType.contains( "text" ) ) {
                  openTextEditor( f );
              } else {
View Full Code Here

Examples of com.ettrema.httpclient.Resource.href()

          } else {
              File f = (File) r;
              if( ( f.contentType != null && f.contentType.equals( "text/html" ) ) || f.name.endsWith( "html" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( ( f.contentType != null && f.contentType.contains( "image" ) ) || f.name.endsWith( "jpg" ) ) {
                  BareBonesBrowserLaunch.openURL( r.href() );
              } else if( f.contentType != null && f.contentType.contains( "text" ) ) {
                  openTextEditor( f );
              } else {
                  java.io.File dest = new java.io.File( "/home/brad/Desktop" ); // TODO
                  java.io.File rFile;
View Full Code Here

Examples of com.fasterxml.jackson.module.jsonSchema.annotation.Link.href()

            Link[] links = hyperSchema.links();
            LinkDescriptionObject[] linkDescriptionObjects = new LinkDescriptionObject[links.length];
            for(int i = 0; i < links.length; i++) {
                Link link = links[i];
                linkDescriptionObjects[i] = new LinkDescriptionObject()
                    .setHref(pathStart + link.href())
                    .setRel(link.rel())
                    .setMethod(ignoreDefaults && "GET".equals(link.method()) ? null : link.method())
                    .setEnctype(ignoreDefaults && "application/json".equals(link.enctype()) ? null : link.enctype())
                    .setTargetSchema(fetchSchema(link.targetSchema()))
                    .setSchema(fetchSchema(link.schema()))
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Link.href()

        newHtml("Test Page", "<a id=\"foo\" href=\"foo.html\">foo</a>"));
   
    AbstractDocument page = agent().get("http://test.com");
    Link link = page.links().find("#foo");
    assertNotNull(link);
    assertEquals("http://test.com/foo.html", link.href());
  }

  @Test
  public void testLinkQueryByClass() {
    addPageRequest("http://test.com",
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Link.href()

   
    assertNull(page.links().find(".foo")); // foo class
   
    Link link1 = page.links().find(".bar");
    assertNotNull(link1);
    assertEquals("http://test.com/foo.html", link1.href());

    Link link2 = page.links().find(".baz");
    assertNotNull(link2);
    assertEquals("http://test.com/foo.html", link2.href());
  }
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Link.href()

    assertNotNull(link1);
    assertEquals("http://test.com/foo.html", link1.href());

    Link link2 = page.links().find(".baz");
    assertNotNull(link2);
    assertEquals("http://test.com/foo.html", link2.href());
  }

  @Test
  public void testLinkQueryByNameNotFound() {
    addPageRequest("http://test.com",
View Full Code Here

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

          fAniCursor.cleanup();
          fAniCursor = null;
        }
       
        // Create correct side bar
        if (ev.href().equals("level")) {
          LevelSideBar s = new LevelSideBar();
          setSideContainer(s);
          s.init();
          showLogics = true;
        } else if (ev.href().equals("tiles")) {
View Full Code Here

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

        if (ev.href().equals("level")) {
          LevelSideBar s = new LevelSideBar();
          setSideContainer(s);
          s.init();
          showLogics = true;
        } else if (ev.href().equals("tiles")) {
          TilesSideBar s = new TilesSideBar();
          setSideContainer(s);
          s.init();
          showCursor = true;
        } else if (ev.href().equals("smarts")) {
View Full Code Here

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

        } else if (ev.href().equals("tiles")) {
          TilesSideBar s = new TilesSideBar();
          setSideContainer(s);
          s.init();
          showCursor = true;
        } else if (ev.href().equals("smarts")) {
          SmartsSideBar s = new SmartsSideBar();
          setSideContainer(s);
          s.init();
          showCursor = true;
        } else if (ev.href().equals("logics")) {
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.