Examples of ScrollBorder


Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

        topHeader.setupRequiredSize(new Size(0, 20));

        final DummyView leftHeader = new DummyView();
        leftHeader.setupRequiredSize(new Size(30, 0));

        final View scrollBorder = new ScrollBorder(contentView, leftHeader, topHeader);

        scrollBorder.setSize(new Size(100, 200));

    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

        addViewDecorator(new CompositeViewDecorator() {
            @Override
            public View decorate(final View view, final Axes axes) {
                final SelectionListAxis axis = axes.getAxis(SelectionListAxis.class);
                final View list = new SelectionListFocusBorder(view, axis);
                return new DisposeOverlay(new BackgroundBorder(new LineBorder(new ScrollBorder(list))), axis);
            }
        });
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final ButtonAction actions[] = new ButtonAction[] { new CloseViewAction() };
        final MessageView messageView = new MessageView((MessageContent) content, this);
        final View dialogView = new ButtonBorder(actions, new ScrollBorder(messageView));
        dialogView.setFocusManager(new SubviewFocusManager(dialogView));
        return dialogView;
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

    @Override
    protected void buildView() {
        final Content content = getContent();
        View leftHandView = leftHandSideSpecification.createView(content, axes, -1);
        leftHandView = new ViewResizeBorder(new ScrollBorder(leftHandView));
        leftHandView.setParent(getView());
        addView(leftHandView);

        final Size blankViewSize = new Size(MINIMUM_WIDTH, 0);
        final View blankView = new BlankView(new NullContent(), blankViewSize);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

import org.apache.isis.viewer.dnd.view.border.ScrollBorder;

public class DialogBorder extends AbstractWindowBorder {

    public DialogBorder(final View wrappedView, final boolean scrollable) {
        super(scrollable ? new ScrollBorder(wrappedView) : wrappedView);
        setControls(new WindowControl[] { new CloseWindowControl(this) });
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

                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.border.ScrollBorder

    @Test
    public void testScrollBar() {
        final DummyView innerView = new DummyView();
        innerView.setupRequiredSize(new Size(100, 200));
        final View view = new ScrollBorder(innerView);

        ViewAreaType type = view.viewAreaType(new Location(20, 190));
        Assert.assertEquals(ViewAreaType.INTERNAL, type);

        type = view.viewAreaType(new Location(95, 20));
        Assert.assertEquals(ViewAreaType.INTERNAL, type);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

        topHeader.setupRequiredSize(new Size(0, 20));

        final DummyView leftHeader = new DummyView();
        leftHeader.setupRequiredSize(new Size(30, 0));

        final View scrollBorder = new ScrollBorder(contentView, leftHeader, topHeader);

        scrollBorder.setSize(new Size(100, 200));

        Assert.assertEquals(new Size(300, 400), contentView.getSize());
        Assert.assertEquals(new Size(300, 20), topHeader.getSize());
        Assert.assertEquals(new Size(30, 400), leftHeader.getSize());
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

        topHeader.setupRequiredSize(new Size(0, 20));

        final DummyView leftHeader = new DummyView();
        leftHeader.setupRequiredSize(new Size(30, 0));

        final View scrollBorder = new ScrollBorder(contentView, leftHeader, topHeader);

        scrollBorder.setSize(new Size(100, 200));

    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ScrollBorder

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