Class MessageDialog<D>

java.lang.Object
eu.bandm.tools.graficUtils2.MessageDialog<D>
All Implemented Interfaces:
MessageReceiver<SimpleMessage<D>>

public class MessageDialog<D> extends Object implements MessageReceiver<SimpleMessage<D>>
Pop-up dialog mapping for displaying messages of certain Message.Kind. Standard reaction is to close window and/or to suppress further pop-ups of the same kind.
  • Field Details

  • Constructor Details

  • Method Details

    • setReactionText

      @Deprecated public void setReactionText(String s)
      Deprecated.
    • useStandardReactionText

      public void useStandardReactionText(String... langs)
    • useStandardReactionText

      public void useStandardReactionText(List<String> langs)
    • getExplicitlySuppressed

      public EnumSet<Message.Kind> getExplicitlySuppressed()
    • setMessageToString

      public void setMessageToString(Function<SimpleMessage<D>,String> f)
      Use like
      setMessageToString(SimpleMessage.messageToString
               (Location::toString,
                k -> MessageTranslator.kindPrintName.translate(k, literalList("de")));
        
    • receive

      public void receive(SimpleMessage<D> m)
      Description copied from interface: MessageReceiver
      Evident
      Specified by:
      receive in interface MessageReceiver<D>