Interface ModalComponent<M extends Mode>

Type Parameters:
M - The type of mode this modal component supports.
All Superinterfaces:
Component, DepictedObject, Displayable, InfoModel, LabelModel, Model, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable
All Known Subinterfaces:
ApplicationFrame, DialogFrame<V>, FlyoverFrame, Frame, ModalFrame<R>, OptionDialogFrame<O>
All Known Implementing Classes:
AbstractApplicationFrame, AbstractDialogFrame, AbstractEditComponentTextControl, AbstractFlyoverFrame, AbstractFrame, AbstractModalFrame, AbstractOptionDialogFrame, CalendarDialogFrame, DefaultApplicationFrame, DefaultDialogFrame, DefaultFlyoverFrame, DefaultFrame, DefaultModalFrame, EditComponentLabelControl, EditComponentTextControl, MessageOptionDialogFrame, NotificationOptionDialogFrame

public interface ModalComponent<M extends Mode> extends Component
A component that supports different modes of interaction, such as an editable label or a modal frame.
Author:
Garret Wilson
  • Field Details

    • MODE_PROPERTY

      static final String MODE_PROPERTY
      The bound property of the mode.
  • Method Details

    • getMode

      M getMode()
      Returns:
      The current mode of interaction, or null if the component is in a modeless state.
    • setMode

      void setMode(M newMode)
      Sets the mode of interaction. This is a bound property.
      Parameters:
      newMode - The new mode of component interaction.
      See Also: