Class TestDialogDisplayer
java.lang.Object
org.openide.DialogDisplayer
org.jjazz.testmocks.api.TestDialogDisplayer
public class TestDialogDisplayer
extends org.openide.DialogDisplayer
A DialogDisplayer implementation which logs or discards the notification messages.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance which logs the notification messages. -
Method Summary
Modifier and TypeMethodDescriptioncreateDialog(org.openide.DialogDescriptor dd) booleanCheck if messages are discarded.notify(org.openide.NotifyDescriptor nd) voidsetDiscardMessages(boolean discard) If true notification messages are discarded.Methods inherited from class org.openide.DialogDisplayer
createDialog, getDefault, notifyFuture, notifyLater
-
Constructor Details
-
TestDialogDisplayer
public TestDialogDisplayer()Create an instance which logs the notification messages.
-
-
Method Details
-
isDiscardMessages
public boolean isDiscardMessages()Check if messages are discarded.If false, messages are logged.
- Returns:
-
setDiscardMessages
public void setDiscardMessages(boolean discard) If true notification messages are discarded.- Parameters:
discard-
-
notify
- Specified by:
notifyin classorg.openide.DialogDisplayer
-
createDialog
- Specified by:
createDialogin classorg.openide.DialogDisplayer
-