Package org.luwrain.controls
Class EditableListArea<E>
- java.lang.Object
-
- org.luwrain.controls.ListArea<E>
-
- org.luwrain.controls.EditableListArea<E>
-
- All Implemented Interfaces:
ClipboardTranslator.Provider
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,Lines
- Direct Known Subclasses:
EditableListPopup
public class EditableListArea<E> extends ListArea<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EditableListArea.Confirmation<E>
static interface
EditableListArea.Model<E>
static class
EditableListArea.Params<E>
-
Nested classes/interfaces inherited from class org.luwrain.controls.ListArea
ListArea.Appearance<E>, ListArea.ClickHandler<E>, ListArea.ClipboardSaver<E>, ListArea.Flags, ListArea.ListeningInfo, ListArea.Transition
-
-
Field Summary
Fields Modifier and Type Field Description protected EditableListArea.Confirmation<E>
confirmation
protected EditableListArea.Model<E>
editableListModel
-
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
Constructors Constructor Description EditableListArea(EditableListArea.Params<E> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditableListArea.Confirmation
getEditableListConfirmation()
boolean
onClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting)
protected boolean
onClipboardPaste()
protected boolean
onDeleteMultiple(int fromLineIndex, int toLineIndex, boolean withConfirmation)
boolean
onDeleteRegion(int fromX, int fromY, int toX, int toY)
protected boolean
onDeleteSingle(int lineIndex, boolean withConfirmation)
boolean
onInputEvent(InputEvent event)
boolean
onSystemEvent(SystemEvent event)
-
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, 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
-
-
-
-
Field Detail
-
editableListModel
protected final EditableListArea.Model<E> editableListModel
-
confirmation
protected final EditableListArea.Confirmation<E> confirmation
-
-
Constructor Detail
-
EditableListArea
public EditableListArea(EditableListArea.Params<E> params)
-
-
Method Detail
-
getEditableListConfirmation
public EditableListArea.Confirmation getEditableListConfirmation()
-
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>
-
onClipboardCopy
public boolean onClipboardCopy(int fromX, int fromY, int toX, int toY, boolean withDeleting)
- Specified by:
onClipboardCopy
in interfaceClipboardTranslator.Provider
- Overrides:
onClipboardCopy
in classListArea<E>
-
onDeleteRegion
public boolean onDeleteRegion(int fromX, int fromY, int toX, int toY)
- Specified by:
onDeleteRegion
in interfaceClipboardTranslator.Provider
- Overrides:
onDeleteRegion
in classListArea<E>
-
onClipboardPaste
protected boolean onClipboardPaste()
-
onDeleteSingle
protected boolean onDeleteSingle(int lineIndex, boolean withConfirmation)
-
onDeleteMultiple
protected boolean onDeleteMultiple(int fromLineIndex, int toLineIndex, boolean withConfirmation)
-
-