Package org.luwrain.controls.edit
Class EditArea
java.lang.Object
org.luwrain.controls.NavigationArea
org.luwrain.controls.edit.EditArea
- All Implemented Interfaces:
ClipboardTranslator.Provider
,RegionTextQueryTranslator.Provider
,Area
,HotPoint
,HotPointControl
,Lines
- Direct Known Subclasses:
SpellCheckingEditArea
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EditArea.Appearance
protected String
protected final List<EditArea.ChangeListener>
protected final MutableMarkedLines
protected final MultilineEdit
protected final List<EditArea.InputEventListener>
protected final MultilineEditTranslator
Fields inherited from class org.luwrain.controls.NavigationArea
clipboardTranslator, context, hotPointX, hotPointY, regionPoint, regionTextQueryTranslator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
announceLine
(int index, String line) void
clear()
protected MultilineEdit
createEdit
(EditArea.Params areaParams) getEdit()
getLine
(int index) int
protected String
String[]
getText()
protected void
boolean
onAreaQuery
(AreaQuery query) boolean
onInputEvent
(InputEvent event) boolean
onSystemEvent
(SystemEvent event) void
refresh()
void
setAreaName
(String areaName) void
setChangeListeners
(List<EditArea.ChangeListener> listeners) void
void
boolean
update
(EditArea.EditUpdating updating) Methods inherited from class org.luwrain.controls.NavigationArea
beginHotPointTrans, defaultLineAnnouncement, endHotPointTrans, getAreaActions, getHotPointX, getHotPointY, getLineNotNull, getNewHotPointX, getNextBlockLine, getPrevBlockLine, getRegionPoint, getValidLineCount, isBlockBoundLine, onAltEnd, onAltHome, onAltLeft, onAltRight, onClipboardCopy, onClipboardCopyAll, onDeleteRegion, onEnd, onHome, onMoveDown, onMoveLeft, onMoveRight, onMoveUp, onPageDown, onPageUp, onRegionTextQuery, redraw, reset, setHotPoint, setHotPointX, setHotPointY
-
Field Details
-
-
translator
-
appearance
-
areaName
-
changeListeners
-
edit
-
inputEventListeners
-
-
Constructor Details
-
EditArea
-
-
Method Details
-
setChangeListeners
-
createEdit
-
getEdit
-
getLineCount
public int getLineCount() -
getLine
-
setLine
-
getAreaName
-
setAreaName
-
getText
-
getText
-
setText
-
update
-
clear
public void clear() -
getContent
-
refresh
public void refresh() -
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
- Overrides:
onInputEvent
in classNavigationArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
- Overrides:
onSystemEvent
in classNavigationArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
- Overrides:
onAreaQuery
in classNavigationArea
-
announceLine
- Overrides:
announceLine
in classNavigationArea
-
getEditAppearance
-
getTabSeq
-
notifyChangeListeners
protected void notifyChangeListeners()
-