Package org.luwrain.controls
Class SimpleArea
java.lang.Object
org.luwrain.controls.NavigationArea
org.luwrain.controls.SimpleArea
- All Implemented Interfaces:
ClipboardTranslator.Provider,RegionTextQueryTranslator.Provider,Area,HotPoint,HotPointControl,Lines,MutableLines
- Direct Known Subclasses:
ProgressArea
{code Area} interface implementation with internal lines storing. This
area type has its own lines container based on
MutableLinesImpl class. It is the minimal area implementation which
doesn't have any abstract methods. It is useful, if it is necessary to
have an area with some static content, available for changing through
the operations of MutableLines interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.core.MutableLines
MutableLines.Updating -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MutableLinesImplprotected final ControlContextprotected StringFields inherited from class org.luwrain.controls.NavigationArea
clipboardTranslator, context, hotPointTransCount, hotPointX, hotPointY, regionPoint, regionTextQueryTranslator -
Constructor Summary
ConstructorsConstructorDescriptionSimpleArea(ControlContext environment) SimpleArea(ControlContext environment, String name) SimpleArea(ControlContext environment, String name, String[] lines) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()getLine(int index) intString[]getLines()voidinsertLine(int index, String line) voidremoveLine(int index) voidvoidvoidvoidupdate(MutableLines.Updating updating) Methods inherited from class org.luwrain.controls.NavigationArea
announceLine, beginHotPointTrans, defaultLineAnnouncement, endHotPointTrans, getAreaActions, getHotPointX, getHotPointY, getLineNotNull, getNewHotPointX, getNextBlockLine, getPrevBlockLine, getRegionPoint, getValidLineCount, isBlockBoundLine, onAltEnd, onAltHome, onAltLeft, onAltRight, onAreaQuery, onClipboardCopy, onClipboardCopyAll, onDeleteRegion, onEnd, onHome, onInputEvent, onMoveDown, onMoveLeft, onMoveRight, onMoveUp, onPageDown, onPageUp, onRegionTextQuery, onSystemEvent, redraw, reset, setHotPoint, setHotPointX, setHotPointY
-
Field Details
-
environment
-
name
-
-
-
Constructor Details
-
SimpleArea
-
SimpleArea
-
SimpleArea
-
-
Method Details
-
update
- Specified by:
updatein interfaceMutableLines
-
getLineCount
public int getLineCount()- Specified by:
getLineCountin interfaceLines
-
getLine
-
setLines
- Specified by:
setLinesin interfaceMutableLines
-
getLines
- Specified by:
getLinesin interfaceMutableLines
-
setLine
- Specified by:
setLinein interfaceMutableLines
-
addLine
- Specified by:
addLinein interfaceMutableLines
-
insertLine
- Specified by:
insertLinein interfaceMutableLines
-
removeLine
public void removeLine(int index) - Specified by:
removeLinein interfaceMutableLines
-
clear
public void clear()- Specified by:
clearin interfaceMutableLines
-
getAreaName
- Specified by:
getAreaNamein interfaceArea
-
setName
-
getWholeText
-