* @see TabSheet
*/
public class Accordion extends TabSheet {
+ /**
+ * Creates an empty accordion.
+ */
+ public Accordion() {
+ super();
+ }
+
+ /**
+ * Constructs a new accordion containing the given components.
+ *
+ * @param components
+ * The components to add to the accordion. Each component will be
+ * added to a separate tab.
+ */
+ public Accordion(Component... components) {
+ this();
+ addComponents(components);
+ }
}
* @since 6.5
*/
public class HorizontalSplitPanel extends AbstractSplitPanel {
+ /**
+ * Creates an empty horizontal split panel
+ */
public HorizontalSplitPanel() {
super();
setSizeFull();
}
+
+ /**
+ * Creates a horizontal split panel containing the given components
+ *
+ * @param firstComponent
+ * The component to be placed to the left of the splitter
+ * @param secondComponent
+ * The component to be placed to the right of the splitter
+ */
+ public HorizontalSplitPanel(Component firstComponent,
+ Component secondComponent) {
+ this();
+ setFirstComponent(firstComponent);
+ setSecondComponent(secondComponent);
+ }
}
private int tabIndex;
/**
- * Constructs a new Tabsheet. Tabsheet is immediate by default, and the
+ * Constructs a new TabSheet. A TabSheet is immediate by default, and the
* default close handler removes the tab being closed.
*/
public TabSheet() {
});
}
+ /**
+ * Constructs a new TabSheet containing the given components.
+ *
+ * @param components
+ * The components to add to the tab sheet. Each component will be
+ * added to a separate tab.
+ */
+ public TabSheet(Component... components) {
+ this();
+ addComponents(components);
+ }
+
/**
* Gets the component container iterator for going through all the
* components (tab contents).
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);
+ }
}