Package org.dmrad.view.context

Examples of org.dmrad.view.context.ModelContext


   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Comments comments = (Comments) modelContext.getEntities();
    comments = comments.getCommentsOrderedByCreationDate(false);
    newModelContext.setEntities(comments);
    return newModelContext;
  }
View Full Code Here


      if (app.isConceptUpdateAllowed(getAppSession(), conceptConfig, entity,
          "add")) {
        entities.getErrors().empty();
        if (entities.add(entity)) {
          ModelContext entityUpdateTablePageModelContext = new ModelContext(
              modelContext);
          ViewContext entityUpdateTablePageViewContext = new ViewContext(
              viewContext);
          setResponsePage(app.getViewMeta().getPage(
              "EntityUpdateTablePage",
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Models models = (Models) modelContext.getEntities();
    models = (Models) models.getModelsOrderedByCode();
    newModelContext.setEntities(models);
    return newModelContext;
  }
View Full Code Here

      ConceptConfig conceptConfig = entities.getConceptConfig();
      String conceptsKey = conceptConfig.getEntitiesCode();
      String conceptsName = getLocalizer().getString(conceptsKey, this);
      add(new Label("conceptsName", conceptsName));

      ModelContext entityDisplayListListModelContext = new ModelContext(
          modelContext);

      ViewContext entityDisplayListListViewContext = new ViewContext(
          viewContext);
      entityDisplayListListViewContext
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Projects projects = (Projects) modelContext.getEntities();
    projects = projects.getProjectsOrderedByName();
    newModelContext.setEntities(projects);
    return newModelContext;
  }
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Members members = (Members) modelContext.getEntities();
    members = members.getMembersOrderedByLastFirstName(true);
    newModelContext.setEntities(members);
    return newModelContext;
  }
View Full Code Here

    try {
      App app = viewContext.getApp();

      add(new FeedbackPanel("feedbackPanel"));

      ModelContext entityAddFormPanelModelContext = new ModelContext(
          modelContext);

      ViewContext entityAddFormPanelViewContext = new ViewContext(
          viewContext);
      entityAddFormPanelViewContext.setPage(this);
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Models models = (Models) modelContext.getEntities();
    models = (Models) models.getModelsOrderedByCode();
    newModelContext.setEntities(models);
    return newModelContext;
  }
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Members members = (Members) modelContext.getEntities();
    members = members.getMembersOrderedByLastFirstName(true);
    newModelContext.setEntities(members);
    return newModelContext;
  }
View Full Code Here

   *            model context
   * @return model context
   */
  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Presentations presentations = (Presentations) modelContext
        .getEntities();
    presentations = presentations.getPresentationsOrderedByTitle();
    newModelContext.setEntities(presentations);
    return newModelContext;
  }
View Full Code Here

TOP

Related Classes of org.dmrad.view.context.ModelContext

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.