Package org.luwrain.popups
Class PopupClosingTranslator
java.lang.Object
org.luwrain.popups.PopupClosingTranslator
Unifies all actions which could result in closing of a popup. There
are several actions which mean that the popup must be closed (escape
button, closing environment event, accepting a result etc) at that
some of the actions mean closing normally and another mean cancelling
the popup. This class encapsulates the usual popup behaviour of popup
closing, processing various types of events. The popup itself is
accessed through
Provider
interface and is allowed to accept
or reject the recognized actions.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected final PopupClosingTranslator.Provider
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
doCancel()
boolean
doOk()
boolean
onInputEvent
(InputEvent event) boolean
onSystemEvent
(SystemEvent event)
-
Field Details
-
provider
-
shouldContinue
protected boolean shouldContinue -
cancelled
protected boolean cancelled
-
-
Constructor Details
-
PopupClosingTranslator
-
-
Method Details
-
doOk
public boolean doOk() -
doCancel
public boolean doCancel() -
cancelled
public boolean cancelled() -
continueEventLoop
public boolean continueEventLoop() -
onInputEvent
-
onSystemEvent
-