Class MessageOptionDialogFrame

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.MutableValued<Notification.Option>, com.globalmentor.model.Valued<Notification.Option>, io.clogr.Clogged, Component, CompositeComponent, ContentComponent, Control, DialogFrame<Notification.Option>, Frame, InputFocusableComponent, InputFocusGroupComponent, ModalComponent<Frame.Mode>, OptionDialogFrame<Notification.Option>, ValueControl<Notification.Option>, ValuedComponent<Notification.Option>, Displayable, Enableable, InfoModel, LabelModel, Model, PresentationModel, ValueModel<Notification.Option>, DepictedObject

public class MessageOptionDialogFrame extends NotificationOptionDialogFrame
An option dialog frame displaying a message.
Author:
Garret Wilson
  • Constructor Details

    • MessageOptionDialogFrame

      public MessageOptionDialogFrame(Notification.Option... options)
      Options constructor with no message. Duplicate options are ignored.
      Parameters:
      options - The available options.
      Throws:
      NullPointerException - if the given options is null.
    • MessageOptionDialogFrame

      public MessageOptionDialogFrame(String message, Notification.Option... options)
      Message, and options constructor. Duplicate options are ignored.
      Parameters:
      message - The message to display in the frame, or null if no message should be displayed.
      options - The available options.
      Throws:
      NullPointerException - if the given options is null.
    • MessageOptionDialogFrame

      public MessageOptionDialogFrame(Message messageComponent, Notification.Option... options)
      Message component and options constructor. Duplicate options are ignored.
      Parameters:
      messageComponent - The message component to display in the frame.
      options - The available options.
      Throws:
      NullPointerException - if the given message component, and/or options is null.
  • Method Details

    • getMessage

      public Message getMessage()
      Returns:
      The message displayed in the frame.
    • createMessage

      protected static Message createMessage(String messageText)
      Creates a message component with a message.
      Parameters:
      messageText - The text of the message component.
      Returns:
      A new message component with the given message text.