Package wicket.markup.html.link

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

Related Classes of wicket.markup.html.link.ExternalLink

Copyright © 2018 www.massapicom. 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.