public class FormPanelHelper extends Object
Constructor and Description |
---|
FormPanelHelper() |
Modifier and Type | Method and Description |
---|---|
static List<FieldLabel> |
getFieldLabels(HasWidgets container)
Returns all of the container's child field labels.
|
static List<IsField<?>> |
getFields(HasWidgets container)
Returns all of the container's child fields.
|
static boolean |
isValid(HasWidgets container)
Returns true if the form is valid.
|
static boolean |
isValid(HasWidgets container,
boolean preventMark)
Returns the form's valid state by querying all child fields.
|
static void |
reset(HasWidgets container)
Resets all field values.
|
public static List<FieldLabel> getFieldLabels(HasWidgets container)
container
- the containerpublic static List<IsField<?>> getFields(HasWidgets container)
container
- the containerpublic static boolean isValid(HasWidgets container)
public static boolean isValid(HasWidgets container, boolean preventMark)
preventMark
- true for silent validation (no invalid event and field
is not marked invalid)public static void reset(HasWidgets container)
Copyright © 2015. All rights reserved.