Package org.luwrain.popups
Class YesNoPopup
java.lang.Object
org.luwrain.popups.YesNoPopup
- All Implemented Interfaces:
Area
,HotPoint
,Lines
,Popup
,PopupClosingTranslator.Provider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.core.Popup
Popup.Flags, Popup.Position
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PopupClosingTranslator
protected final boolean
protected final Luwrain
protected final String
protected final Set<Popup.Flags>
protected boolean
protected final String
-
Constructor Summary
ConstructorDescriptionYesNoPopup
(Luwrain luwrain, String name, String text, boolean defaultRes, Set<Popup.Flags> popupFlags) -
Method Summary
Modifier and TypeMethodDescriptionAction[]
int
int
getLine
(int index) int
protected String
getSpeakableText
(String text) boolean
boolean
onAreaQuery
(AreaQuery query) boolean
onCancel()
boolean
onInputEvent
(InputEvent event) boolean
onOk()
boolean
onSystemEvent
(SystemEvent event) boolean
result()
boolean
-
Field Details
-
luwrain
-
closing
-
name
-
text
-
res
protected boolean res -
defaultRes
protected final boolean defaultRes -
popupFlags
-
-
Constructor Details
-
YesNoPopup
public YesNoPopup(Luwrain luwrain, String name, String text, boolean defaultRes, Set<Popup.Flags> popupFlags)
-
-
Method Details
-
getSpeakableText
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointX
in interfaceArea
- Specified by:
getHotPointX
in interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointY
in interfaceArea
- Specified by:
getHotPointY
in interfaceHotPoint
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
-
getAreaActions
- Specified by:
getAreaActions
in interfaceArea
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
-
result
public boolean result() -
onOk
public boolean onOk()- Specified by:
onOk
in interfacePopupClosingTranslator.Provider
-
onCancel
public boolean onCancel()- Specified by:
onCancel
in interfacePopupClosingTranslator.Provider
-
getLuwrainObject
- Specified by:
getLuwrainObject
in interfacePopup
-
isPopupActive
public boolean isPopupActive()- Specified by:
isPopupActive
in interfacePopup
-
wasCancelled
public boolean wasCancelled() -
getPopupFlags
- Specified by:
getPopupFlags
in interfacePopup
-