Examples of ExternalLink


Examples of org.apache.wicket.markup.html.link.ExternalLink

    // Popup example
    add(new BookmarkablePageLink("popupButtonLink", Popup.class)
        .setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
        PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
        "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new ResourceReference("cancelButton")));
View Full Code Here

Examples of org.apache.wicket.markup.html.link.ExternalLink

    // Popup example
    add(new BookmarkablePageLink<Void>("popupButtonLink", Popup.class).setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new SharedResourceReference("cancelButton")));
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.ExternalLink

        verify(dao).getAll();
    }

    @Test
    public void testAddLink() throws Exception {
        ExternalLink linkToSave = new ExternalLink();
        Component component = new Component();
        service.saveLink(linkToSave, component);
        verify(dao).saveOrUpdate(linkToSave);
    }
View Full Code Here

Examples of wicket.markup.html.link.ExternalLink

                .extractBeginPlusThreeDots(link,
                    App.SHORT_TEXT_LENGTH);
          } else {
            linkDisplayText = displayText;
          }
          externalLink = new ExternalLink("propertyValue", link,
              linkDisplayText);
          add(externalLink);
        } else if (propertyClass == Email.class) {
          Email email = (Email) property;
          if (email == null) {
            link = "";
          } else {
            link = email.toString();
          }
          if (displayText == null) {
            linkDisplayText = textExtractor
                .extractBeginPlusThreeDots(link,
                    App.SHORT_TEXT_LENGTH);
          } else {
            linkDisplayText = displayText;
          }
          externalLink = new ExternalLink("propertyValue", "mailto: " + link,
              linkDisplayText);
          add(externalLink);
        } else if (propertyClass == String.class) {
          link = (String) property;
          if (link == null) {
            link = "";
          }
          if (propertyConfig.getValidationType()
              .equals("java.net.URL")) {
            if (displayText == null) {
              linkDisplayText = textExtractor
                  .extractBeginPlusThreeDots(link,
                      App.SHORT_TEXT_LENGTH);
            } else {
              linkDisplayText = displayText;
            }
            externalLink = new ExternalLink("propertyValue", link,
                linkDisplayText);
            add(externalLink);
          } else if (propertyConfig.getValidationType().equals(
              "org.dmlite.type.email.Email")) {
            if (displayText == null) {
              linkDisplayText = textExtractor
                  .extractBeginPlusThreeDots(link,
                      App.SHORT_TEXT_LENGTH);
            } else {
              linkDisplayText = displayText;
            }
            externalLink = new ExternalLink("propertyValue", "mailto: " + link,
                linkDisplayText);
            add(externalLink);
          } else {
            externalLink = new ExternalLink("propertyValue", "", "");
            add(externalLink);
          }
        } else {
          externalLink = new ExternalLink("propertyValue", "", "");
          add(externalLink);
        }
      }
    } catch (Exception e) {
      log.error("Error in ExternalLinkPanel: "
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.