Class CardTabControl

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, Control, InputFocusableComponent, 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 CardTabControl extends TabControl<Component>
Convenience tab control that automatically controls the selected card of a card control.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • CardTabControl

      public CardTabControl(CardControl cardControl, Flow axis)
      Card control and axis constructor.
      Parameters:
      cardControl - The card control to be controlled.
      axis - The axis along which the tabs are oriented.
      Throws:
      NullPointerException - if the given card control and/or axis is null.
    • CardTabControl

      public CardTabControl(CardControl cardControl, Flow axis, int maxTabCount)
      Card control, axis, and maximum tab count constructor.
      Parameters:
      cardControl - The card control to be controlled.
      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 card control and/or axis is null.
    • CardTabControl

      public CardTabControl(CardControl cardControl, ListSelectControl.ValueRepresentationStrategy<Component> valueRepresentationStrategy, Flow axis)
      Card control, value representation strategy, and axis constructor.
      Parameters:
      cardControl - The card control to be controlled.
      valueRepresentationStrategy - The strategy to create label models to represent this model's values.
      axis - The axis along which the tabs are oriented.
      Throws:
      NullPointerException - if the given card control, value representation strategy, and/or axis is null.
    • CardTabControl

      public CardTabControl(CardControl cardControl, ListSelectControl.ValueRepresentationStrategy<Component> valueRepresentationStrategy, Flow axis, int maxTabCount)
      Card control, value representation strategy, axis, and maximum tab count constructor.
      Parameters:
      cardControl - The card control to be controlled.
      valueRepresentationStrategy - The strategy to create label models to represent this model's values.
      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 card control, value representation strategy, and/or axis is null.