Package de.f0rce.ace.util
Class AceSelection
java.lang.Object
de.f0rce.ace.util.AceSelection
- Author:
- David "F0rce" Dodlek
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor to have valid values on initializing.AceSelection(elemental.json.JsonObject selectionObject) Constructor for initializing the values directly from the frontend (only used inAceBlurChanged,AceSelectionChanged,AceForceSyncDomEvent). -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if one instance of theAceSelectionis equal to another.intReturns the column where the selection ends.intReturns the index where the selections ends.intReturns the row where the selection ends.Returns the text which is selected.intReturns the column where the selection starts.intReturns the index where the selection starts.intReturns the row where the selection starts.
-
Constructor Details
-
AceSelection
public AceSelection()Default Constructor to have valid values on initializing. -
AceSelection
public AceSelection(elemental.json.JsonObject selectionObject) Constructor for initializing the values directly from the frontend (only used inAceBlurChanged,AceSelectionChanged,AceForceSyncDomEvent).- Parameters:
selectionObject-JsonObject
-
-
Method Details
-
getStartRow
public int getStartRow()Returns the row where the selection starts.- Returns:
- int
-
getStartColumn
public int getStartColumn()Returns the column where the selection starts.- Returns:
- int
-
getStartIndex
public int getStartIndex()Returns the index where the selection starts.- Returns:
- int
-
getEndRow
public int getEndRow()Returns the row where the selection ends.- Returns:
- int
-
getEndColumn
public int getEndColumn()Returns the column where the selection ends.- Returns:
- int
-
getEndIndex
public int getEndIndex()Returns the index where the selections ends.- Returns:
- int
-
getSelectedText
Returns the text which is selected.- Returns:
String
-
compareTo
Check if one instance of theAceSelectionis equal to another.- Parameters:
a-AceSelection- Returns:
- boolean
-