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

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


        };
    }

    @Override
    protected View createDropDownView() {
        final Axes viewAxes = getViewAxes();
        viewAxes.add(new SelectionListAxis(this), SelectionListAxis.class);
        return listSpecification.createView(getContent(), viewAxes, -1);
    }
View Full Code Here


        if (fieldContent.isCollection()) {
            internalSpecification = new SimpleListSpecification();
        } else {
            internalSpecification = new InternalFormSpecification();
        }
        addView(internalSpecification.createView(fieldContent, new Axes(), 0));
    }
View Full Code Here

    private final Axes axes;

    public MasterDetailPanel(final Content content, final ViewSpecification specification, final ViewSpecification leftHandSideSpecification) {
        super(content, specification);
        this.leftHandSideSpecification = leftHandSideSpecification;
        axes = new Axes();
        axes.add(new SelectableViewAxis(this));
    }
View Full Code Here

        super(wrappedView);
    }

    @Override
    protected View createDropDownView() {
        final Axes viewAxes = getViewAxes();
        viewAxes.add(new SelectionListAxis(this), SelectionListAxis.class);
        return spec.createView(getContent(), viewAxes, -1);
    }
View Full Code Here

        this.axis = axis;
    }

    @Override
    public Axes getViewAxes() {
        final Axes viewAxes = super.getViewAxes();
        viewAxes.add(axis);
        return viewAxes;
    }
View Full Code Here

        return viewRoot;
    }

    @Override
    public Axes getViewAxes() {
        return new Axes();
    }
View Full Code Here

        return "Replace this " + view.getSpecification().getName() + " view with a " + specification.getName() + " view";
    }

    @Override
    public void execute(final Workspace workspace, final View view, final Location at) {
        final View replacement = specification.createView(view.getContent(), new Axes(), -1);
        LOG.debug("replacement view " + replacement);
        replace(view, replacement);
    }
View Full Code Here

            spec = specification;
        }
        // TODO this should be passed in so that factory created views can be
        // related to the views that ask
        // for them
        final Axes axes = new Axes();
        View createView = spec.createView(content, axes, -1);

        /*
         * ObjectSpecification contentSpecification =
         * content.getSpecification(); if (contentSpecification != null) {
View Full Code Here

        return new DragViewOutline(view);
    }

    @Override
    public DragEvent createDragContentOutline(final View view, final Location location) {
        final View dragOverlay = dragContentSpecification.createView(view.getContent(), new Axes(), -1);
        return new ContentDragImpl(view, location, dragOverlay);
    }
View Full Code Here

        // resolveApplicationContextCollection(rootObject, "objects");
        final RootWorkspaceSpecification spec = new RootWorkspaceSpecification();
        final PerspectiveContent content = new PerspectiveContent(userProfiler.getPerspective());
        if (spec.canDisplay(new ViewRequirement(content, ViewRequirement.CLOSED))) {
            // View view = spec.createView(new RootObject(rootObject), null);
            final View view = spec.createView(content, new Axes(), -1);
            viewer.setRootView(view);
        } else {
            throw new IsisException();
        }
View Full Code Here

TOP

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

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.