Class TabContainerControl

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.MutableValued<Component>, com.globalmentor.model.Valued<Component>, io.clogr.Clogged, Component, CompositeComponent, Container, ContainerControl, Control, InputFocusableComponent, LayoutComponent, ListSelectControl<Component>, SelectControl<Component>, ValueControl<Component>, ValuedComponent<Component>, ListListenable<Component>, Displayable, Enableable, InfoModel, LabelModel, ListSelectModel<Component>, Model, SelectModel<Component>, PresentationModel, ValueModel<Component>, DepictedObject, Iterable<Component>, Collection<Component>, List<Component>

public class TabContainerControl extends AbstractListSelectContainerControl
A container showing its children as tabs. The panel's value model reflects the currently selected component, if any.
Author:
Garret Wilson
See Also:
  • Field Details

    • AXIS_PROPERTY

      public static final String AXIS_PROPERTY
      The axis bound property.
    • MAX_TAB_COUNT_PROPERTY

      public static final String MAX_TAB_COUNT_PROPERTY
      The maximum tab count bound property.
  • Constructor Details

    • TabContainerControl

      public TabContainerControl()
      Default constructor with default Flow.LINE axis orientation.
    • TabContainerControl

      public TabContainerControl(Flow axis)
      Axis constructor.
      Parameters:
      axis - The axis along which the tabs are oriented.
      Throws:
      NullPointerException - if the given axis is null.
    • TabContainerControl

      public TabContainerControl(TabLayout layout, Flow axis)
      Layout and axis constructor.
      Parameters:
      layout - The layout definition for the container.
      axis - The axis along which the tabs are oriented.
      Throws:
      NullPointerException - if the given layout, and/or axis is null.
    • TabContainerControl

      public TabContainerControl(TabLayout layout, Flow axis, int maxTabCount)
      Layout, axis, and maximum tab count constructor.
      Parameters:
      layout - The layout definition for the container.
      axis - The axis along which the tabs are oriented.
      maxTabCount - The requested number of visible tabs, or -1 if no maximum tab count is specified.
      Throws:
      NullPointerException - if the given layout and/or axis is null.
  • Method Details

    • getAxis

      public Flow getAxis()
      Returns:
      The flow axis.
    • setAxis

      public void setAxis(Flow newAxis)
      Sets the flow axis. This is a bound property
      Parameters:
      newAxis - The flow axis.
      Throws:
      NullPointerException - if the given axis is null.
      See Also:
    • getMaxTabCount

      public int getMaxTabCount()
      Returns:
      The estimated number of tabs requested to be visible, or -1 if no tab count is specified.
    • setMaxTabCount

      public void setMaxTabCount(int newMaxTabCount)
      Sets the estimated number of tabs requested to be visible. This is a bound property of type Integer.
      Parameters:
      newMaxTabCount - The new requested number of visible tabs, or -1 if no tab count is specified.
      See Also: