Examples of WindowBorder


Examples of org.apache.isis.viewer.dnd.border.WindowBorder

        View objectBorder = new ObjectBorder(1, v);

        View scrollBorder = new ScrollBorder(objectBorder);
        scrollBorder.setSize(new Size(200, 200));

        View view = new WindowBorder(scrollBorder, false);
        view.setLocation(new Location(50, 60));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view = new WindowBorder(new TestObjectView(content, specification, axis, 100, 30, "active"), false);
        view.setLocation(new Location(200, 300));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view.getState().setActive();

        view = new WindowBorder(new TestObjectView(content, specification, axis, 100, 30, "view identified"), false);
        view.setLocation(new Location(200, 400));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view.getState().setInactive();
        view.getState().setRootViewIdentified();

    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.border.WindowBorder

        ObjectAdapter object = createExampleObjectForView();
        Content content = new RootObject(object);
        ViewSpecification specification = new ExampleViewSpecification();
        ViewAxis axis = null;

        View view = new WindowBorder(new TestObjectView(content, specification, axis, 300, 120, "normal"), false);
        view.setLocation(new Location(50, 60));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view = new WindowBorder(new TestObjectView(content, specification, axis, 100, 30, "active"), false);
        view.setLocation(new Location(200, 300));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view.getState().setActive();

        view = new WindowBorder(new TestObjectView(content, specification, axis, 100, 30, "view identified"), false);
        view.setLocation(new Location(200, 400));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view.getState().setInactive();
        view.getState().setRootViewIdentified();

    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    }

    @Override
    public void addWindow(final View containedView, final Placement placement) {
        final boolean scrollable = !containedView.getSpecification().isResizeable();
        final WindowBorder windowView = new WindowBorder(containedView, scrollable);
        addView(windowView);
        placement.position(this, windowView);
        windowView.setFocusManager(new SubviewFocusManager(windowView));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    @Override
    public void replaceView(final View toReplace, final View replacement) {
        if (replacement.getSpecification().isOpen()) {
            final boolean scrollable = !replacement.getSpecification().isResizeable();
            final WindowBorder windowView = new WindowBorder(replacement, scrollable);
            super.replaceView(toReplace, windowView);
        } else {
            super.replaceView(toReplace, replacement);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    }

    @Override
    public void addWindow(final View containedView, final Placement placement) {
        final boolean scrollable = !containedView.getSpecification().isResizeable();
        final WindowBorder windowView = new WindowBorder(containedView, scrollable);
        addView(windowView);
        placement.position(this, windowView);
        windowView.setFocusManager(new SubviewFocusManager(windowView));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    @Override
    public void replaceView(final View toReplace, final View replacement) {
        if (replacement.getSpecification().isOpen()) {
            final boolean scrollable = !replacement.getSpecification().isResizeable();
            final WindowBorder windowView = new WindowBorder(replacement, scrollable);
            super.replaceView(toReplace, windowView);
        } else {
            super.replaceView(toReplace, replacement);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    }

    @Override
    public void addWindow(final View containedView, final Placement placement) {
        final boolean scrollable = !containedView.getSpecification().isResizeable();
        final WindowBorder windowView = new WindowBorder(containedView, scrollable);
        addView(windowView);
        placement.position(this, windowView);
        windowView.setFocusManager(new SubviewFocusManager(windowView));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.window.WindowBorder

    @Override
    public void replaceView(final View toReplace, final View replacement) {
        if (replacement.getSpecification().isOpen()) {
            final boolean scrollable = !replacement.getSpecification().isResizeable();
            final WindowBorder windowView = new WindowBorder(replacement, scrollable);
            super.replaceView(toReplace, windowView);
        } else {
            super.replaceView(toReplace, replacement);
        }
    }
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.