public class EmbeddedSingleLineEdit extends java.lang.Object implements SingleLineEdit.Model
Modifier and Type | Class and Description |
---|---|
protected static class |
EmbeddedSingleLineEdit.ShiftedRegionPoint |
Modifier and Type | Field and Description |
---|---|
protected ControlEnvironment |
context |
protected SingleLineEdit |
edit |
protected org.luwrain.core.HotPointControl |
hotPoint |
protected EmbeddedEditLines |
lines |
protected int |
offsetX |
protected int |
offsetY |
protected EmbeddedSingleLineEdit.ShiftedRegionPoint |
regionPoint |
Constructor and Description |
---|
EmbeddedSingleLineEdit(ControlEnvironment context,
EmbeddedEditLines lines,
org.luwrain.core.HotPointControl hotPoint,
AbstractRegionPoint regionPoint,
int offsetX,
int offsetY) |
Modifier and Type | Method and Description |
---|---|
SingleLineEdit |
getEditObj() |
int |
getHotPointX() |
java.lang.String |
getLine() |
java.lang.String |
getTabSeq() |
boolean |
isPosCovered(int x,
int y) |
boolean |
onAreaQuery(AreaQuery query) |
boolean |
onInputEvent(KeyboardEvent event) |
boolean |
onSystemEvent(EnvironmentEvent event) |
void |
setHotPointX(int value) |
void |
setLine(java.lang.String text) |
void |
setNewOffset(int x,
int y) |
protected final ControlEnvironment context
protected final SingleLineEdit edit
protected final EmbeddedEditLines lines
protected final org.luwrain.core.HotPointControl hotPoint
protected final EmbeddedSingleLineEdit.ShiftedRegionPoint regionPoint
protected int offsetX
protected int offsetY
public EmbeddedSingleLineEdit(ControlEnvironment context, EmbeddedEditLines lines, org.luwrain.core.HotPointControl hotPoint, AbstractRegionPoint regionPoint, int offsetX, int offsetY)
context
- The control context for this editlines
- The object to provide and to accept edited texthotPoint
- The object to provide and to set real hot point position in area (without any shift)regionPOint
- The object to track region point positionoffsetX
- The X position of this edit in the areaoffsetY
- The Y position of this edit in the areapublic SingleLineEdit getEditObj()
public boolean isPosCovered(int x, int y)
public void setNewOffset(int x, int y)
public boolean onInputEvent(KeyboardEvent event)
public boolean onSystemEvent(EnvironmentEvent event)
public boolean onAreaQuery(AreaQuery query)
public java.lang.String getLine()
getLine
in interface SingleLineEdit.Model
public void setLine(java.lang.String text)
setLine
in interface SingleLineEdit.Model
public int getHotPointX()
getHotPointX
in interface SingleLineEdit.Model
public void setHotPointX(int value)
setHotPointX
in interface SingleLineEdit.Model
public java.lang.String getTabSeq()
getTabSeq
in interface SingleLineEdit.Model