Package com.vaadin.shared.ui

Examples of com.vaadin.shared.ui.MarginInfo


     *
     * @see com.vaadin.ui.Layout.MarginHandler#setMargin(boolean)
     */
    @Override
    public void setMargin(boolean enabled) {
        setMargin(new MarginInfo(enabled));
    }
View Full Code Here


     *
     * @see com.vaadin.ui.Layout.MarginHandler#getMargin()
     */
    @Override
    public MarginInfo getMargin() {
        return new MarginInfo(getState(false).marginsBitmask);
    }
View Full Code Here

        }

        layout.colExpandRatioArray = uidl.getIntArrayAttribute("colExpand");
        layout.rowExpandRatioArray = uidl.getIntArrayAttribute("rowExpand");

        layout.updateMarginStyleNames(new MarginInfo(getState().marginsBitmask));
        layout.updateSpacingStyleName(getState().spacing);
        getLayoutManager().setNeedsLayout(this);
    }
View Full Code Here

    public void onStateChanged(StateChangeEvent stateChangeEvent) {
        super.onStateChanged(stateChangeEvent);

        VFormLayoutTable formLayoutTable = getWidget().table;

        formLayoutTable.setMargins(new MarginInfo(getState().marginsBitmask));
        formLayoutTable.setSpacing(getState().spacing);

    }
View Full Code Here

        HorizontalLayout split = new HorizontalLayout();
        split.setWidth("100%");
        addComponent(split);

        VerticalLayout left = new VerticalLayout();
        left.setMargin(new MarginInfo(false, true, false, false));
        split.addComponent(left);

        Label huge = new Label("Huge type for display text.");
        huge.addStyleName("huge");
        left.addComponent(huge);
View Full Code Here

        case 1:
            gl.setMargin(true);
            state.setValue("Margin on");
            break;
        case 2:
            gl.setMargin(new MarginInfo(true, false, false, false));
            state.setValue("Margin top");
            break;
        case 3:
            gl.setMargin(new MarginInfo(false, true, false, false));
            state.setValue("Margin right");
            break;
        case 4:
            gl.setMargin(new MarginInfo(false, false, true, false));
            state.setValue("Margin bottom");
            break;
        case 5:
            gl.setMargin(new MarginInfo(false, false, false, true));
            state.setValue("Margin left");
            break;
        default:
            stateCounter = -1;
            nextMarginState();
View Full Code Here

public class FormLayout extends AbstractOrderedLayout {

    public FormLayout() {
        super();
        setSpacing(true);
        setMargin(new MarginInfo(true, false, true, false));
        setWidth(100, UNITS_PERCENTAGE);
    }
View Full Code Here

public class ListSelectJump extends AbstractTestUI {

    @Override
    public void setup(VaadinRequest request) {
        getLayout().setMargin(new MarginInfo(true, false, false, false));

        addComponent(new Label(
                "Instructions:<ol><li>Select Option #1</li><li><b>Also</b> select Option #10 (use meta-click)</li>"
                        + "<li>Leave the Option #10 visible in the scroll window</li><li>Press the button</li></ol>"
                        + "You will see the <code>ListSelect</code> scroll window jump back to the top.",
View Full Code Here

    @Override
    public void onStateChanged(StateChangeEvent stateChangeEvent) {
        super.onStateChanged(stateChangeEvent);

        clickEventHandler.handleEventHandlerRegistration();
        getWidget().setMargin(new MarginInfo(getState().marginsBitmask));
        getWidget().setSpacing(getState().spacing);

        updateInternalState();
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    protected void setup(VaadinRequest request) {
        getLayout().setWidth(100, Unit.PERCENTAGE);
        getLayout().setHeight(null);
        getLayout().setMargin(new MarginInfo(true, false, false, false));

        HierarchicalContainer container = new HierarchicalContainer();
        container.addContainerProperty("t1", String.class, "");
        container.addContainerProperty("t2", String.class, "");
View Full Code Here

TOP

Related Classes of com.vaadin.shared.ui.MarginInfo

Copyright © 2018 www.massapicom. 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.