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

Examples of org.apache.isis.viewer.dnd.view.composite.CollectionElementBuilder


import org.apache.isis.viewer.dnd.view.composite.StackLayout;

public abstract class AbstractTableSpecification extends CompositeViewSpecification {

    public AbstractTableSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            TableRowSpecification rowSpecification = new TableRowSpecification();

            // TODO do directly without specification
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
View Full Code Here


                final int cellNo = acrossThenDown ? row * columns + column : column * rows + row;
                View cell;
                if (cellContents[cellNo] == null) {
                    cell = new BlankView(new NullContent());
                } else {
                    cell = new CompositeViewUsingBuilder(cellContents[cellNo], null, new Axes(), new StackLayout(), new CollectionElementBuilder(new IconElementFactory()));
                    cell = new ScrollBorder(cell);
                }
                cells[cellNo] = cell;
                addView(cell);
            }
View Full Code Here

import org.apache.isis.viewer.dnd.view.content.FieldContent;

public class GridSpecification extends CompositeViewSpecification {

    public GridSpecification() {
        builder = new CollectionElementBuilder(new AbstractFormSpecification() {
            @Override
            public String getName() {
                return "";
            }
View Full Code Here

                        return TreeNodeSpecification.this.createView(content, axes, -1);
                    }
                }
            });

            ViewBuilder collectiontBuilder = new CollectionElementBuilder(new IconElementFactory());

            {
                final Factory decorator = new ExpandableViewBorder.Factory(null, TreeNodeSpecification.this, null);
                objectBuilder.addSubviewDecorator(decorator);
                collectiontBuilder.addSubviewDecorator(decorator);

            }

            @Override
            public void addSubviewDecorator(final SubviewDecorator decorator) {
View Full Code Here

        });
        return associationList;
    }

    public HistogramSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
                return new HistogramBar(content, axes.getAxis(HistogramAxis.class), HistogramSpecification.this);
            }
        });
View Full Code Here

        }
    }

    public GridListSpecification() {
        final ElementFactory factory = new ElementFactory();
        builder = new CollectionElementBuilder(factory);
        // TODO allow to be switched on so that user can change the view for a
        // single element. This type of
        // view used for an element would not be stored.
        if (false) {
            addSubviewDecorator(new ConfigurableFieldBorder.Factory());
View Full Code Here

            return facet != null && facet.size(collection) > 0;
        }
    }

    public OpenCollectionNodeSpecification() {
        builder = new CollectionElementBuilder(this);
    }
View Full Code Here

        });
        return associationList;
    }

    public HistogramSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
                return new HistogramBar(content, axes.getAxis(HistogramAxis.class), HistogramSpecification.this);
            }
        });
View Full Code Here

import org.apache.isis.viewer.dnd.view.composite.StackLayout;

public abstract class AbstractTableSpecification extends CompositeViewSpecification {

    public AbstractTableSpecification() {
        builder = new CollectionElementBuilder(new ViewFactory() {
            TableRowSpecification rowSpecification = new TableRowSpecification();

            // TODO do directly without specification
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
View Full Code Here

                final int cellNo = acrossThenDown ? row * columns + column : column * rows + row;
                View cell;
                if (cellContents[cellNo] == null) {
                    cell = new BlankView(new NullContent());
                } else {
                    cell = new CompositeViewUsingBuilder(cellContents[cellNo], null, new Axes(), new StackLayout(), new CollectionElementBuilder(new IconElementFactory()));
                    cell = new ScrollBorder(cell);
                }
                cells[cellNo] = cell;
                addView(cell);
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.view.composite.CollectionElementBuilder

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.