com.hp.lft.sdk.stdwin

Interface Editor

    • Method Detail

      • getCursorLine

        int getCursorLine()
                   throws GeneralLeanFtException
        Returns the line where the cursor is located. (0-based)
        Returns:
        the line where the cursor is located. (0-based)
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getCursorColumn

        int getCursorColumn()
                     throws GeneralLeanFtException
        Returns the character position where the cursor is located. (0-based)
        Returns:
        the character position where the cursor is located. (0-based)
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setCursorPosition

        void setCursorPosition(int line,
                               int charPos)
                        throws GeneralLeanFtException
        Places the cursor at the specified point in the multi-line editor.
        Parameters:
        line - the line in which the cursor is placed. (0-based)
        charPos - the character position at which the cursor is placed.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(int fromLine,
                    int fromCharPos,
                    int toLine,
                    int toCharPos)
             throws GeneralLeanFtException
        Selects the specified content in the editor.
        Note: All positions are 0-based.
        Parameters:
        fromLine - the line at which the selection starts, inclusive.
        fromCharPos - the character position at which the selection starts, inclusive.
        toLine - the line at which the selection ends, inclusive.
        toCharPos - the character position at which the selection ends, inclusive.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.