Package org.luwrain.controls
Class MarkableListArea
- All Implemented Interfaces:
ClipboardTranslator.Provider
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,Lines
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
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.Transition
-
Field Summary
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 TypeMethodDescriptionboolean
onClipboardCopy
(int fromX, int fromY, int toX, int toY, boolean withDeleting) boolean
onInputEvent
(InputEvent event) boolean
onSystemEvent
(SystemEvent event) protected boolean
void
refresh()
Refreshes the content of the list.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, onClipboardCopyAll, onDeleteRegion, onEnd, onEnter, onHome, onListeningFinishedEvent, onMoveDown, onMoveHotPoint, onMoveLeft, onMoveRight, onMoveUp, onNewHotPointY, onOk, onPageDown, onPageUp, onRegionTextQuery, onTransition, redraw, reset, resetHotPoint, resetHotPoint, select, select, selected, selectedIndex, selectEmptyLineBottom, setAreaName, setListClickHandler
-
Field Details
-
marksInfo
-
-
Constructor Details
-
MarkableListArea
-
-
Method Details
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classListArea<Object>
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
- Overrides:
onSystemEvent
in classListArea<Object>
-
onToggleMark
protected boolean onToggleMark() -
refresh
public void refresh()Description copied from class:ListArea
Refreshes the content of the list. This method callsrefresh()
method of the model and displays new items. It does not produce any speech announcement of the change. HotPointY is preserved if it is possible (meaning, the new number of lines not less than old value of hotPointY), but hotPointX is moved to the beginning of the line. -
onClipboardCopy
public boolean onClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting) - Specified by:
onClipboardCopy
in interfaceClipboardTranslator.Provider
- Overrides:
onClipboardCopy
in classListArea<Object>
-