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

Examples of org.apache.isis.viewer.dnd.view.ViewFactory


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


public class TreeNodeSpecification extends CompositeViewSpecification {

    public TreeNodeSpecification() {
        builder = new ViewBuilder() {
            ViewBuilder objectBuilder = new ObjectFieldBuilder(new ViewFactory() {
                @Override
                public View createView(final Content content, final Axes axes, final int sequence) {
                    if (content.isTextParseable() || content.getAdapter() == null) {
                        return null;
                    } else if (content.isObject()) {
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

        addViewDecorator(new IconBorder.Factory());
    }

    @Override
    protected ViewFactory createElementFactory() {
        return new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int sequence) {
                final View icon = new ImageViewSpecification().createView(content, axes, sequence);
                /*
                 * Icon icon = new Icon(content,
View Full Code Here

               
                ignoring(mockContainer);
            }
        });

        final ViewFactory subviewSpec = new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                return new DummyView();
            }
        };
View Full Code Here

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

public abstract class SelectionListSpecification extends CompositeViewSpecification {

    public SelectionListSpecification() {
        builder = new SelectionListBuilder(new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                final View elementView = createElementView(content);
                final SelectionListAxis axis = axes.getAxis(SelectionListAxis.class);
                axes.add(axis);
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

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        final ViewFactory subviewSpec = new ViewFactory() {
            @Override
            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                return new DummyView();
            }
        };
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

        });
        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

TOP

Related Classes of org.apache.isis.viewer.dnd.view.ViewFactory

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.