Package org.dmrad.view.context

Examples of org.dmrad.view.context.ModelContext


   */
  public DmLiteEntryMenuPanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(modelContext, viewContext);

    ModelContext entryDisplayTablePageModelContext = new ModelContext(
        modelContext);

    ViewContext entryDisplayTablePageViewContext = new ViewContext(
        viewContext);

    add(new PageLink("displayEntry", new EntryDisplayTablePage(
        entryDisplayTablePageModelContext,
        entryDisplayTablePageViewContext)));

    ModelContext entryUpdateTablePageModelContext = new ModelContext(
        modelContext);

    ViewContext entryUpdateTablePageViewContext = new ViewContext(
        viewContext);
    entryUpdateTablePageViewContext.setUpdate(true);
View Full Code Here


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

        if (firstEntity == null) {
          Panel panel = new Panel("entityDisplaySlidePanel");
          panel.setVisible(false);
          add(panel);
        } else {
          ModelContext entityDisplaySlidePanelModelContext = new ModelContext(
              modelContext);
          entityDisplaySlidePanelModelContext.setEntity(firstEntity);

          ViewContext entityDisplaySlidePanelViewContext = new ViewContext(
              viewContext);
          entityDisplaySlidePanelViewContext.setPage(this);
          entityDisplaySlidePanelViewContext.setUpdate(false);
          entityDisplaySlidePanelViewContext
              .setWicketId("entityDisplaySlidePanel");

          add(app.getViewMeta().getPanel("EntityDisplaySlidePanel",
              entityDisplaySlidePanelModelContext,
              entityDisplaySlidePanelViewContext));
        }
      } else {
        ModelContext entityDisplaySlidePanelModelContext = new ModelContext(
            modelContext);

        ViewContext entityDisplaySlidePanelViewContext = new ViewContext(
            viewContext);
        entityDisplaySlidePanelViewContext.setPage(this);
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

          .getModelConfig();
      String modelKey = modelConfig.getCode();
      String modelName = getLocalizer().getString(modelKey, this);
      add(new Label("modelName", modelName));

      ModelContext entryUpdateTableListModelContext = new ModelContext(
          modelContext);

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

     */
    public ConfirmationForm(final String wicketId) {
      super(wicketId);
      applicants = (Applicants) app.getEntry("Applicants");

      ModelContext applicantModelContext = new ModelContext();
      applicantModelContext.setDomainModel(app.getDomainModel());
      applicantModelContext.setEntities(applicants);
     
      ViewContext applicantViewContext = new ViewContext();
      applicantViewContext.setApp(app);
      applicantViewContext.setUpdate(true);
      applicantViewContext.setContextPage(contextPage);
View Full Code Here

      List<String> childNeighborNames = lookupConceptConfig
          .getChildNeighborNames();
      add(new NeighborEmptyNameLabelListView(
          "neighborEmptyNameLabelListViewHead", childNeighborNames));

      ModelContext lookupModelContext = new ModelContext(modelContext);
      lookupModelContext.setContextEntities(lookupModelContext
          .getEntities());
      lookupModelContext.setEntities(lookupEntities);

      ViewContext lookupViewContext = new ViewContext(viewContext);
      lookupViewContext.setWicketId("entityLookupTableListView");
      PageableListView entityLookupTableListView = app.getViewMeta()
          .getPageableListView("EntityLookupTableListView",
View Full Code Here

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

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

    try {
      App app = viewContext.getApp();

      add(new FeedbackPanel("feedbackPanel"));

      ModelContext entityEditFormPanelModelContext = new ModelContext(
          modelContext);
      entityEditFormPanelModelContext.setAction("update");

      ViewContext entityEditFormPanelViewContext = new ViewContext(
          viewContext);
      entityEditFormPanelViewContext.setPage(this);
      entityEditFormPanelViewContext.setWicketId("entityEditFormPanel");
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.