public interface

Keyboard

com.neomades.app.Keyboard

Class Overview

Representation of the virtual keyboard to manage it programmatically.

Summary

Public Methods
abstract void hide(View view)

Hides the opened keyboard on the current View.

abstract void hide()

Hides the opened keyboard.

abstract void show(TextArea focusedTextArea)

Shows the keyboard for the selected TextArea.

abstract void show(TextField focusedTextField)

Shows the keyboard for the selected TextField.

Public Methods

public abstract void hide (View view)

Hides the opened keyboard on the current View. More restrictive than hide() but work in complex cases (keyboard open over a dialog for example).

public abstract void hide ()

Hides the opened keyboard. This may not work in some context (dialog for example), prefer the usage of hide(View) in this case.

If the keyboard is already closed then this method does nothing.

public abstract void show (TextArea focusedTextArea)

Shows the keyboard for the selected TextArea.

If the TextArea is not visible on the screen then the screen will scroll its content to set the field visible.

public abstract void show (TextField focusedTextField)

Shows the keyboard for the selected TextField.

If the TextField is not visible on the screen then the screen will scroll its content to set the field visible.