Package org.apache.isis.viewer.wicket.ui.components.collection

Examples of org.apache.isis.viewer.wicket.ui.components.collection.CollectionPanel


    protected void onSelect(AjaxRequestTarget target) {
        super.onSelect(target);
        Component component = this;
        while(component != null) {
            if(component instanceof CollectionPanel) {
                CollectionPanel collectionPanel = (CollectionPanel) component;
                boolean hasCount = collectionPanel.hasCount();
                if(hasCount) {
                    collectionPanel.updateLabel(target);
                }
                if(additionalLinks != null) {
                    applyCssVisibility(additionalLinks, hasCount);
                }
                return;
View Full Code Here


        final WebMarkupContainer fieldset = new WebMarkupContainer(ID_COLLECTION_GROUP);
        collectionRvContainer.add(fieldset);

    final OneToManyAssociation otma = (OneToManyAssociation) association;

    final CollectionPanel collectionPanel = new CollectionPanel(ID_COLLECTION, entityModel, otma);
   
    labelComponent = collectionPanel.createLabel(ID_COLLECTION_NAME, association.getName());
   
        fieldset.add(labelComponent);

    fieldset.addOrReplace(collectionPanel);
  }
View Full Code Here

    protected void onSelect(AjaxRequestTarget target) {
        super.onSelect(target);
        Component component = this;
        while(component != null) {
            if(component instanceof CollectionPanel) {
                CollectionPanel collectionPanel = (CollectionPanel) component;
                boolean hasCount = collectionPanel.hasCount();
                if(hasCount) {
                    collectionPanel.updateLabel(target);
                }
                if(additionalLinks != null) {
                    applyCssVisibility(additionalLinks, hasCount);
                }
                return;
View Full Code Here

                    component = getComponentFactoryRegistry().addOrReplaceComponent(container, ID_PROPERTY_OR_COLLECTION, ComponentType.SCALAR_NAME_AND_VALUE, scalarModel);
                } else {
                    final OneToManyAssociation otma = (OneToManyAssociation) association;

                    final EntityCollectionModel entityCollectionModel = EntityCollectionModel.createParented(entityModel, otma);
                    final CollectionPanel collectionPanel = new CollectionPanel(ID_PROPERTY_OR_COLLECTION, entityCollectionModel);
                    container.addOrReplace(collectionPanel);

                    component = getComponentFactoryRegistry().addOrReplaceComponent(container, ID_PROPERTY_OR_COLLECTION, ComponentType.COLLECTION_NAME_AND_CONTENTS, entityCollectionModel);
                }
            }
View Full Code Here

                } else {
                    final OneToManyAssociation otma = (OneToManyAssociation) association;

                    final EntityCollectionModel entityCollectionModel =
                        EntityCollectionModel.createParented(entityModel, otma);
                    final CollectionPanel collectionPanel =
                        new CollectionPanel(ID_PROPERTY_OR_COLLECTION, entityCollectionModel);
                    container.addOrReplace(collectionPanel);

                    component =
                        getComponentFactoryRegistry().addOrReplaceComponent(container, ID_PROPERTY_OR_COLLECTION,
                            ComponentType.COLLECTION_NAME_AND_CONTENTS, entityCollectionModel);
View Full Code Here

        final String name = association.getName();
        fieldset.add(new Label(ID_COLLECTION_NAME, name));

    final OneToManyAssociation otma = (OneToManyAssociation) association;

    final CollectionPanel collectionPanel = new CollectionPanel(ID_COLLECTION, entityModel, otma);

    fieldset.addOrReplace(collectionPanel);
  }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.wicket.ui.components.collection.CollectionPanel

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.