Package org.luwrain.controls
Class CommanderArea<E>
- All Implemented Interfaces:
ClipboardTranslator.Provider,RegionTextQueryTranslator.Provider,Area,HotPoint,Lines
- Direct Known Subclasses:
CommanderPopup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic enumstatic interfacestatic enumstatic classprotected static classstatic interfaceprotected static interfacestatic classstatic classNested classes/interfaces inherited from class org.luwrain.controls.ListArea
ListArea.ClipboardSaver<E>, ListArea.ListeningInfo, ListArea.Transition -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommanderArea.Appearance<E> protected CommanderArea.ClickHandler<E> protected booleanprotected Comparator<CommanderArea.NativeItem<E>> protected Eprotected CommanderArea.Filter<E> protected final Set<CommanderArea.Flags> protected final CommanderArea.Model<E> static final Stringprotected FutureTaskFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptNewLocation(E location, List<CommanderArea.Wrapper<E>> data, int selectedIndex, boolean announce) protected booleanclickImpl(int index, CommanderArea.Wrapper<E> wrapper) voidclose()protected static <E> ListArea.Params<CommanderArea.Wrapper<E>> createListParams(CommanderArea.Params<E> params) booleanfindFileName(String fileName, boolean announce) protected StringgetBaseName(CommanderArea.Wrapper wrapper) Returns the data model used by this list.Object[]String[]protected CommanderArea.Wrapper<E>[]protected CommanderArea.Wrapper<E> booleanisBusy()booleanisEmpty()Checks whether the list model contains any items.protected StringReturns the string to display when the list has no content.protected booleanonBackspace(InputEvent event) booleanonClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting) booleanonInputEvent(InputEvent event) protected booleanonMarking(InputEvent event) booleanbooleanbooleanbooleanbooleanopened()booleanreread(boolean announce) booleanvoidsetClickHandler(CommanderArea.ClickHandler<E> clickHandler) voidsetCommanderComparator(Comparator<CommanderArea.NativeItem<E>> comparator) voidsetCommanderFilter(CommanderArea.Filter<E> filter) voidsetListClickHandler(ListArea.ClickHandler clickHandler) Sets the click handler for item activation.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()Description copied from class:ListAreaChecks whether the list model contains any items.- Overrides:
isEmptyin classListArea<CommanderArea.Wrapper<E>>- Returns:
trueif the model is empty,falseotherwise
-
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
Description copied from class:ListAreaReturns the data model used by this list.- Overrides:
getListModelin classListArea<CommanderArea.Wrapper<E>>- Returns:
- the model
-
setClickHandler
-
setListClickHandler
Description copied from class:ListAreaSets the click handler for item activation.- Overrides:
setListClickHandlerin classListArea<CommanderArea.Wrapper<E>>- Parameters:
clickHandler- the handler to set (may benull)
-
onInputEvent
- Specified by:
onInputEventin interfaceArea- Overrides:
onInputEventin classListArea<CommanderArea.Wrapper<E>>
-
getAreaName
- Specified by:
getAreaNamein interfaceArea- Overrides:
getAreaNamein classListArea<CommanderArea.Wrapper<E>>
-
onClipboardCopy
public boolean onClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting) - Specified by:
onClipboardCopyin interfaceClipboardTranslator.Provider- Overrides:
onClipboardCopyin classListArea<CommanderArea.Wrapper<E>>
-
onBackspace
-
onMarking
-
clickImpl
-
noContentStr
Description copied from class:ListAreaReturns the string to display when the list has no content.- Overrides:
noContentStrin classListArea<CommanderArea.Wrapper<E>>- Returns:
- the "no content" string
-
getBaseName
-
createListParams
protected static <E> ListArea.Params<CommanderArea.Wrapper<E>> createListParams(CommanderArea.Params<E> params)
-