Class CardLayout

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

    public class CardLayout
    extends AbstractValueLayout<CardConstraints>
    A layout that manages child components as an ordered stack of cards. Only one child component is visible at a time. The card layout maintains its own value model that maintains the current selected card. If a card implements Activeable the card is set as active when selected and set as inactive when the card is unselected.
    Garret Wilson
    • Constructor Detail

      • CardLayout

        public CardLayout()
    • Method Detail

      • getConstraintsClass

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

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