Package wicket.markup.html.list

Examples of wicket.markup.html.list.ListView


      ViewContext parentChildViewContext = new ViewContext(viewContext,
          true);
      parentChildViewContext.setWicketId("parentChildPropertyList");
      parentChildViewContext.getMoreArgs().add("shortText", Boolean.TRUE);

      ListView parentChildPropertyDisplayListListView = app.getViewMeta()
          .getListView("ParentChildPropertyDisplayListListView",
              parentChildModelContext, parentChildViewContext);
      add(parentChildPropertyDisplayListListView);
      if (!app.isConceptDisplayAllowed(getAppSession(),
          parentConceptConfig)) {
        parentChildPropertyDisplayListListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in ParentChildPropertyDisplayListPanel: "
          + e.getMessage());
    }
View Full Code Here


          propertyValuePanels.add(essentialPropertyPanel);
        } // end if (propertyConfig.isEssential()) {
      } // for

      ListView propertyValuePanelListView = new PropertyValuePanelListView(
          "propertyValuePanelListView", propertyValuePanels);
      item.add(propertyValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyValuePanelListView.setVisible(false);
      }

      final ViewContext entityDisplayPageViewContext = new ViewContext(
          viewContext);
      entityDisplayPageViewContext.setUpdate(false);
View Full Code Here

          propertyNameLabelValuePanelPairs
              .add(propertyNameLabelValuePanelPair);
        } // if (propertyConfig.isEssential()) {
      } // end for

      ListView propertyNameLabelValuePanelListView = new PropertyNameLabelValuePanelListView(
          "propertyNameLabelValuePanelListView",
          propertyNameLabelValuePanelPairs);
      add(propertyNameLabelValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyNameLabelValuePanelListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in EntityDisplayMinPanel: "
          + modelContext.getEntityCode() + " - " + e.getMessage());
    }
View Full Code Here

          propertyNameLabelValuePanelPairs
              .add(propertyNameLabelValuePanelPair);
        } // end if (!propertyConfig.isReference()) {
      } // end for

      ListView propertyNameLabelValuePanelListView = new PropertyNameLabelValuePanelListView(
          "propertyNameLabelValuePanelListView",
          propertyNameLabelValuePanelPairs);
      add(propertyNameLabelValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyNameLabelValuePanelListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in EntityDisplayPanel: "
          + modelContext.getEntityCode() + " - " + e.getMessage());
    }
View Full Code Here

            .setPropertyValuePanel(propertyValuePanel);
        propertyNameLabelValuePanelPairs
            .add(propertyNameLabelValuePanelPair);
      } // end for

      ListView propertyNameLabelValuePanelListView = new PropertyNameLabelValuePanelListView(
          "propertyNameLabelValuePanelListView",
          propertyNameLabelValuePanelPairs);
      add(propertyNameLabelValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyNameLabelValuePanelListView.setVisible(false);
      }

      add(new Button("cancel") {
        static final long serialVersionUID = 200721L;
View Full Code Here

          propertyNameLabelValuePanelPairs
              .add(propertyNameLabelValuePanelPair);
        }
      }

      ListView propertyNameLabelValuePanelListView = new PropertyNameLabelValuePanelListView(
          "propertyNameLabelValuePanelListView",
          propertyNameLabelValuePanelPairs);
      item.add(propertyNameLabelValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyNameLabelValuePanelListView.setVisible(false);
      }

      List<Panel> childList = new ArrayList<Panel>();
      for (IEntity neighborConfigEntity : neighborsConfig) {
        NeighborConfig neighborConfig = (NeighborConfig) neighborConfigEntity;
View Full Code Here

          modelContext);
      ViewContext entityPropertyListViewContext = new ViewContext(
          viewContext);
      entityPropertyListViewContext.setWicketId("entityPropertyList");

      ListView entityPropertyDisplayListListView = app.getViewMeta()
          .getListView("EntityPropertyDisplayListListView",
              entityPropertyListModelContext,
              entityPropertyListViewContext);
      add(entityPropertyDisplayListListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        entityPropertyDisplayListListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in EntityPropertyDisplayListPanel: "
          + e.getMessage());
    }
View Full Code Here

      childModelContext.setEntities(childEntities);

      ViewContext childViewContext = new ViewContext(viewContext, true);
      childViewContext.setWicketId("childPropertyList");

      ListView childPropertyDisplayListListView = app.getViewMeta()
          .getListView("ChildPropertyDisplayListListView",
              childModelContext, childViewContext);
      add(childPropertyDisplayListListView);
      ConceptConfig childConceptConfig = childEntities.getConceptConfig();
      if (!app.isConceptDisplayAllowed(getAppSession(),
          childConceptConfig)) {
        childPropertyDisplayListListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in ChildPropertyDisplayListPanel: "
          + e.getMessage());
    }
View Full Code Here

   *            view context
   * @return list view
   */
  public ListView getListView(final String classSimpleName,
      final ModelContext modelContext, final ViewContext viewContext) {
    ListView result = null;
    try {
      String actionType;
      if (viewContext.isUpdate()) {
        actionType = "update";
      } else {
View Full Code Here

      ViewContext entityDisplayListListViewContext = new ViewContext(
          viewContext);
      entityDisplayListListViewContext
          .setWicketId("entityDisplayListListView");

      ListView entityDisplayListListView = app.getViewMeta().getListView(
          "EntityDisplayListListView",
          entityDisplayListListModelContext,
          entityDisplayListListViewContext);
      add(entityDisplayListListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        entityDisplayListListView.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in EntityDisplayListPanel: "
          + modelContext.getEntitiesCode() + " - " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of wicket.markup.html.list.ListView

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.