Module com.gluonhq.attach.keyboard
Package com.gluonhq.attach.keyboard.impl
Class AndroidKeyboardService
java.lang.Object
com.gluonhq.attach.keyboard.impl.AndroidKeyboardService
- All Implemented Interfaces:
KeyboardService
-
Property Summary
TypePropertyDescriptionjavafx.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 itjavafx.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.
-
Property Details
-
visibleHeight
public javafx.beans.property.ReadOnlyFloatProperty visibleHeightProperty- Specified by:
visibleHeightProperty
in interfaceKeyboardService
- 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 interfaceKeyboardService
- 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 interfaceKeyboardService
- Parameters:
node
- the Node to adjust, so it is always visibleparent
- 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 interfaceKeyboardService
- Returns:
- A ReadOnlyFloatProperty with the height of the soft keyboard
-