Class AceCursorPosition

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

public class AceCursorPosition extends Object
Author:
David "F0rce" Dodlek
  • Constructor Details

    • AceCursorPosition

      public AceCursorPosition()
      Default Constructor to have valid values on initializing.
    • AceCursorPosition

      public AceCursorPosition(elemental.json.JsonObject cursorObject)
      Constructor for initializing the values directly from the frontend (only used in AceBlurChanged, AceSelectionChanged, AceForceSyncDomEvent).
      Parameters:
      cursorObject - JsonObject
  • Method Details

    • getRow

      public int getRow()
      Returns the row where the selection starts.
      Returns:
      int
    • getColumn

      public int getColumn()
      Returns the column where the selection starts.
      Returns:
      int
    • getIndex

      public int getIndex()
      Returns the index where the selection starts (calculation done in the frontend).
      Returns:
      int
    • compareTo

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