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

com.vaadin.ui.VerticalSplitPanel Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.ui;

import com.vaadin.shared.ui.splitpanel.VerticalSplitPanelState;

/**
 * A vertical split panel contains two components and lays them vertically. The
 * first component is above the second component.
 *
 * 
 *      +--------------------------+
 *      |                          |
 *      |  The first component     |
 *      |                          |
 *      +==========================+  <-- splitter
 *      |                          |
 *      |  The second component    |
 *      |                          |
 *      +--------------------------+
 * 
* */ public class VerticalSplitPanel extends AbstractSplitPanel { public VerticalSplitPanel() { super(); setSizeFull(); } /** * Creates a horizontal split panel containing the given components. * * @param firstComponent * The component to be placed above the splitter * @param secondComponent * The component to be placed below of the splitter */ public VerticalSplitPanel(Component firstComponent, Component secondComponent) { this(); setFirstComponent(firstComponent); setSecondComponent(secondComponent); } @Override protected VerticalSplitPanelState getState() { return (VerticalSplitPanelState) super.getState(); } @Override protected VerticalSplitPanelState getState(boolean markAsDirty) { return (VerticalSplitPanelState) super.getState(markAsDirty); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy