Package org.apache.wicket.markup.repeater

Examples of org.apache.wicket.markup.repeater.RepeatingView.newChildId()


            add(rv);

            @SuppressWarnings("unused")
            Component component;
            for (final ObjectAssociation association : associations) {
                final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
                rv.add(container);
                container.add(eo.nextClass());
                if (association instanceof OneToOneAssociation) {
                    final OneToOneAssociation otoa = (OneToOneAssociation) association;
                    final PropertyMemento pm = new PropertyMemento(otoa);
View Full Code Here


                            ComponentType.COLLECTION_NAME_AND_CONTENTS, entityCollectionModel);
                }
            }

            // massive hack: an empty property line to get CSS correct...!
            final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
            rv.add(container);
            container.add(new Label(ID_PROPERTY_OR_COLLECTION, Model.of(" ")));
            container.add(eo.nextClass());
        }
View Full Code Here

        final EntityCollectionModel model = getModel();
        final List<ObjectAdapter> adapterList = model.getObject();
        final RepeatingView entityInstances = new RepeatingView(ID_ENTITY_INSTANCE);
        add(entityInstances);
        for (final ObjectAdapter adapter : adapterList) {
            final String childId = entityInstances.newChildId();
            final EntityModel entityModel = new EntityModel(adapter);
            final EntitySummaryPanel entitySummaryPanel = new EntitySummaryPanel(childId, entityModel);
            entityInstances.add(entitySummaryPanel);
        }
    }
View Full Code Here

        final EntityCollectionModel model = getModel();
        final List<ObjectAdapter> adapterList = model.getObject();
        final RepeatingView entityInstances = new RepeatingView("entityInstance");
        add(entityInstances);
        for (final ObjectAdapter adapter : adapterList) {
            final String childId = entityInstances.newChildId();
            entityInstances.add(new CollectionContentsInstanceAsTableRow(childId, new EntityModel(adapter)));
        }
    }
}
View Full Code Here

            final RepeatingView rv = new RepeatingView(ID_ACTION_PARAMETERS);
            add(rv);
           
            paramPanels.clear();
            for (final ActionParameterMemento apm : mementos) {
                final WebMarkupContainer container = new WebMarkupContainer(rv.newChildId());
                rv.add(container);

                final ScalarModel argumentModel = actionModel.getArgumentModel(apm);
                argumentModel.setActionArgsHint(actionModel.getArgumentsAsArray());
                final Component component = getComponentFactoryRegistry().addOrReplaceComponent(container, ComponentType.SCALAR_NAME_AND_VALUE, argumentModel);
View Full Code Here

        RepeatingView repeating = new RepeatingView(ID_REPEATING_SUMMARY);
        addOrReplace(repeating);

        for (ObjectAssociation numberAssociation : numberAssociations) {
            AbstractItem item = new AbstractItem(repeating.newChildId());

            repeating.add(item);

            String propertyName = numberAssociation.getName();
            item.add(new Label(ID_PROPERTY_NAME, new Model<String>(propertyName)));
View Full Code Here

        final RepeatingView collectionRv = new RepeatingView(ID_COLLECTIONS);
        add(collectionRv);

        for (final ObjectAssociation association : associations) {

            final WebMarkupContainer collectionRvContainer = new WebMarkupContainer(collectionRv.newChildId());
            collectionRv.add(collectionRvContainer);
           
            addCollectionToForm(entityModel, association, collectionRvContainer);
        }
    }
View Full Code Here

    add(column);

    Component tmp = null;
    for (HeaderRenderRow row : renderModel.getHeaderRows()) {
      // rendering row header (first columns)
      WebMarkupContainer tr = new WebMarkupContainer(column.newChildId());
      column.add(tr);
      RepeatingView rowHeader = new RepeatingView("rowHeader");
      tr.add(rowHeader);

      for (HeaderRenderCell cell : row.getRowHeader()) {
View Full Code Here

      tr.add(rowHeader);

      for (HeaderRenderCell cell : row.getRowHeader()) {
        if (cell.getPivotField() == null) {
          // rendering an empty cell
          tmp = new Label(rowHeader.newChildId(), "");
          tmp.add(AttributeModifier.append("class", "empty"));
          applyRowColSpan(cell, tmp);
          rowHeader.add(tmp);
        } else {
          // rendering row field
View Full Code Here

          tmp.add(AttributeModifier.append("class", "empty"));
          applyRowColSpan(cell, tmp);
          rowHeader.add(tmp);
        } else {
          // rendering row field
          tmp = createTitleLabel(rowHeader.newChildId(), cell.getPivotField());
          applyRowColSpan(cell, tmp);
          rowHeader.add(tmp);
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.