Class AceEditorCursorPosition
java.lang.Object
cn.mapway.document.ui.client.component.ace.AceEditorCursorPosition
Represents a cursor position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AceEditorCursorPositioncreate(int row, int column) Static creation method.intintgetRow()com.google.gwt.core.client.JavaScriptObjectConvert to a native Ace JavaScript position object (with integer-valuedrowandcolumnfields.)toString()
-
Constructor Details
-
AceEditorCursorPosition
public AceEditorCursorPosition(int row, int column) Constructor.- Parameters:
row- row (0 for first row)column- column (0 for first column)
-
-
Method Details
-
getRow
public int getRow()- Returns:
- the row (0 for first row)
-
getColumn
public int getColumn()- Returns:
- the column (0 for first column)
-
toString
-
create
Static creation method. This is handy for calling from JSNI code.- Parameters:
row- the rowcolumn- the column- Returns:
- the
AceEditorCursorPosition
-
toJsObject
public com.google.gwt.core.client.JavaScriptObject toJsObject()Convert to a native Ace JavaScript position object (with integer-valuedrowandcolumnfields.)- Returns:
- native Ace JavaScript position object
-