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 Object


Constructor Summary
FormPanelHelper()
           
 
Method Summary
static List<FieldLabel> getFieldLabels(HasWidgets container)
           
static List<IsField<?>> getFields(HasWidgets container)
           
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 List<FieldLabel> getFieldLabels(HasWidgets container)

getFields

public static List<IsField<?>> getFields(HasWidgets container)

isValid

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

Returns:
true if all fields are valid

reset

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


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


Copyright © 2012. All Rights Reserved.