|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditArea
Interface for multi-line edit boxes.
EditBox
Method Summary | |
---|---|
void |
focus()
Focuses this edit |
java.lang.String |
getValue()
|
void |
highlightErrorLines(int[] lines)
Highlights specified lines. |
boolean |
isEnabled()
|
void |
selectAll()
Selects everything |
void |
setAutoStretch(boolean autoStretch)
Turns on the autostretch feature. |
void |
setEnabled(boolean enabled)
|
void |
setHeight(int height)
Sets preferred height |
void |
setOnChange(java.lang.String callback)
Sets the action method called when user types or does anything else that changes the value. |
void |
setOnFocus(java.lang.String callback)
Sets the action method called when the control is focused. |
void |
setValue(java.lang.String s)
|
void |
setWidth(int width)
Sets preferred width |
Methods inherited from interface com.leafdigital.ui.api.Widget |
---|
getID, getOwner, informClosed, isVisible, setOwner, setVisible |
Methods inherited from interface com.leafdigital.ui.api.SupportsBaseGroup |
---|
setBaseGroup |
Method Detail |
---|
java.lang.String getValue()
void setValue(java.lang.String s)
s
- New text including possible \n@UICallback void setOnChange(java.lang.String callback)
callback
- Name of method
BugException
- If method doesn't exist etc.@UICallback void setOnFocus(java.lang.String callback)
callback
- Name of method
BugException
- If method doesn't exist etc.void setEnabled(boolean enabled)
enabled
- True to enable, false to disableboolean isEnabled()
void focus()
void setWidth(int width)
width
- Width in pixels.void setHeight(int height)
height
- Height in pixelsvoid setAutoStretch(boolean autoStretch)
autoStretch
- void highlightErrorLines(int[] lines)
lines
- Array of 0-based line numbers (so first line is 0, not 1)
to highlight, or null for nonevoid selectAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |