Package org.luwrain.popups
Class ListPopupBase<E>
- java.lang.Object
-
- org.luwrain.controls.ListArea<E>
-
- org.luwrain.popups.ListPopupBase<E>
-
- All Implemented Interfaces:
ClipboardTranslator.Provider
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,Lines
,Popup
,PopupClosingTranslator.Provider
- Direct Known Subclasses:
DisksPopup
,ListPopup
public class ListPopupBase<E> extends ListArea<E> implements Popup, PopupClosingTranslator.Provider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.luwrain.controls.ListArea
ListArea.Appearance<E>, ListArea.ClickHandler<E>, ListArea.ClipboardSaver<E>, ListArea.Flags, ListArea.ListeningInfo, ListArea.Model<E>, ListArea.Params<E>, ListArea.Transition
-
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 Luwrain
luwrain
protected Set<Popup.Flags>
popupFlags
-
Fields inherited from class org.luwrain.controls.ListArea
areaName, BRIEF_ANNOUNCEMENT_ONLY, clipboardTranslator, context, hotPointX, hotPointY, listAppearance, listClickHandler, listClipboardSaver, listFlags, listModel, listTransition, NONE_APPEARANCE_FLAGS, regionPoint, regionTextQueryTranslator
-
Fields inherited from interface org.luwrain.core.Popup
NO_MULTIPLE_COPIES, WEAK
-
-
Constructor Summary
Constructors Constructor Description ListPopupBase(Luwrain luwrain, ListArea.Params<E> params, Set<Popup.Flags> popupFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Luwrain
getLuwrainObject()
Set<Popup.Flags>
getPopupFlags()
boolean
isPopupActive()
boolean
onCancel()
boolean
onInputEvent(InputEvent event)
boolean
onOk()
boolean
onSystemEvent(SystemEvent event)
boolean
wasCancelled()
-
Methods inherited from class org.luwrain.controls.ListArea
announceChar, announceSelected, getAreaActions, getAreaName, getExistingItemIndexOnLine, getHotPointX, getHotPointY, getItemIndexOnLine, getItemOnLine, getLine, getLineCount, getLineIndexByItemIndex, getListAppearance, getListItemCount, getListModel, getObservableSubstr, isEmpty, noContent, noContentStr, onAltEnd, onAltHome, onAltLeft, onAltRight, onAnnounce, onAnnounceLine, onAreaQuery, onBeginListeningQuery, onChar, onClipboardCopy, onClipboardCopyAll, onDeleteRegion, onEnd, onEnter, onHome, onListeningFinishedEvent, onMoveDown, onMoveHotPoint, onMoveLeft, onMoveRight, onMoveUp, onNewHotPointY, onOk, onPageDown, onPageUp, onRegionTextQuery, onTransition, redraw, refresh, reset, resetHotPoint, resetHotPoint, select, select, selected, selectedIndex, selectEmptyLineBottom, setAreaName, setListClickHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.luwrain.core.Area
getAreaActions, getAreaName, getHotPointX, getHotPointY, onAreaQuery
-
Methods inherited from interface org.luwrain.core.Lines
getLine, getLineCount
-
-
-
-
Field Detail
-
closing
protected final PopupClosingTranslator closing
-
luwrain
protected final Luwrain luwrain
-
popupFlags
protected final Set<Popup.Flags> popupFlags
-
-
Constructor Detail
-
ListPopupBase
public ListPopupBase(Luwrain luwrain, ListArea.Params<E> params, Set<Popup.Flags> popupFlags)
-
-
Method Detail
-
onInputEvent
public boolean onInputEvent(InputEvent event)
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classListArea<E>
-
onSystemEvent
public boolean onSystemEvent(SystemEvent event)
- Specified by:
onSystemEvent
in interfaceArea
- Overrides:
onSystemEvent
in classListArea<E>
-
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
-
-