public final class InputComponents extends Object
InputComponent objects| Constructor and Description |
|---|
InputComponents() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.forge.ui.hints.InputType |
getInputType(InputComponent<?,?> input) |
static Converter<?,String> |
getItemLabelConverter(ConverterFactory converterFactory,
SelectComponent<?,?> input)
Returns the item label converter, that is
|
static Object |
getValueFor(InputComponent<?,?> component) |
static boolean |
hasValue(InputComponent<?,?> input)
Returns if there is a value set for this
InputComponent |
static void |
setValueFor(ConverterFactory converterFactory,
InputComponent<?,Object> component,
Object value)
Sets the value in the provided
InputComponent, making any necessary conversions |
static String |
validateRequired(InputComponent<?,?> input)
Validate if the input has a value.
|
public static org.jboss.forge.ui.hints.InputType getInputType(InputComponent<?,?> input)
InputType object associated to this InputComponentpublic static Object getValueFor(InputComponent<?,?> component)
InputComponentpublic static void setValueFor(ConverterFactory converterFactory, InputComponent<?,Object> component, Object value)
InputComponent, making any necessary conversionscomponent - value - public static boolean hasValue(InputComponent<?,?> input)
InputComponentpublic static String validateRequired(InputComponent<?,?> input)
input - public static Converter<?,String> getItemLabelConverter(ConverterFactory converterFactory, SelectComponent<?,?> input)
converterFactory - May be nullinput - SelectComponent or a Converter instance from the
ConverterFactory parameter if not nullCopyright © 2013 JBoss by Red Hat. All Rights Reserved.