net.sf.click.extras.control
Class VirtualKeyboard

java.lang.Object
  extended bynet.sf.click.control.AbstractControl
      extended bynet.sf.click.control.Field
          extended bynet.sf.click.control.TextField
              extended bynet.sf.click.extras.control.VirtualKeyboard
All Implemented Interfaces:
Control, Serializable

public class VirtualKeyboard
extends TextField

Provides a graphical Vitural Keyboard interface text field control:   <input type='text'>.

VirtualKeyboard enables text fields to be filled in using a mouse only. Password and textarea fields will be supported in later releases.

Virtual keyboard interfaces are generally used in websites where the highest level of security is a must like online banking applications. Virtual keyboards help to prevent any keylogging activies and/or provide users a special keyboard which they don�t already have (like a keyboard of another language).

Keyboard Layout Support

This controls comes with support for Arabic, Belgian, Dutch, Dvorak, French, German, Greek, Hebrew, Hungarian, Italian, Lithuanian, Norwegian, Number Pad, Polish Programmers, Portuguese, Russian, Slovenian, Spanish (Spain), Turkish-F, Turkish-QWERTY, UK, US Standard and US International keyboard layouts, dynamically selectable.

Credits

This control based on the Greywyvern JavaScript library. TODO: add support for password fields and textareas too.

Author:
Ahmed Mohombe
See Also:
Serialized Form

Field Summary
static String HTML_IMPORTS
          The HTML import statements.
 
Fields inherited from class net.sf.click.control.TextField
maxLength, minLength, size, VALIDATE_TEXTFIELD_FUNCTION
 
Fields inherited from class net.sf.click.control.Field
disabled, error, focus, form, help, label, readonly, required, tabindex, title, validate, value
 
Fields inherited from class net.sf.click.control.AbstractControl
actionListener, attributes, listener, listenerMethod, messages, name, parent, styles
 
Fields inherited from interface net.sf.click.Control
CONTROL_MESSAGES
 
Constructor Summary
VirtualKeyboard()
          Constructs a new VirtualKeyboard Field object with no name defined.
VirtualKeyboard(String name)
          Constructs the VirtualKeyboard Field with the given name.
VirtualKeyboard(String name, String label)
          Constructs the VirtualKeyboard Field with the given name and label.
 
Method Summary
 String getHtmlImports()
          Returns the HTML head import statements for the JavaScript (click/keyboard.js) and CSS (click/keyboard.css) files.
 void onDeploy(ServletContext servletContext)
          Deploy the static resource files in the VirtualKeyboard control.
 
Methods inherited from class net.sf.click.control.TextField
getControlSizeEst, getMaxLength, getMinLength, getSize, getTag, getType, getValidationJavaScript, render, setMaxLength, setMinLength, setSize, validate
 
Methods inherited from class net.sf.click.control.Field
bindRequestValue, getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isValid, onInit, onProcess, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setParent, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth
 
Methods inherited from class net.sf.click.control.AbstractControl
addStyleClass, appendAttributes, getActionListener, getAttribute, getAttributes, getContext, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDestroy, onRender, registerActionEvent, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML_IMPORTS

public static final String HTML_IMPORTS
The HTML import statements.

See Also:
Constant Field Values
Constructor Detail

VirtualKeyboard

public VirtualKeyboard()
Constructs a new VirtualKeyboard Field object with no name defined.

Please note the control's name must be defined before it is valid.


VirtualKeyboard

public VirtualKeyboard(String name)
Constructs the VirtualKeyboard Field with the given name.

Parameters:
name - the name of the VirtualKeyboard field

VirtualKeyboard

public VirtualKeyboard(String name,
                       String label)
Constructs the VirtualKeyboard Field with the given name and label.

Parameters:
name - the name of the VirtualKeyboard field
label - the label of the VirtualKeyboard field
Method Detail

getHtmlImports

public String getHtmlImports()
Returns the HTML head import statements for the JavaScript (click/keyboard.js) and CSS (click/keyboard.css) files.

Returns:
the HTML head import statements for the JavaScript and CSS files
See Also:
Control.getHtmlImports()

onDeploy

public void onDeploy(ServletContext servletContext)
Deploy the static resource files in the VirtualKeyboard control.

Parameters:
servletContext - the ServletContext
See Also:
AbstractControl.onDeploy(javax.servlet.ServletContext)