Class MenuLayout

  • All Implemented Interfaces:
    com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Layout<MenuConstraints>

    public class MenuLayout
    extends AbstractFlowLayout<MenuConstraints>
    A layout for a menu that flows along an axis.
    Author:
    Garret Wilson
    • Constructor Detail

      • MenuLayout

        public MenuLayout​(Flow flow)
        Flow constructor.
        Parameters:
        flow - The logical axis (line or page) along which information is flowed.
        Throws:
        java.lang.NullPointerException - if the flow axis is null.
    • Method Detail

      • getConstraintsClass

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

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