Class TextAreaSkin

    • Constructor Detail

      • TextAreaSkin

        public TextAreaSkin​(TextArea control)
        Creates a new TextAreaSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.
        Parameters:
        control - The control that this skin should be installed onto.
    • Method Detail

      • getIndex

        public HitInfo getIndex​(double x,
                                double y)
        Performs a hit test, mapping point to index in the content.
        Parameters:
        x - the x coordinate of the point.
        y - the y coordinate of the point.
        Returns:
        a HitInfo object describing the index and forward bias.
      • getCaretBounds

        public Bounds getCaretBounds()
        Gets the Bounds of the caret of the skinned TextArea.
        Returns:
        the Bounds of the caret shape, relative to the TextArea.
      • positionCaret

        public void positionCaret​(HitInfo hit,
                                  boolean select)
        Moves the caret to the specified position.
        Parameters:
        hit - the new position and forward bias of the caret.
        select - whether to extend selection to the new position.