Module com.gluonhq.attach.keyboard
Package com.gluonhq.attach.keyboard.impl
Class IOSKeyboardService
- java.lang.Object
-
- com.gluonhq.attach.keyboard.impl.IOSKeyboardService
-
- All Implemented Interfaces:
KeyboardService
public class IOSKeyboardService extends java.lang.Object implements KeyboardService
-
-
Constructor Summary
Constructors Constructor Description IOSKeyboardService()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 itjavafx.beans.property.ReadOnlyFloatProperty
visibleHeightProperty()
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.
-
-
-
Method Detail
-
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
-
-