Class AbstractModalNavigationPanel<R>

Type Parameters:
R - The type of modal result this modal navigation panel produces.
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, io.clogr.Clogged, Box, Component, CompositeComponent, Container, LayoutComponent, ModalNavigationPanel<R>, Panel, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject, Iterable<Component>
Direct Known Subclasses:
DefaultModalNavigationPanel

public abstract class AbstractModalNavigationPanel<R> extends AbstractPanel implements ModalNavigationPanel<R>
Abstract implementation of a modal navigation panel.
Author:
Garret Wilson
  • Constructor Details

    • AbstractModalNavigationPanel

      public AbstractModalNavigationPanel(Layout<?> layout)
      Layout constructor.
      Parameters:
      layout - The layout definition for the container.
      Throws:
      NullPointerException - if the given layout, is null.
  • Method Details

    • getResult

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

      public void setResult(R newResult)
      Description copied from interface: ModalNavigationPanel
      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 ModalNavigationPanel<R>
      Parameters:
      newResult - The new result of this navigation panel's modal interaction, or null if no result is given.
      See Also:
    • endModal

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