Interface Cursor

All Superinterfaces:
BareCursor

public interface Cursor extends BareCursor
A Cursor represents the current "type-in" point on the screen.
Version:
$Id$
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.rs.seagull.emulator.api.BareCursor

    BareCursor.CursorType
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isInField(String fieldName)
    Returns true if the cursor is positioned inside the named field.
    boolean
    isInField(String fieldName, int index)
    Returns true if the cursor is positioned inside the index'th part of the multi-part named field.
    void
    setPosition(String fieldName)
    Set the cursor position to the beginning of the named field.
    void
    setPosition(String fieldName, int index)
    Set the cursor position to the beginning of the index'th part of the multi-part named field.

    Methods inherited from interface com.rs.seagull.emulator.api.BareCursor

    getPosition, getType, isVisible, setPosition, setPosition, setPosition
  • Method Details

    • setPosition

      void setPosition(String fieldName)
      Set the cursor position to the beginning of the named field.
      Parameters:
      fieldName - the field into which the cursor should be positioned.
    • setPosition

      void setPosition(String fieldName, int index)
      Set the cursor position to the beginning of the index'th part of the multi-part named field.
      Parameters:
      fieldName - the field into which the cursor should be positioned.
      index - the zero-based element of the multi-part field
    • isInField

      boolean isInField(String fieldName)
      Returns true if the cursor is positioned inside the named field.
      Parameters:
      fieldName - the field to check
      Returns:
      true if the cursor is in the field.
    • isInField

      boolean isInField(String fieldName, int index)
      Returns true if the cursor is positioned inside the index'th part of the multi-part named field.
      Parameters:
      fieldName - the field to check
      index - the zero-based element of the multi-part field
      Returns:
      true if the cursor is in the field.