All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dominokit.domino.ui.splitpanel.VSplitPanel Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package org.dominokit.domino.ui.splitpanel;

public class VSplitPanel extends BaseSplitPanel implements HasSize {

    public VSplitPanel() {
        super(SplitStyles.vertical);
        init(this);
    }

    @Override
    protected VSplitter createSplitter(SplitPanel first, SplitPanel second, HasSize mainPanel) {
        return VSplitter.create(first, second, this);
    }

    @Override
    protected double getPanelSize(SplitPanel panel) {
        return panel.getBoundingClientRect().height;
    }

    @Override
    protected void setPanelSize(SplitPanel panel, String size) {
        panel.style().setHeight(size);
    }

    public static VSplitPanel create() {
        return new VSplitPanel();
    }

    @Override
    public double getSize() {
        return getBoundingClientRect().height;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy