com.sencha.gxt.widget.core.client.form
Class FormPanelHelper

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.form.FormPanelHelper

public class FormPanelHelper
extends java.lang.Object

Utility methods for form panels.


Constructor Summary
FormPanelHelper()
           
 
Method Summary
static java.util.List<FieldLabel> getFieldLabels(HasWidgets container)
          Returns all of the container's child field labels.
static java.util.List<IsField<?>> getFields(HasWidgets container)
          Returns all of the container's child fields.
static boolean isValid(HasWidgets container)
          Returns true if the form is invalid.
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormPanelHelper

public FormPanelHelper()
Method Detail

getFieldLabels

public static java.util.List<FieldLabel> getFieldLabels(HasWidgets container)
Returns all of the container's child field labels. Field labels in nested containers are included in the returned list.

Parameters:
container - the container
Returns:
the fields

getFields

public static java.util.List<IsField<?>> getFields(HasWidgets container)
Returns all of the container's child fields. Fields in nested containers are included in the returned list.

Parameters:
container - the container
Returns:
the fields

isValid

public static boolean isValid(HasWidgets container)
Returns true if the form is invalid.

Returns:
true if all fields are valid

isValid

public static boolean isValid(HasWidgets container,
                              boolean preventMark)
Returns the form's valid state by querying all child fields.

Parameters:
preventMark - true for silent validation (no invalid event and field is not marked invalid)
Returns:
true if all fields are valid

reset

public static void reset(HasWidgets container)
Resets all field values.



Copyright © 2012. All Rights Reserved.