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
Modifier and TypeFieldDescriptionprotected final MutableLinesImpl
protected final ControlContext
protected String
Fields inherited from class org.luwrain.controls.NavigationArea
clipboardTranslator, context, hotPointX, hotPointY, regionPoint, regionTextQueryTranslator
-
Constructor Summary
ConstructorDescriptionSimpleArea
(ControlContext environment) SimpleArea
(ControlContext environment, String name) SimpleArea
(ControlContext environment, String name, String[] lines) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
getLine
(int index) int
String[]
getLines()
void
insertLine
(int index, String line) void
removeLine
(int index) void
void
void
void
update
(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:
update
in interfaceMutableLines
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
setLines
- Specified by:
setLines
in interfaceMutableLines
-
getLines
- Specified by:
getLines
in interfaceMutableLines
-
setLine
- Specified by:
setLine
in interfaceMutableLines
-
addLine
- Specified by:
addLine
in interfaceMutableLines
-
insertLine
- Specified by:
insertLine
in interfaceMutableLines
-
removeLine
public void removeLine(int index) - Specified by:
removeLine
in interfaceMutableLines
-
clear
public void clear()- Specified by:
clear
in interfaceMutableLines
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
-
setName
-
getWholeText
-