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 protected
InputField(String tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPrefix(net.moewes.cloudui.UiComponent component)
adds a prefix component to the fieldvoid
addSuffix(net.moewes.cloudui.UiComponent component)
adds a suffix component to the fieldnet.moewes.cloudui.UiElement
render()
void
setErrorMessage(String message)
void
setLabel(String label)
void
setMaxlength(int maxlength)
void
setMinlength(int minlength)
void
setPattern(String pattern)
sets a pattern of valid inputvoid
setPlaceholder(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:
render
in classnet.moewes.cloudui.UiComponent
-
-