Package org.apache.isis.viewer.dnd.icon

Examples of org.apache.isis.viewer.dnd.icon.SubviewIconSpecification


public class CollectionTreeNodeSpecification extends AbstractCollectionViewSpecification {

    public static ViewSpecification[] create() {
        final CollectionTreeNodeSpecification collectionNodeSpec = new CollectionTreeNodeSpecification();
        final ObjectTreeNodeSpecification objectNodeSpec = new ObjectTreeNodeSpecification();
        final SubviewIconSpecification iconSpec = new SubviewIconSpecification();

        collectionNodeSpec.addSubviewDecorator(new SelectObjectBorder.Factory());
        collectionNodeSpec.addSubviewDecorator(new ExpandableViewBorder.Factory(iconSpec, objectNodeSpec, null));
        collectionNodeSpec.addViewDecorator(new IconBorder.Factory(Toolkit.getText(ColorsAndFonts.TEXT_NORMAL)));
        objectNodeSpec.addSubviewDecorator(new SelectObjectBorder.Factory());
View Full Code Here


    private final View minimizedView;

    public MinimizedView(final View viewToMinimize) {
        super(viewToMinimize.getContent(), new Specification());
        this.minimizedView = viewToMinimize;
        iconView = new SubviewIconSpecification().createView(viewToMinimize.getContent(), viewToMinimize.getViewAxes(), -1);
        iconView.setParent(this);
        controls = new WindowControl[] { new RestoreWindowControl(this), new CloseWindowControl(this) };
    }
View Full Code Here

        private final ViewSpecification openObjectViewSpecification;
        private final ViewSpecification closedViewSpecification;
        private final ViewSpecification openCollectionViewSpecification;

        public Factory() {
            this.closedViewSpecification = new SubviewIconSpecification();
            this.openObjectViewSpecification = new InternalFormSpecification();
            this.openCollectionViewSpecification = new InternalListSpecification();
        }
View Full Code Here

    private final View minimizedView;

    public MinimizedView(final View viewToMinimize) {
        super(viewToMinimize.getContent(), new Specification());
        this.minimizedView = viewToMinimize;
        iconView = new SubviewIconSpecification().createView(viewToMinimize.getContent(), viewToMinimize.getViewAxes(), -1);
        iconView.setParent(this);
        controls = new WindowControl[] { new RestoreWindowControl(this), new CloseWindowControl(this) };
    }
View Full Code Here

        private final ViewSpecification openObjectViewSpecification;
        private final ViewSpecification closedViewSpecification;
        private final ViewSpecification openCollectionViewSpecification;

        public Factory() {
            this.closedViewSpecification = new SubviewIconSpecification();
            this.openObjectViewSpecification = new InternalFormSpecification();
            this.openCollectionViewSpecification = new InternalListSpecification();
        }
View Full Code Here

public class CollectionTreeNodeSpecification extends AbstractCollectionViewSpecification {

    public static ViewSpecification[] create() {
        final CollectionTreeNodeSpecification collectionNodeSpec = new CollectionTreeNodeSpecification();
        final ObjectTreeNodeSpecification objectNodeSpec = new ObjectTreeNodeSpecification();
        final SubviewIconSpecification iconSpec = new SubviewIconSpecification();

        collectionNodeSpec.addSubviewDecorator(new SelectObjectBorder.Factory());
        collectionNodeSpec.addSubviewDecorator(new ExpandableViewBorder.Factory(iconSpec, objectNodeSpec, null));
        collectionNodeSpec.addViewDecorator(new IconBorder.Factory(Toolkit.getText(ColorsAndFonts.TEXT_NORMAL)));
        objectNodeSpec.addSubviewDecorator(new SelectObjectBorder.Factory());
View Full Code Here

        private final ViewSpecification openObjectViewSpecification;
        private final ViewSpecification closedViewSpecification;
        private final ViewSpecification openCollectionViewSpecification;

        public Factory() {
            this.closedViewSpecification = new SubviewIconSpecification();
            this.openObjectViewSpecification = new InternalFormSpecification();
            this.openCollectionViewSpecification = new InternalListSpecification();
        }
View Full Code Here

    public MinimizedView(final View viewToMinimize) {
        super(viewToMinimize.getContent(), new Specification());
        this.minimizedView = viewToMinimize;
        iconView =
            new SubviewIconSpecification().createView(viewToMinimize.getContent(), viewToMinimize.getViewAxes(), -1);
        iconView.setParent(this);
        controls = new WindowControl[] { new RestoreWindowControl(this), new CloseWindowControl(this) };
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.icon.SubviewIconSpecification

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.