Package net.moewes.cloudui.vaadin.input
Class InputField
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.vaadin.input.InputField
-
- Direct Known Subclasses:
EmailField,NumberInputField,PasswordField,TextArea,TextField
public abstract class InputField extends net.moewes.cloudui.UiComponent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInputField(String tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPrefix(net.moewes.cloudui.UiComponent component)adds a prefix component to the fieldvoidaddSuffix(net.moewes.cloudui.UiComponent component)adds a suffix component to the fieldnet.moewes.cloudui.UiElementrender()voidsetErrorMessage(String message)voidsetLabel(String label)voidsetMaxlength(int maxlength)voidsetMinlength(int minlength)voidsetPattern(String pattern)sets a pattern of valid inputvoidsetPlaceholder(String placeholder)
-
-
-
Constructor Detail
-
InputField
protected InputField(String tag)
-
-
Method Detail
-
setLabel
public void setLabel(String label)
-
setPlaceholder
public void setPlaceholder(String placeholder)
-
setErrorMessage
public void setErrorMessage(String message)
-
setMinlength
public void setMinlength(int minlength)
-
setMaxlength
public void setMaxlength(int maxlength)
-
addSuffix
public void addSuffix(net.moewes.cloudui.UiComponent component)
adds a suffix component to the field- Parameters:
component- component
-
addPrefix
public void addPrefix(net.moewes.cloudui.UiComponent component)
adds a prefix component to the field- Parameters:
component- component
-
setPattern
public void setPattern(String pattern)
sets a pattern of valid input- Parameters:
pattern-
-
render
public net.moewes.cloudui.UiElement render()
- Overrides:
renderin classnet.moewes.cloudui.UiComponent
-
-