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
FieldsModifier and TypeFieldDescriptionprotected final PopupClosingTranslatorprotected final booleanprotected final Luwrainprotected final Stringprotected final Set<Popup.Flags>protected booleanprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionYesNoPopup(Luwrain luwrain, String name, String text, boolean defaultRes, Set<Popup.Flags> popupFlags) -
Method Summary
Modifier and TypeMethodDescriptionAction[]intintgetLine(int index) intprotected StringgetSpeakableText(String text) booleanbooleanonAreaQuery(AreaQuery query) booleanonCancel()booleanonInputEvent(InputEvent event) booleanonOk()booleanonSystemEvent(SystemEvent event) booleanresult()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:
getLineCountin interfaceLines
-
getLine
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointXin interfaceArea- Specified by:
getHotPointXin interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointYin interfaceArea- Specified by:
getHotPointYin interfaceHotPoint
-
onInputEvent
- Specified by:
onInputEventin interfaceArea
-
onSystemEvent
- Specified by:
onSystemEventin interfaceArea
-
onAreaQuery
- Specified by:
onAreaQueryin interfaceArea
-
getAreaActions
- Specified by:
getAreaActionsin interfaceArea
-
getAreaName
- Specified by:
getAreaNamein interfaceArea
-
result
public boolean result() -
onOk
public boolean onOk()- Specified by:
onOkin interfacePopupClosingTranslator.Provider
-
onCancel
public boolean onCancel()- Specified by:
onCancelin interfacePopupClosingTranslator.Provider
-
getLuwrainObject
- Specified by:
getLuwrainObjectin interfacePopup
-
isPopupActive
public boolean isPopupActive()- Specified by:
isPopupActivein interfacePopup
-
wasCancelled
public boolean wasCancelled() -
getPopupFlags
- Specified by:
getPopupFlagsin interfacePopup
-