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
FieldsModifier and TypeFieldDescriptionprotected final JFrameprotected Function<SimpleMessage<D>, String> protected EnumSet<Message.Kind> protected Stringprotected final EnumSet<Message.Kind> static final MuLiprotected String -
Constructor Summary
ConstructorsConstructorDescriptionMessageDialog(JFrame context, String title) MessageDialog(JFrame context, String title, EnumSet<Message.Kind> selected) -
Method Summary
Modifier and TypeMethodDescriptionvoidreceive(SimpleMessage<D> m) Receive the given message.voidUse likevoidDeprecated.voiduseStandardReactionText(String... langs) voiduseStandardReactionText(List<String> langs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.tools.message.MessageReceiver
ifSubcriticalThen, ifSubcriticalThen, ifSubcriticalThenElse
-
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:MessageReceiverReceive the given message.- Specified by:
receivein interfaceMessageReceiver<D>- Parameters:
m- the message to receive.
-