Search
VirtualKeyboard Members
Constructors Fields Methods
 


Implements a virtual keyboard component.

The following tables list the members exposed by the VirtualKeyboard type.

 Public Constructors

  Name Description

VirtualKeyboard

Initializes a new instance of the VirtualKeyboard class.

 Public Fields

  Name Description

AUTO_SHOW_PROPERTY

Client property key specifying whether the virtual keyboard is automatically shown on focus.

CUSTOM_LAYOUT_PROPERTY

Client property key specifying a custom keyboard layout template for a component.

LAYOUT_MODE_PROPERTY

Client property key specifying the keyboard layout mode for a component.

POPUP_PLACEMENT_PROPERTY

Client property key specifying the popup placement relative to a component.

 Public Methods

  Name Description

addVirtualKeyboardListener

Registers listener so that it will receive events when users press keyboard keys.

applyTheme

Overloaded.  

dispose

 

getAltGrLocked

Gets the state of the AltGr key.

getAltLocked

Gets the state of the Alt key.

getAutoFill

Gets whether keyboard layout should be generated automatically depending on the language (e.g. qwerty, azerty, etc layouts).

getAutoReleaseModifierKeys

Gets whether pressing a regular key automatically releases modifier keys such as shift, alt, control etc. (except CapsLock).

getAutoRepeat

Gets whether the component should synthesize keyboard events repeatedly when a virtual key is pressed down, until the key is released.

getAutoShow

Gets whether automatic keyboard popup on focus is enabled for the specified component, inheriting from parent containers or the top-level window if not set directly.

getCapsLocked

Gets the state of the Caps-lock key.

getControlLocked

Gets the state of the Control key.

getCurrentLayout

Gets the current keyboard layout.

getCustomLayout

Gets the custom keyboard layout template associated with the specified component, inheriting from parent containers if not set directly.

getDefaultLayout

Gets the default keyboard layout.

getFollowSystemInputLanguage

Gets a value indicating whether the keyboard automatically follows the system's input language.

getInputLocale

Gets the current input language.

getKeyTemplate

Gets the appearance of key buttons.

getLayoutMode

Gets the keyboard layout mode associated with the specified component, inheriting from parent containers or the default if not set directly.

getLayoutRing

Gets a list of keyboard layouts that can be cycled through.

getLayoutRingIndex

Gets the index of the current layout in the LayoutRing.

getLayoutsFolder

Gets the folder where layout files are located.

getMode

Gets the layout mode.

getNumLocked

Gets the state of the Num-lock key.

getPasswordMode

Gets whether password mode is enabled. In password mode, keys are not highlighted when hovered by mouse pointer or pressed.

getPopupPlacement

Gets the popup placement mode relative to the specified component, inheriting from parent containers or the default if not set directly.

getRepeatDelay

Specifies the initial delay in milliseconds before the component starts repeating key-down events when AutoRepeat is enabled.

getRepeatDownOnly

Gets whether keys repeat only key-down events, with a single key-up generated in the end.

getRepeatRate

Gets the delay in milliseconds between consecutive key-down events synthesized in AutoRepeat mode.

getScrollLocked

Gets the state of the Scroll-lock key.

getShiftLocked

Gets the state of the Shift key.

getStandalone

Gets whether the keyboard is the only content of the application's window.

getStretch

Gets a stretch mode that determines how the keyboard fits into the available space.

getTemplateLayout

Gets the keyboard's layout template.

getTheme

Gets the keyboard appearance theme.

getUseSystemKeyMapping

Returns whether the virtual keyboard uses the operating system's key-to-character mapping based on the current system keyboard layout.

hidePopup

Hides the virtual keyboard popup if currently visible.

installAutoShow

Overloaded.  

isInputControl

Determines whether the specified component is considered an editable input control.

isPopupVisible

Returns whether the virtual keyboard popup is currently visible.

loadImeTable

Loads an IME table file for specified locale.

paintComponent

JComponent.paintComponent override.

removeVirtualKeyboardListener

Unregisters listener so that it will no longer receive keyboard events.

selectLayout

Selects a layout from the layout ring at the specified index.

sendClear

Sends a clear command (Ctrl+A followed by Backspace) to the focused control.

sendKey

Sends the specified key input to active window.

setAutoFill

Sets whether keyboard layout should be generated automatically depending on the language (e.g. qwerty, azerty, etc layouts).

setAutoReleaseModifierKeys

Sets whether pressing a regular key automatically releases modifier keys such as shift, alt, control etc. (except CapsLock).

setAutoRepeat

Sets whether the component should synthesize keyboard events repeatedly when a virtual key is pressed down, until the key is released.

setAutoShow

Sets whether automatic keyboard popup on focus is enabled for the specified component.

setCustomLayout

Sets a custom keyboard layout template for the specified component.

setDefaultLayout

Sets the default keyboard layout.

setFollowSystemInputLanguage

Sets a value indicating whether the keyboard automatically follows the system's input language.

setFont

JComponent.setFont override.

setInputLocale

Sets the current input language.

setKeyTemplate

Sets the appearance of key buttons.

setLayoutMode

Sets the keyboard layout mode associated with the specified component.

setLayoutRing

Sets a list of keyboard layouts that can be cycled through.

setLayoutsFolder

Sets the folder where layout files are located.

setLicenseKey

Sets the component's license key string, disabling evaluation mode.

setMode

Sets the layout mode.

setPasswordMode

Sets whether password mode is enabled. In password mode, keys are not highlighted when hovered by mouse pointer or pressed.

setPopupPlacement

Sets the popup placement mode relative to the specified component.

setRepeatDelay

Specifies the initial delay in milliseconds before the component starts repeating key-down events when AutoRepeat is enabled.

setRepeatDownOnly

Sets whether keys repeat only key-down events, with a single key-up generated in the end.

setRepeatRate

Sets the delay in milliseconds between consecutive key-down events synthesized in AutoRepeat mode.

setStandalone

Sets whether the keyboard is the only content of the application's window.

setStretch

Sets a stretch mode that determines how the keyboard fits into the available space.

setTemplateLayout

Sets the keyboard's layout template.

setTheme

Sets the keyboard appearance theme.

setUseSystemKeyMapping

Sets whether the virtual keyboard should use the operating system's key-to-character mapping based on the current system keyboard layout.

showPopup

Shows the virtual keyboard popup for the specified target component.

uninstallAutoShow

Overloaded.  

unlockKeys

Unlocks all modifier keys.

updateLayoutRingKeyAppearance

Updates the visual appearance of a layout ring key.

 See Also