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
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyFloatPropertyGets 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidkeepVisibilityForNode(javafx.scene.Node node) Node is adjusted vertically when software keyboard shows up, so it is visible and not covered by it.voidkeepVisibilityForNode(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.ReadOnlyFloatPropertyGets 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:
visibleHeightPropertyin 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:KeyboardServiceNode 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:
keepVisibilityForNodein 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:KeyboardServiceNode is adjusted vertically when software keyboard shows up, so it is visible and not covered by it- Specified by:
keepVisibilityForNodein 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:KeyboardServiceGets 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:
visibleHeightPropertyin interfaceKeyboardService- Returns:
- A ReadOnlyFloatProperty with the height of the soft keyboard
-