Package org.dmlite.model.component.link

Examples of org.dmlite.model.component.link.Link


    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      Link link = (Link) item.getModelObject();

      ModelContext linkModelContext = new ModelContext(modelContext);
      linkModelContext.setEntity(link);
      PropertyConfig urlPropertyConfig = link.getConceptConfig()
          .getPropertyConfig("url");
      linkModelContext.setPropertyConfig(urlPropertyConfig);
     
      ViewContext linkViewContext = new ViewContext(viewContext);
      linkViewContext.setWicketId("externalLink");
      linkViewContext.getMoreArgs().add("displayText", link.getName());
     
      ExternalLinkPanel externalLinkPanel = new ExternalLinkPanel(
          linkModelContext, linkViewContext);
      item.add(externalLinkPanel);
    } catch (Exception e) {
View Full Code Here


          SelectionCriteria all = SelectionCriteria
              .defineAllCriteria();
          allWebLinks = (Links) subjectWebLinks.getEntities(all);
          allWebLinks.setPropagateToSource(false);
        } else {
          Link link;
          for (Iterator y = subjectWebLinks.iterator(); y.hasNext();) {
            link = (Link) y.next();
            allWebLinks.add(link);
          }
        }
View Full Code Here

TOP

Related Classes of org.dmlite.model.component.link.Link

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.