Package org.luwrain.controls
Class CommanderArea<E>
- All Implemented Interfaces:
ClipboardTranslator.Provider
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,Lines
- Direct Known Subclasses:
CommanderPopup
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static enum
static interface
static enum
static class
protected static class
static interface
protected static interface
static class
static class
Nested classes/interfaces inherited from class org.luwrain.controls.ListArea
ListArea.ClipboardSaver<E>, ListArea.ListeningInfo, ListArea.Transition
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommanderArea.Appearance<E>
protected CommanderArea.ClickHandler<E>
protected boolean
protected Comparator<CommanderArea.NativeItem<E>>
protected E
protected CommanderArea.Filter<E>
protected final Set<CommanderArea.Flags>
protected final CommanderArea.Model<E>
static final String
protected FutureTask
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
acceptNewLocation
(E location, List<CommanderArea.Wrapper<E>> data, int selectedIndex, boolean announce) protected boolean
clickImpl
(int index, CommanderArea.Wrapper<E> wrapper) void
close()
protected static <E> ListArea.Params<CommanderArea.Wrapper<E>>
createListParams
(CommanderArea.Params<E> params) boolean
findFileName
(String fileName, boolean announce) protected String
getBaseName
(CommanderArea.Wrapper wrapper) Object[]
String[]
protected CommanderArea.Wrapper<E>[]
protected CommanderArea.Wrapper<E>
boolean
isBusy()
boolean
isEmpty()
protected String
protected boolean
onBackspace
(InputEvent event) boolean
onClipboardCopy
(int fromX, int fromY, int toX, int toY, boolean withDeleting) boolean
onInputEvent
(InputEvent event) protected boolean
onMarking
(InputEvent event) boolean
boolean
boolean
boolean
boolean
opened()
boolean
reread
(boolean announce) boolean
void
setClickHandler
(CommanderArea.ClickHandler<E> clickHandler) void
setCommanderComparator
(Comparator<CommanderArea.NativeItem<E>> comparator) void
setCommanderFilter
(CommanderArea.Filter<E> filter) void
setListClickHandler
(ListArea.ClickHandler clickHandler) Methods inherited from class org.luwrain.controls.ListArea
announceChar, announceSelected, getAreaActions, 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, onSystemEvent, onTransition, redraw, refresh, reset, resetHotPoint, resetHotPoint, select, select, selected, selectedIndex, selectEmptyLineBottom, setAreaName
-
Field Details
-
PARENT_DIR
- See Also:
-
model
-
appearance
-
flags
-
clickHandler
-
filter
-
comparator
-
currentLocation
-
task
-
closed
protected boolean closed
-
-
Constructor Details
-
CommanderArea
-
-
Method Details
-
getCommanderModel
-
setCommanderFilter
-
setCommanderComparator
-
close
public void close() -
findFileName
-
isBusy
public boolean isBusy() -
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classListArea<CommanderArea.Wrapper<E>>
-
getSelectedWrapper
-
getSelectedEntry
-
getSelectedEntryText
-
opened
-
getMarked
-
getMarkedNames
-
getMarkedWrappers
-
open
-
open
-
open
-
open
-
open
-
reread
public boolean reread(boolean announce) -
reread
-
acceptNewLocation
protected void acceptNewLocation(E location, List<CommanderArea.Wrapper<E>> data, int selectedIndex, boolean announce) -
getListModel
- Overrides:
getListModel
in classListArea<CommanderArea.Wrapper<E>>
-
setClickHandler
-
setListClickHandler
- Overrides:
setListClickHandler
in classListArea<CommanderArea.Wrapper<E>>
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classListArea<CommanderArea.Wrapper<E>>
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
- Overrides:
getAreaName
in classListArea<CommanderArea.Wrapper<E>>
-
onClipboardCopy
public boolean onClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting) - Specified by:
onClipboardCopy
in interfaceClipboardTranslator.Provider
- Overrides:
onClipboardCopy
in classListArea<CommanderArea.Wrapper<E>>
-
onBackspace
-
onMarking
-
clickImpl
-
noContentStr
- Overrides:
noContentStr
in classListArea<CommanderArea.Wrapper<E>>
-
getBaseName
-
createListParams
protected static <E> ListArea.Params<CommanderArea.Wrapper<E>> createListParams(CommanderArea.Params<E> params)
-