Example usage for com.vaadin.ui Button setParent

List of usage examples for com.vaadin.ui Button setParent

Introduction

In this page you can find the example usage for com.vaadin.ui Button setParent.

Prototype

@Override
    public void setParent(HasComponents parent) 

Source Link

Usage

From source file:org.vaadin.hene.splitbutton.SplitButton.java

License:Apache License

/**
 * This is not a part of the official API of SplitButton, just for testing
 * purposes.//  w w w  .  j a v a 2  s .c  o m
 */
protected SplitButton(Button button, PopupButton popupButton) {
    this.button = button;
    button.setParent(this);
    button.addListener(this);

    this.popupButton = popupButton;
    popupButton.setHeight("100%");
    // TODO
    // popupButton.setPopupPositionPaintable(this);
    popupButton.setParent(this);
    popupButton.addPopupVisibilityListener(this);
}