Package org.luwrain.popups
Class YesNoPopup
- java.lang.Object
-
- org.luwrain.popups.YesNoPopup
-
- All Implemented Interfaces:
Area
,HotPoint
,Lines
,Popup
,PopupClosingTranslator.Provider
public class YesNoPopup extends Object implements Popup, PopupClosingTranslator.Provider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.luwrain.core.Popup
Popup.Flags, Popup.Position
-
-
Field Summary
Fields Modifier and Type Field Description protected PopupClosingTranslator
closing
protected boolean
defaultRes
protected Luwrain
luwrain
protected String
name
protected Set<Popup.Flags>
popupFlags
protected boolean
res
protected String
text
-
Fields inherited from interface org.luwrain.core.Popup
NO_MULTIPLE_COPIES, WEAK
-
-
Constructor Summary
Constructors Constructor Description YesNoPopup(Luwrain luwrain, String name, String text, boolean defaultRes, Set<Popup.Flags> popupFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action[]
getAreaActions()
String
getAreaName()
int
getHotPointX()
int
getHotPointY()
String
getLine(int index)
int
getLineCount()
Luwrain
getLuwrainObject()
Set<Popup.Flags>
getPopupFlags()
protected String
getSpeakableText(String text)
boolean
isPopupActive()
boolean
onAreaQuery(AreaQuery query)
boolean
onCancel()
boolean
onInputEvent(InputEvent event)
boolean
onOk()
boolean
onSystemEvent(SystemEvent event)
boolean
result()
boolean
wasCancelled()
-
-
-
Field Detail
-
luwrain
protected final Luwrain luwrain
-
closing
protected final PopupClosingTranslator closing
-
name
protected final String name
-
text
protected final String text
-
res
protected boolean res
-
defaultRes
protected final boolean defaultRes
-
popupFlags
protected final Set<Popup.Flags> popupFlags
-
-
Constructor Detail
-
YesNoPopup
public YesNoPopup(Luwrain luwrain, String name, String text, boolean defaultRes, Set<Popup.Flags> popupFlags)
-
-
Method Detail
-
getLineCount
public int getLineCount()
- Specified by:
getLineCount
in interfaceLines
-
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
public boolean onInputEvent(InputEvent event)
- Specified by:
onInputEvent
in interfaceArea
-
onSystemEvent
public boolean onSystemEvent(SystemEvent event)
- Specified by:
onSystemEvent
in interfaceArea
-
onAreaQuery
public boolean onAreaQuery(AreaQuery query)
- Specified by:
onAreaQuery
in interfaceArea
-
getAreaActions
public Action[] getAreaActions()
- Specified by:
getAreaActions
in interfaceArea
-
getAreaName
public String 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
public Luwrain getLuwrainObject()
- Specified by:
getLuwrainObject
in interfacePopup
-
isPopupActive
public boolean isPopupActive()
- Specified by:
isPopupActive
in interfacePopup
-
wasCancelled
public boolean wasCancelled()
-
getPopupFlags
public Set<Popup.Flags> getPopupFlags()
- Specified by:
getPopupFlags
in interfacePopup
-
-