Class AceSelection

java.lang.Object
de.f0rce.ace.util.AceSelection

public class AceSelection extends Object
Author:
David "F0rce" Dodlek
  • 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 in AceBlurChanged, 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

      public String getSelectedText()
      Returns the text which is selected.
      Returns:
      String
    • compareTo

      public boolean compareTo(AceSelection a)
      Check if one instance of the AceSelection is equal to another.
      Parameters:
      a - AceSelection
      Returns:
      boolean