Examples of NullContent


Examples of org.apache.isis.viewer.dnd.view.content.NullContent

    private final Image image;
    private final int left;
    private final FocusManager focusManager;

    public AboutView() {
        super(new NullContent());
        image = ImageFactory.getInstance().loadImage(AboutIsis.getImageName());
        left = noticePadding;
        setContent(new NullContent(AboutIsis.getFrameworkName()));

        focusManager = new SubviewFocusManager(this);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

                }
                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content = new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

    private static final int WIDTH = 400;
    private static final int MAX_TEXT_WIDTH = 375;
    private final TextContent content;

    public HelpView(final String name, final String description, final String help) {
        super(new NullContent());
        final String text = (name == null || name.trim().equals("") ? "" : (name + "\n")) + (description == null || description.trim().equals("") ? "" : (description + "\n")) + (help == null ? "" : help);
        content = new TextContent(this, 10, TextContent.WRAPPING);
        content.setText(text);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

        for (int row = 0; row < rows; row++) {
            for (int column = 0; column < columns; column++) {
                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;
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

        }, this));

        toolbarView.addView(new Button(new AbstractButtonAction("Date") {
            @Override
            public void execute(final Workspace workspace, View view, final Location at) {
                final Content content = new NullContent() {
                };
                view = DatePickerControl.getPicker(content);
                calendar.today();
                getViewManager().setOverlayView(view);
            }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

    private final Vector options = new Vector();
    private final Location at;
    private boolean isLayoutInvalid;

    public PopupMenuContainer(final View target, final Location at) {
        super(new NullContent());
        this.target = target;
        this.at = at;
        setLocation(at);
        isLayoutInvalid = true;
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

import org.apache.isis.viewer.dnd.view.content.NullContent;

public class NullView extends AbstractView {
    public NullView() {
        super(new NullContent(""));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

public class BlankView extends AbstractView {
    private final Size size;

    public BlankView() {
        this(new NullContent());
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

        junit.textui.TestRunner.run(AbstractViewTest.class);
    }

    @Override
    protected void setUp() throws Exception {
        av = new AbstractView(new NullContent()) {
        };
        super.setUp();
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.content.NullContent

    }

    public void testBoundsSetSizeAndLocation() throws Exception {
        final Location l = new Location();
        final Size z = new Size();
        final View view = new AbstractView(new NullContent()) {
            @Override
            public void setLocation(final Location location) {
                l.translate(location);
            }
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.