Package org.luwrain.popups
Class CommanderPopup
- All Implemented Interfaces:
ClipboardTranslator.Provider
,CommanderArea.ClickHandler<File>
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,Lines
,Popup
,PopupClosingTranslator.Provider
public class CommanderPopup
extends CommanderArea<File>
implements CommanderArea.ClickHandler<File>, Popup, PopupClosingTranslator.Provider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.luwrain.controls.CommanderArea
CommanderArea.Appearance<E>, CommanderArea.ClickHandler<E>, CommanderArea.EntryType, CommanderArea.Filter<E>, CommanderArea.Flags, CommanderArea.ListAppearanceImpl<E>, CommanderArea.ListModelAdapter<E>, CommanderArea.Model<E>, CommanderArea.NativeItem<E>, CommanderArea.Params<E>, CommanderArea.Wrapper<E>
Nested classes/interfaces inherited from class org.luwrain.controls.ListArea
ListArea.ClipboardSaver<E>, ListArea.ListeningInfo, ListArea.Transition
Nested classes/interfaces inherited from interface org.luwrain.controls.CommanderArea.ClickHandler
CommanderArea.ClickHandler.Result
Nested classes/interfaces inherited from interface org.luwrain.core.Popup
Popup.Flags, Popup.Position
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PopupClosingTranslator
protected final CommanderArea.Filter<File>
static final CommanderArea.Filter<File>
static final CommanderArea.Filter<File>
protected boolean
protected final Luwrain
protected final String
protected final Set<Popup.Flags>
Fields inherited from class org.luwrain.controls.CommanderArea
appearance, clickHandler, closed, comparator, currentLocation, flags, model, PARENT_DIR, task
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
-
Constructor Summary
ConstructorDescriptionCommanderPopup
(Luwrain luwrain, String name, File file, CommanderArea.Filter<File> filter, Set<Popup.Flags> popupFlags) -
Method Summary
Modifier and TypeMethodDescriptionAction[]
boolean
boolean
boolean
onCancel()
onCommanderClick
(CommanderArea area, File file, boolean dir) boolean
onInputEvent
(InputEvent event) boolean
onOk()
boolean
onSystemEvent
(SystemEvent event) Methods inherited from class org.luwrain.controls.CommanderArea
acceptNewLocation, clickImpl, close, createListParams, findFileName, getBaseName, getCommanderModel, getListModel, getMarked, getMarkedNames, getMarkedWrappers, getSelectedEntry, getSelectedEntryText, getSelectedWrapper, isBusy, isEmpty, noContentStr, onBackspace, onClipboardCopy, onMarking, open, open, open, open, open, opened, reread, reread, setClickHandler, setCommanderComparator, setCommanderFilter, setListClickHandler
Methods inherited from class org.luwrain.controls.ListArea
announceChar, announceSelected, getExistingItemIndexOnLine, getHotPointX, getHotPointY, getItemIndexOnLine, getItemOnLine, getLine, getLineCount, getLineIndexByItemIndex, getListAppearance, getListItemCount, getObservableSubstr, noContent, onAltEnd, onAltHome, onAltLeft, onAltRight, onAnnounce, onAnnounceLine, onAreaQuery, onBeginListeningQuery, onChar, 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
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
getHotPointX, getHotPointY, onAreaQuery
Methods inherited from interface org.luwrain.core.Lines
getLine, getLineCount
-
Field Details
-
FILTER_ALL
-
FILTER_NO_HIDDEN
-
closing
-
luwrain
-
name
-
filter
-
popupFlags
-
filterCancelled
protected boolean filterCancelled
-
-
Constructor Details
-
CommanderPopup
public CommanderPopup(Luwrain luwrain, String name, File file, CommanderArea.Filter<File> filter, Set<Popup.Flags> popupFlags)
-
-
Method Details
-
onCommanderClick
public CommanderArea.ClickHandler.Result onCommanderClick(CommanderArea area, File file, boolean dir) - Specified by:
onCommanderClick
in interfaceCommanderArea.ClickHandler<File>
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classCommanderArea<File>
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
- Overrides:
onSystemEvent
in classListArea<CommanderArea.Wrapper<File>>
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
- Overrides:
getAreaName
in classCommanderArea<File>
-
onOk
public boolean onOk()- Specified by:
onOk
in interfacePopupClosingTranslator.Provider
-
onCancel
public boolean onCancel()- Specified by:
onCancel
in interfacePopupClosingTranslator.Provider
-
getAreaActions
- Specified by:
getAreaActions
in interfaceArea
- Overrides:
getAreaActions
in classListArea<CommanderArea.Wrapper<File>>
-
getLuwrainObject
- Specified by:
getLuwrainObject
in interfacePopup
-
isPopupActive
public boolean isPopupActive()- Specified by:
isPopupActive
in interfacePopup
-
getPopupFlags
- Specified by:
getPopupFlags
in interfacePopup
-
isCancelled
public boolean isCancelled()
-