Example usage for com.vaadin.ui AbstractSplitPanel.SplitPositionChangeEvent getSplitPosition

List of usage examples for com.vaadin.ui AbstractSplitPanel.SplitPositionChangeEvent getSplitPosition

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractSplitPanel.SplitPositionChangeEvent getSplitPosition.

Prototype

public float getSplitPosition() 

Source Link

Document

Returns the current position of the splitter, in #getSplitPositionUnit() units.

Usage

From source file:com.haulmont.cuba.web.gui.components.WebSplitPanel.java

License:Apache License

protected void fireSplitPositionChangeListener(AbstractSplitPanel.SplitPositionChangeEvent event) {
    if (positionListener != null) {
        positionListener.updatePosition(currentPosition, event.getSplitPosition());
    }//  w  w  w .java2 s. c om

    SplitPositionChangeEvent cubaEvent = new SplitPositionChangeEvent(this, currentPosition,
            event.getSplitPosition());
    getEventRouter().fireEvent(SplitPositionChangeListener.class,
            SplitPositionChangeListener::onSplitPositionChanged, cubaEvent);
}