Class AndroidKeyboardService

java.lang.Object
com.gluonhq.attach.keyboard.impl.AndroidKeyboardService
All Implemented Interfaces:
KeyboardService

public class AndroidKeyboardService extends Object implements KeyboardService
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ReadOnlyFloatProperty
    Gets the visible height of the Keyboard, so scene or views can adjusted to prevent some of their content from being covered by the keyboard.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    keepVisibilityForNode(javafx.scene.Node node)
    Node is adjusted vertically when software keyboard shows up, so it is visible and not covered by it.
    void
    keepVisibilityForNode(javafx.scene.Node node, javafx.scene.Parent parent)
    Node is adjusted vertically when software keyboard shows up, so it is visible and not covered by it
    javafx.beans.property.ReadOnlyFloatProperty
    Gets the visible height of the Keyboard, so scene or views can adjusted to prevent some of their content from being covered by the keyboard.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

    • visibleHeight

      public javafx.beans.property.ReadOnlyFloatProperty visibleHeightProperty
      Specified by:
      visibleHeightProperty in interface KeyboardService
      Returns:
      A ReadOnlyFloatProperty with the height of the soft keyboard
  • Constructor Details

    • AndroidKeyboardService

      public AndroidKeyboardService()
  • Method Details

    • keepVisibilityForNode

      public void keepVisibilityForNode(javafx.scene.Node node)
      Description copied from interface: KeyboardService
      Node is adjusted vertically when software keyboard shows up, so it is visible and not covered by it. For that, the root parent will be moved accordingly.
      Specified by:
      keepVisibilityForNode in interface KeyboardService
      Parameters:
      node - the Node to adjust, so it is always visible
    • keepVisibilityForNode

      public void keepVisibilityForNode(javafx.scene.Node node, javafx.scene.Parent parent)
      Description copied from interface: KeyboardService
      Node is adjusted vertically when software keyboard shows up, so it is visible and not covered by it
      Specified by:
      keepVisibilityForNode in interface KeyboardService
      Parameters:
      node - the Node to adjust, so it is always visible
      parent - the Parent of the node that will be moved
    • visibleHeightProperty

      public javafx.beans.property.ReadOnlyFloatProperty visibleHeightProperty()
      Description copied from interface: KeyboardService
      Gets the visible height of the Keyboard, so scene or views can adjusted to prevent some of their content from being covered by the keyboard.
      Specified by:
      visibleHeightProperty in interface KeyboardService
      Returns:
      A ReadOnlyFloatProperty with the height of the soft keyboard