Package eu.bandm.tools.graficUtils2
Class MessageDialog<D>
java.lang.Object
eu.bandm.tools.graficUtils2.MessageDialog<D>
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionprotected final JFrame
protected Function<SimpleMessage<D>,
String> protected EnumSet<Message.Kind>
protected String
protected final EnumSet<Message.Kind>
static final MuLi
protected String
-
Constructor Summary
ConstructorDescriptionMessageDialog
(JFrame context, String title) MessageDialog
(JFrame context, String title, EnumSet<Message.Kind> selected) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receive
(SimpleMessage<D> m) Evidentvoid
Use likevoid
Deprecated.void
useStandardReactionText
(String... langs) void
useStandardReactionText
(List<String> langs)
-
Field Details
-
selected
-
noMore
-
reactionText
-
standardReactionText
-
context
-
title
-
messageToString
-
-
Constructor Details
-
MessageDialog
-
MessageDialog
-
-
Method Details
-
setReactionText
Deprecated. -
useStandardReactionText
-
useStandardReactionText
-
getExplicitlySuppressed
-
setMessageToString
Use likesetMessageToString(SimpleMessage.messageToString (Location::toString, k -> MessageTranslator.kindPrintName.translate(k, literalList("de")));
-
receive
Description copied from interface:MessageReceiver
Evident- Specified by:
receive
in interfaceMessageReceiver<D>
-