|
Forge - UI API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.forge.ui.util.InputComponents
public final class InputComponents
Utilities for InputComponent objects
| Constructor Summary | |
|---|---|
InputComponents()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputComponents()
| Method Detail |
|---|
public static org.jboss.forge.ui.hints.InputType getInputType(InputComponent<?,?> input)
InputType object associated to this InputComponentpublic static Object getValueFor(InputComponent<?,?> component)
InputComponent
public static void setValueFor(ConverterFactory converterFactory,
InputComponent<?,Object> component,
Object value)
InputComponent, making any necessary conversions
component - value - public static boolean hasValue(InputComponent<?,?> input)
InputComponent
public 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 null
|
Forge - UI API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||