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

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


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()) {
                        return new IconElementFactory().createView(content, axes, 0); // TreeNodeSpecification.this.createView(content,
                                                                                      // axes);
                    } else {
                        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
View Full Code Here


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

public abstract class AbstractObjectViewSpecification extends CompositeViewSpecification {

    public AbstractObjectViewSpecification() {
        builder = new ObjectFieldBuilder(createFieldFactory());
        init();
    }
View Full Code Here

    // be hidden/disabled, but will be visible/enabled (perhaps incorrectly)
    // for any other value for Where
    private final Where where = Where.ANYWHERE;

    public OpenObjectNodeSpecification() {
        builder = new ObjectFieldBuilder(this);
    }
View Full Code Here

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

public class ConfigurableObjectViewSpecification extends CompositeViewSpecification {

    public ConfigurableObjectViewSpecification() {
        builder = new ObjectFieldBuilder(new StandardFields());
        addSubviewDecorator(new FieldLabelsDecorator());
        addSubviewDecorator(new ConfigurableFieldBorder.Factory());
        addViewDecorator(new GridLayoutControlBorder.Factory());
        addViewDecorator(new IconBorder.Factory());
    }
View Full Code Here

*/
public class OpenObjectNodeSpecification extends CompositeNodeSpecification {
    private final SubviewDecorator decorator = new SelectObjectBorder.Factory();

    public OpenObjectNodeSpecification() {
        builder = new ObjectFieldBuilder(this);
    }
View Full Code Here

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

public abstract class AbstractObjectViewSpecification extends CompositeViewSpecification {

    public AbstractObjectViewSpecification() {
        builder = new ObjectFieldBuilder(createFieldFactory());
        init();
    }
View Full Code Here

*/
public class OpenObjectNodeSpecification extends CompositeNodeSpecification {
    private final SubviewDecorator decorator = new SelectObjectBorder.Factory();

    public OpenObjectNodeSpecification() {
        builder = new ObjectFieldBuilder(this);
    }
View Full Code Here

TOP

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

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.