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

com.github.bordertech.wcomponents.examples.layout.LayoutExample Maven / Gradle / Ivy

There is a newer version: 1.5.36
Show newest version
package com.github.bordertech.wcomponents.examples.layout;

import com.github.bordertech.wcomponents.WPanel;
import com.github.bordertech.wcomponents.WTabSet;
import com.github.bordertech.wcomponents.WTabSet.TabMode;
import com.github.bordertech.wcomponents.WTabSet.TabSetType;
import com.github.bordertech.wcomponents.layout.BorderLayout;
import com.github.bordertech.wcomponents.layout.ColumnLayout;
import com.github.bordertech.wcomponents.layout.FlowLayout;
import com.github.bordertech.wcomponents.layout.GridLayout;

/**
 * This example demonstrates all of the standard layouts.
 *
 * @see GridLayout
 * @see BorderLayout
 * @see FlowLayout
 * @see ColumnLayout
 *
 * @author Yiannis Paschalidis
 * @since 1.0.0
 */
public class LayoutExample extends WPanel {

	/**
	 * Creates a LayoutExample.
	 */
	public LayoutExample() {
		WTabSet tabs = new WTabSet(TabSetType.TOP);
		add(tabs);

		tabs.addTab(new ColumnLayoutExample(), "Column layout", TabMode.CLIENT);
		tabs.addTab(new BorderLayoutExample(), "Border layout", TabMode.CLIENT);
		tabs.addTab(new FlowLayoutExample(), "Flow layout", TabMode.CLIENT);
		tabs.addTab(new GridLayoutExample(), "Grid layout", TabMode.CLIENT);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy