Package com.vaadin.tests.components.draganddropwrapper

Source Code of com.vaadin.tests.components.draganddropwrapper.TooltipHandlingWhenNotDefined

package com.vaadin.tests.components.draganddropwrapper;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.DragAndDropWrapper;
import com.vaadin.ui.DragAndDropWrapper.DragStartMode;
import com.vaadin.ui.Label;

public class TooltipHandlingWhenNotDefined extends TestBase {

    @Override
    protected void setup() {

        CssLayout wrapperLayout = new CssLayout();
        wrapperLayout.setWidth("100%");

        Label label = new Label("Can I has the tooltip?", Label.CONTENT_XHTML);
        label.setId("tooltipLabel");
        label.setDescription("Good! Tooltip works!");
        label.setSizeUndefined();
        wrapperLayout.addComponent(label);

        DragAndDropWrapper wrapper = new DragAndDropWrapper(wrapperLayout);
        wrapper.setWidth("100%");
        wrapper.setDragStartMode(DragStartMode.WRAPPER);

        addComponent(wrapper);

    }

    @Override
    protected String getDescription() {
        return "Wrapper most not prevent child from showing tooltip";
    }

    @Override
    protected Integer getTicketNumber() {
        return 7766;
    }

}
TOP

Related Classes of com.vaadin.tests.components.draganddropwrapper.TooltipHandlingWhenNotDefined

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.