Examples of Axes


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

        return viewRoot;
    }

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

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

        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

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

            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

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

        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

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

        // 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

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

                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

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

                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

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

        // 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

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

    }

    @Override
    protected void buildView() {
        // addView(getContent(), initialViewSpecification, null);
        final View newView = initialViewSpecification.createView(getContent(), new Axes(), 0);
        panel.addView(newView, null);
        addView(newView);
    }
View Full Code Here

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

        final ViewSpecification viewSpecification = Toolkit.getViewFactory().availableViews(requirement).nextElement();
        addView(content, viewSpecification, position);
    }

    public void addView(final Content content, final ViewSpecification specification, final Position position) {
        final View newView = specification.createView(content, new Axes(), 0);
        // newView = new LineBorder(newView);
        panel.addView(newView, position);
        addView(newView);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.