|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.addon.touchkit.extensions.Html5InputSettings
public class Html5InputSettings
A TextField extension to control the new input properties that were introduced in HTML5. Browser support for these properties may vary, but among modern mobile browsers it is generally quite good.
Note that values are passed as-is to the related DOM element, so be sure to validate any user submitted values.
See the following links for references for the supported properties: W3 Schools, Apple.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
---|
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener |
Constructor Summary | |
---|---|
Html5InputSettings(com.vaadin.ui.TextField tf)
|
Method Summary | |
---|---|
String |
getAutoCapitalize()
|
boolean |
getAutoComplete()
|
boolean |
getAutoCorrect()
|
String |
getMax()
|
String |
getMin()
|
String |
getPlaceholder()
|
String |
getProperty(String key)
Returns the property identified by the provided key. |
protected Html5InputSettingsState |
getState()
|
String |
getStep()
|
void |
setAutoCapitalize(String value)
See Apple ios developer docs. |
void |
setAutoComplete(boolean value)
|
void |
setAutoCorrect(boolean value)
See Apple ios developer docs. |
void |
setMax(Number max)
Specifies the maximum value or input length for the field in characters. |
void |
setMax(String max)
Specifies the maximum value or input length for the field in characters. |
void |
setMin(Number min)
Specifies the minimum value or input length for the field. |
void |
setMin(String min)
Specifies the minimum value or input length for the field. |
void |
setPlaceholder(String placeholder)
Specifies the placeholder text displayed in light grey when the search input field is not currently in use. |
void |
setProperty(String key,
String value)
Sets a generic property of the textfield. |
void |
setStep(Number step)
Set the step value for a number field |
void |
setStep(String step)
Set the step value for a number field |
Methods inherited from class com.vaadin.server.AbstractExtension |
---|
extend, getParent, getSupportedParentType, remove, setParent |
Methods inherited from class com.vaadin.server.AbstractClientConnector |
---|
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Constructor Detail |
---|
public Html5InputSettings(com.vaadin.ui.TextField tf)
Method Detail |
---|
public void setAutoComplete(boolean value)
public boolean getAutoComplete()
public void setAutoCapitalize(String value)
value
- The value for the "autocapitalize" property.public String getAutoCapitalize()
setAutoCapitalize(String)
public void setAutoCorrect(boolean value)
value
- true to turn auto correct on and false to turn it off for the
input field.public boolean getAutoCorrect()
public void setPlaceholder(String placeholder)
placeholder
- The placeholder text.public String getPlaceholder()
setPlaceholder(String)
public void setMin(Number min)
min
- The minimum value or input length for the field.public void setMin(String min)
min
- The minimum value or input length for the field.public String getMin()
public void setMax(Number max)
max
- The maximum value or input length of the field in characters.public void setMax(String max)
max
- The maximum value or input length of the field in characters.public String getMax()
public void setStep(Number step)
step
- the delta for each step.public void setStep(String step)
step
- the delta for each step.public String getStep()
public void setProperty(String key, String value)
key
- value
- public String getProperty(String key)
key
- The key of the property to return
protected Html5InputSettingsState getState()
getState
in class com.vaadin.server.AbstractClientConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |