Class DropMenu

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, io.clogr.Clogged, ActionControl, Component, CompositeComponent, Container, ContainerControl, Control, InputFocusableComponent, LabelDisplayableComponent, LayoutComponent, Menu, ActionListenable, ActionModel, Displayable, Enableable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject, Iterable<Component>

public class DropMenu extends AbstractMenu
A menu that drops its children down from the top or over to the side. By default rollover open is enabled.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • DropMenu

      public DropMenu(Flow axis)
      Axis constructor.
      Parameters:
      axis - The axis along which the menu is oriented.
      Throws:
      NullPointerException - if the given axis is null.
    • DropMenu

      public DropMenu(InfoModel infoModel, ActionModel actionModel, Enableable enableable, Flow axis)
      Info model, action model, enableable, and menu layout constructor.
      Parameters:
      infoModel - The component info model.
      actionModel - The component action model.
      enableable - The enableable object in which to store enabled status.
      axis - The axis along which the menu is oriented.
      Throws:
      NullPointerException - if the given info model, action model, enableable, and/or layout is null.
    • DropMenu

      public DropMenu(MenuPrototype menuPrototype, Flow axis)
      Prototype and axis constructor.
      Parameters:
      menuPrototype - The prototype on which this component should be based.
      axis - The axis along which the menu is oriented.
      Throws:
      NullPointerException - if the given prototype and/or axis is null.