JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.htmlunit.html.impl

Interface SelectableTextInput

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      void focus ()
      Focuses this element.
      Page getPage ()
      Returns the page which contains this element.
      String getSelectedText ()
      Returns the selected text in this element, or null if there is no selected text in this element.
      int getSelectionEnd ()
      Returns the end position of the selected text in this element.
      int getSelectionStart ()
      Returns the start position of the selected text in this element.
      String getText ()
      Returns all of the text in this element.
      void select ()
      Focuses this element and selects all of its text.
      void setSelectionEnd (int selectionEnd)
      Sets the end position of the selected text in this element.
      void setSelectionStart (int selectionStart)
      Sets the start position of the selected text in this element.
      void setText (String text)
      Sets the text in this element.
    • Method Detail

      • getPage

        Page getPage()
        Returns the page which contains this element.
        Returns:
        the page which contains this element
      • focus

        void focus()
        Focuses this element.
      • select

        void select()
        Focuses this element and selects all of its text.
      • getText

        String getText()
        Returns all of the text in this element.
        Returns:
        all of the text in this element
      • setText

        void setText(String text)
        Sets the text in this element.
        Parameters:
        text - the text to put in this element
      • getSelectedText

        String getSelectedText()
        Returns the selected text in this element, or null if there is no selected text in this element.
        Returns:
        the selected text in this element, or null if there is no selected text in this element
      • getSelectionStart

        int getSelectionStart()
        Returns the start position of the selected text in this element.
        Returns:
        the start position of the selected text in this element
      • setSelectionStart

        void setSelectionStart(int selectionStart)
        Sets the start position of the selected text in this element.
        Parameters:
        selectionStart - the start position of the selected text in this element
      • getSelectionEnd

        int getSelectionEnd()
        Returns the end position of the selected text in this element.
        Returns:
        the end position of the selected text in this element
      • setSelectionEnd

        void setSelectionEnd(int selectionEnd)
        Sets the end position of the selected text in this element.
        Parameters:
        selectionEnd - the end position of the selected text in this element
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /