Class AbstractModalFrame<R>

Type Parameters:
R - The type of modal result this modal frame produces.
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, io.clogr.Clogged, Component, CompositeComponent, ContentComponent, Frame, InputFocusableComponent, InputFocusGroupComponent, ModalComponent<Frame.Mode>, ModalFrame<R>, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject
Direct Known Subclasses:
DefaultModalFrame

public abstract class AbstractModalFrame<R> extends AbstractFrame implements ModalFrame<R>
Abstract implementation of a modal frame.
Author:
Garret Wilson
  • Constructor Details

    • AbstractModalFrame

      public AbstractModalFrame(Component component)
      Component constructor.
      Parameters:
      component - The single child component, or null if this frame should have no child component.
  • Method Details

    • getResult

      public R getResult()
      Specified by:
      getResult in interface ModalFrame<R>
      Returns:
      The result of this frame's modal interaction, or null if no result is given.
    • setResult

      public void setResult(R newResult)
      Description copied from interface: ModalFrame
      Sets the modal result. This is a bound property that only fires a change event when the new value is different via the equals() method.
      Specified by:
      setResult in interface ModalFrame<R>
      Parameters:
      newResult - The new result of this frame's modal interaction, or null if no result is given.
      See Also:
    • endModal

      public void endModal(R result)
      Ends this frame's modal interaction and navigates either to the previous modal navigation or to this frame's referring URI, if any.
      Parameters:
      result - The result of this frame's modal interaction, or null if no result is given.
      See Also: