Class AceCursorPosition

java.lang.Object
de.f0rce.ace.util.AceCursorPosition
All Implemented Interfaces:
Serializable

public class AceCursorPosition extends Object implements Serializable
Author:
David "F0rce" Dodlek
See Also:
  • Constructor Details

    • AceCursorPosition

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

      public AceCursorPosition(tools.jackson.databind.JsonNode cursorObject)
      Constructor for initializing the values directly from the frontend (only used in AceBlurChanged, AceSelectionChanged, AceForceSyncDomEvent).
      Parameters:
      cursorObject - JsonNode
  • 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