Package org.domain.model.component.link

Examples of org.domain.model.component.link.Links


  private Interests interests;

  public Topic(IDomainModel domainModel) {
    super(domainModel);
    // internal child neighbors only
    setLinks(new Links(this));
    setSubtopics(new Topics(this));
  }
View Full Code Here


      item.add(projectDescriptionLabel);

      App app = (App) getApplication();
      Topics topics = (Topics) app.getEntry("Topics");
      Topic projectTopic = (Topic) topics.getTopic(project.getName());
      Links projectTopicLinks;
      if (projectTopic == null) {
        projectTopicLinks = new Links(project.getDomainModel());
      } else {
        projectTopicLinks = (Links) projectTopic.getLinks();
      }
      ModelContext linkModelContext = new ModelContext(modelContext);
      Links approvedOrderedLinks = (Links) projectTopicLinks
          .getApprovedLinks().getLinksOrderedByName();
      linkModelContext.setEntities(approvedOrderedLinks);
      ViewContext linkViewContext = new ViewContext(viewContext);
      linkViewContext.setWicketId("linkListPanel");
      LinkListPanel linkListPanel = new LinkListPanel(linkModelContext,
View Full Code Here

      String title = topic.getName().toUpperCase();
      Label topicNameLabel = new Label("topicName", title);
      item.add(topicNameLabel);

      ModelContext linkModelContext = new ModelContext(modelContext);
      Links topicLinks = (Links) topic.getLinks();
      Links approvedOrderedLinks = (Links) topicLinks.getApprovedLinks()
          .getLinksOrderedByName();
      linkModelContext.setEntities(approvedOrderedLinks);
      ViewContext linkViewContext = new ViewContext(viewContext);
      linkViewContext.setWicketId("linkListPanel");
      LinkListPanel linkListPanel = new LinkListPanel(linkModelContext,
View Full Code Here

    Topic firstTopic = (Topic) topics.first();
    if (firstTopic != null) {
      Topics firstTopicSubtopics = firstTopic.getSubtopics();
      Topic firstSubtopic = (Topic) firstTopicSubtopics.first();
      if (firstSubtopic != null) {
        Links firstSubtopicLinks = (Links) firstSubtopic.getLinks();
        firstSubtopicLinks.output("First Subtopic Links");
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.domain.model.component.link.Links

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.