Package org.apache.isis.viewer.dnd.view.collection

Examples of org.apache.isis.viewer.dnd.view.collection.CollectionContent


    @Override
    public boolean canDisplay(final ViewRequirement requirement) {
        if (!requirement.isCollection() || !requirement.isOpen()) {
            return false;
        } else {
            final CollectionContent collectionContent = (CollectionContent) requirement.getContent();
            final ObjectSpecification elementSpecification = collectionContent.getElementSpecification();
            final List<ObjectAssociation> fields = elementSpecification.getAssociations(Contributed.EXCLUDED, ObjectAssociation.Filters.VISIBLE_AT_LEAST_SOMETIMES);
            for (int i = 0; i < fields.size(); i++) {
                if (fields.get(i).isOneToOneAssociation()) {
                    return true;
                }
View Full Code Here


        }
    }

    private CalendarCellContent[] createContentForCells() {
        final CalendarCellContent[] cellContents = new CalendarCellContent[rows * columns];
        final CollectionContent content = (CollectionContent) getContent();
        for (final ObjectAdapter element : content.elements()) {
            final Date date = dateFor(element);
            if (date == null) {
                continue;
            }
            final int period = cellLayout.getPeriodFor(date);
View Full Code Here

        final Content content = view.getContent();
        final OneToManyAssociation field = content instanceof OneToManyField ? ((OneToManyField) content).getOneToManyAssociation() : null;

        LOG.debug("rebuild view " + view + " for " + content);

        final CollectionContent collectionContent = ((CollectionContent) content);
        Enumeration elements;
        elements = collectionContent.allElements();

        // addViewAxes(view);

        /*
         * remove all subviews from the view and then work through the elements
View Full Code Here

        final Content content = view.getContent();
        final OneToManyAssociation field = content instanceof OneToManyField ? ((OneToManyField) content).getOneToManyAssociation() : null;

        LOG.debug("rebuild view " + view + " for " + content);

        final CollectionContent collectionContent = ((CollectionContent) content);
        Enumeration elements;
        elements = collectionContent.allElements();

        // addViewAxes(view);

        /*
         * remove all subviews from the view and then work through the elements
View Full Code Here

    @Override
    public boolean canDisplay(final ViewRequirement requirement) {
        if (!requirement.isCollection() || !requirement.isOpen()) {
            return false;
        } else {
            final CollectionContent collectionContent = (CollectionContent) requirement.getContent();
            final ObjectSpecification elementSpecification = collectionContent.getElementSpecification();
            final List<ObjectAssociation> fields = elementSpecification.getAssociations(ObjectAssociationFilters.STATICALLY_VISIBLE_ASSOCIATIONS);
            for (int i = 0; i < fields.size(); i++) {
                if (fields.get(i).isOneToOneAssociation()) {
                    return true;
                }
View Full Code Here

        }
    }

    private CalendarCellContent[] createContentForCells() {
        final CalendarCellContent[] cellContents = new CalendarCellContent[rows * columns];
        final CollectionContent content = (CollectionContent) getContent();
        for (final ObjectAdapter element : content.elements()) {
            final Date date = dateFor(element);
            if (date == null) {
                continue;
            }
            final int period = cellLayout.getPeriodFor(date);
View Full Code Here

        }
    }

    private CalendarCellContent[] createContentForCells() {
        final CalendarCellContent[] cellContents = new CalendarCellContent[rows * columns];
        final CollectionContent content = (CollectionContent) getContent();
        for (final ObjectAdapter element : content.elements()) {
            final Date date = dateFor(element);
            if (date == null) {
                continue;
            }
            final int period = cellLayout.getPeriodFor(date);
View Full Code Here

    @Override
    public boolean canDisplay(final ViewRequirement requirement) {
        if (!requirement.isCollection() || !requirement.isOpen()) {
            return false;
        } else {
            final CollectionContent collectionContent = (CollectionContent) requirement.getContent();
            final ObjectSpecification elementSpecification = collectionContent.getElementSpecification();
            final List<ObjectAssociation> fields =
                elementSpecification.getAssociations(ObjectAssociationFilters.STATICALLY_VISIBLE_ASSOCIATIONS);
            for (int i = 0; i < fields.size(); i++) {
                if (fields.get(i).isOneToOneAssociation()) {
                    return true;
View Full Code Here

        final OneToManyAssociation field =
            content instanceof OneToManyField ? ((OneToManyField) content).getOneToManyAssociation() : null;

        LOG.debug("rebuild view " + view + " for " + content);

        final CollectionContent collectionContent = ((CollectionContent) content);
        Enumeration elements;
        elements = collectionContent.allElements();

        // addViewAxes(view);

        /*
         * remove all subviews from the view and then work through the elements of the collection adding in a view for
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.view.collection.CollectionContent

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.