Package org.dmrad.view.entity.display

Examples of org.dmrad.view.entity.display.EntityDisplayTablePage


      commentsModelContext.setEntities(comments);

      ViewContext commentsViewContext = new ViewContext();
      commentsViewContext.setApp(app);

      EntityDisplayTablePage commentsPage = new EntityDisplayTablePage(
          commentsModelContext, commentsViewContext);
      Link commentsLink = new PageLink("commentsLink", commentsPage);
      add(commentsLink);

      ModelContext questionsModelContext = new ModelContext();
      questionsModelContext.setDomainModel(app.getDomainModel());
      Questions questions = (Questions) app.getEntry("Questions");
      questionsModelContext.setEntities(questions);

      ViewContext questionsViewContext = new ViewContext();
      questionsViewContext.setApp(app);

      EntityDisplayTablePage questionsPage = new EntityDisplayTablePage(
          questionsModelContext, questionsViewContext);
      Link questionsLink = new PageLink("questionsLink", questionsPage);
      add(questionsLink);

      ModelContext presentationsModelContext = new ModelContext();
      presentationsModelContext.setDomainModel(app.getDomainModel());
      Presentations presentations = (Presentations) app
          .getEntry("Presentations");
      Presentations orderedPresentations = presentations
          .getPresentationsOrderedByTitle();
      presentationsModelContext.setEntities(orderedPresentations);

      ViewContext presentationsViewContext = new ViewContext();
      presentationsViewContext.setApp(app);

      EntityDisplayTablePage orderedPresentationsPage = new EntityDisplayTablePage(
          presentationsModelContext, presentationsViewContext);
      Link orderedPresentationsLink = new PageLink("presentationsLink",
          orderedPresentationsPage);
      add(orderedPresentationsLink);
View Full Code Here

TOP

Related Classes of org.dmrad.view.entity.display.EntityDisplayTablePage

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.