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.
    Author:
    Garret Wilson
    • Constructor Detail

      • TabLayout

        public TabLayout()
    • Method Detail

      • getConstraintsClass

        public java.lang.Class<? extends ControlConstraints> getConstraintsClass()
        Returns:
        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.
        Returns:
        New default constraints for the layout component.