Examples of WrappedTextField


Examples of org.apache.isis.viewer.dnd.field.WrappedTextField

        return requirement.isTextParseable() && ((TextParseableContent) requirement.getContent()).getNoLines() > 1;
    }

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final WrappedTextField wrappedTextField = new WrappedTextField((TextParseableContent) content, this, true);
        wrappedTextField.setNoLines(((TextParseableContent) content).getNoLines());
        wrappedTextField.setWrapping(((TextParseableContent) content).canWrap());
        return new TextFieldResizeBorder(wrappedTextField);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.field.WrappedTextField

        textField.setLocation(new Location(50, 80));
        textField.setSize(textField.getRequiredSize(new Size()));
        workspace.addView(textField);

        content = new DummyTextParseableField(LONG_TEXT);
        WrappedTextField view = new WrappedTextField(content, specification, axis, false);
        view.setParent(parent);
        view.setNoLines(5);
        view.setWidth(200);
        view.setWrapping(false);
        view.setLocation(new Location(50, 140));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

        view = new WrappedTextField(content, specification, axis, true);
        view.setParent(parent);
        view.setNoLines(8);
        view.setWidth(500);
        view.setWrapping(false);
        view.setLocation(new Location(50, 250));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);
    }
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.