org.broadleafcommerce.openadmin.client.view.dynamic.form
Class FormBuilder

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.view.dynamic.form.FormBuilder

public class FormBuilder
extends java.lang.Object

Author:
jfischer

Constructor Summary
FormBuilder()
           
 
Method Summary
protected static com.smartgwt.client.widgets.form.fields.FormItem buildDisplayField(com.smartgwt.client.data.DataSourceField field, java.lang.String fieldType)
           
protected static com.smartgwt.client.widgets.form.fields.FormItem buildField(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.data.DataSourceField field, java.lang.String fieldType, java.lang.Boolean largeEntry)
           
static void buildForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, java.lang.Boolean showId)
           
static void buildForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, java.lang.Boolean showDisabledState, java.lang.Boolean canEdit, java.lang.Boolean showId)
           
static void buildMapForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, MapStructure mapStructure, java.util.LinkedHashMap<java.lang.String,java.lang.String> mapKeys, java.lang.Boolean showId)
           
protected static void checkForPasswordField(java.lang.Boolean showDisabledState, java.lang.Boolean canEdit, java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, java.util.Map<java.lang.String,java.lang.Integer> sectionNames, com.smartgwt.client.data.DataSourceField field, java.lang.String group, java.lang.Integer groupOrder, com.smartgwt.client.widgets.form.fields.FormItem formItem, com.smartgwt.client.widgets.form.fields.FormItem displayFormItem, com.smartgwt.client.widgets.form.DynamicForm form)
           
protected static void groupFields(com.smartgwt.client.widgets.form.DynamicForm form, java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, java.util.Map<java.lang.String,java.lang.Integer> sectionNames)
           
protected static void setupField(java.lang.Boolean showDisabledState, java.lang.Boolean canEdit, java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, java.util.Map<java.lang.String,java.lang.Integer> sectionNames, com.smartgwt.client.data.DataSourceField field, java.lang.String group, java.lang.Integer groupOrder, com.smartgwt.client.widgets.form.fields.FormItem formItem, com.smartgwt.client.widgets.form.fields.FormItem displayFormItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormBuilder

public FormBuilder()
Method Detail

buildForm

public static void buildForm(com.smartgwt.client.data.DataSource dataSource,
                             com.smartgwt.client.widgets.form.DynamicForm form,
                             java.lang.Boolean showId)

buildForm

public static void buildForm(com.smartgwt.client.data.DataSource dataSource,
                             com.smartgwt.client.widgets.form.DynamicForm form,
                             java.lang.Boolean showDisabledState,
                             java.lang.Boolean canEdit,
                             java.lang.Boolean showId)

buildMapForm

public static void buildMapForm(com.smartgwt.client.data.DataSource dataSource,
                                com.smartgwt.client.widgets.form.DynamicForm form,
                                MapStructure mapStructure,
                                java.util.LinkedHashMap<java.lang.String,java.lang.String> mapKeys,
                                java.lang.Boolean showId)

groupFields

protected static void groupFields(com.smartgwt.client.widgets.form.DynamicForm form,
                                  java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections,
                                  java.util.Map<java.lang.String,java.lang.Integer> sectionNames)

setupField

protected static void setupField(java.lang.Boolean showDisabledState,
                                 java.lang.Boolean canEdit,
                                 java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections,
                                 java.util.Map<java.lang.String,java.lang.Integer> sectionNames,
                                 com.smartgwt.client.data.DataSourceField field,
                                 java.lang.String group,
                                 java.lang.Integer groupOrder,
                                 com.smartgwt.client.widgets.form.fields.FormItem formItem,
                                 com.smartgwt.client.widgets.form.fields.FormItem displayFormItem)

checkForPasswordField

protected static void checkForPasswordField(java.lang.Boolean showDisabledState,
                                            java.lang.Boolean canEdit,
                                            java.util.Map<java.lang.String,java.util.List<com.smartgwt.client.widgets.form.fields.FormItem>> sections,
                                            java.util.Map<java.lang.String,java.lang.Integer> sectionNames,
                                            com.smartgwt.client.data.DataSourceField field,
                                            java.lang.String group,
                                            java.lang.Integer groupOrder,
                                            com.smartgwt.client.widgets.form.fields.FormItem formItem,
                                            com.smartgwt.client.widgets.form.fields.FormItem displayFormItem,
                                            com.smartgwt.client.widgets.form.DynamicForm form)

buildDisplayField

protected static com.smartgwt.client.widgets.form.fields.FormItem buildDisplayField(com.smartgwt.client.data.DataSourceField field,
                                                                                    java.lang.String fieldType)

buildField

protected static com.smartgwt.client.widgets.form.fields.FormItem buildField(com.smartgwt.client.data.DataSource dataSource,
                                                                             com.smartgwt.client.data.DataSourceField field,
                                                                             java.lang.String fieldType,
                                                                             java.lang.Boolean largeEntry)


Copyright © 2011. All Rights Reserved.