Interface Cursor

  • All Superinterfaces:
    BareCursor

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

      • 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.