Class TabLayout

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.MutableValued<Component>, com.globalmentor.model.Valued<Component>, Layout<ControlConstraints>, Model, ValueModel<Component>

public class TabLayout extends AbstractValueLayout<ControlConstraints>
A layout that manages child components as a series of tabs. Only one child component is visible at a time. The tab layout maintains its own value model that maintains the current selected component. If a tab implements Activeable the tab is set as active when selected and set as inactive when the tab is unselected.
Garret Wilson
  • Constructor Details

    • TabLayout

      public TabLayout()
  • Method Details

    • getConstraintsClass

      public Class<? extends ControlConstraints> getConstraintsClass()
      The class representing the type of constraints appropriate for this layout.
    • createDefaultConstraints

      public ControlConstraints createDefaultConstraints()
      Description copied from interface: Layout
      Creates default constraints for the layout component.
      New default constraints for the layout component.