Package org.domain.model.component.topic

Examples of org.domain.model.component.topic.Topics


      add(new HomePageMenuPanel("homePageMenuPanel", this));

      ModelContext topicsModelContext = new ModelContext();
      topicsModelContext.setDomainModel(app.getDomainModel());
      Topics topics = (Topics) app.getEntry("Topics");
      Topic modelAndWebTopic = (Topic) topics.getTopic(MODEL_AND_WEB);
      if (modelAndWebTopic != null) {
        Topics modelAndWebTopicSubtopics = (Topics) modelAndWebTopic
            .getSubtopics();
        topicsModelContext.setEntities(modelAndWebTopicSubtopics);
      } else {
        topicsModelContext.setEntities(topics);
      }
View Full Code Here


      MultiLineLabel projectDescriptionLabel = new MultiLineLabel(
          "projectDescription", projectDescription);
      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();
View Full Code Here

  }

  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Topics topics = (Topics) modelContext.getLookupEntities();
    Topics orderedTopics = topics.getTopicsOrderedByName();
    newModelContext.setLookupEntities(orderedTopics);
    return newModelContext;
  }
View Full Code Here

    }
  }

  public Topic getTopic() {
    if (topic == null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
    return topic;
  }
View Full Code Here

  }

  public void setTopicOid(Long topicOid) {
    this.topicOid = topicOid;
    if (topicOid != null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
  }
View Full Code Here

    Quotes quotes = getQuotes();
    quotes.output("Quotes");
  }

  private void outputTopics() {
    Topics topics = getTopics();
    topics.output("Topics");
  }
View Full Code Here

      }
    }
  }

  private void test03() {
    Topics topics = getTopics();
    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

    }
  }

  private void test13() {
    try {
      Topics topics = getTopics();
      Topic topic = new Topic(this.getDomainModel());
      topic.setName("SE");
      topic.setDescription("Software Engineering");
      if (topics.add(topic)) {
        topic.output("Software Engineering");
      }
    } catch (ActionException ae) {
      log.info("Add topic problem: " + ae.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.domain.model.component.topic.Topics

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.