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 Object

Author:
jfischer

Constructor Summary
FormBuilder()
           
 
Method Summary
static void buildAdvancedCollectionForm(com.smartgwt.client.data.DataSource dataSource, CollectionMetadata metadata, String propertyName, DynamicEntityPresenter presenter)
           
static void buildAdvancedCollectionForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.data.DataSource lookupDataSource, CollectionMetadata metadata, String propertyName, DynamicEntityPresenter presenter)
           
protected static com.smartgwt.client.widgets.form.fields.FormItem buildDisplayField(com.smartgwt.client.data.DataSourceField field, String fieldType)
           
static com.smartgwt.client.widgets.form.fields.FormItem buildField(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.data.DataSourceField field, String fieldType, Boolean largeEntry, com.smartgwt.client.widgets.form.DynamicForm form)
           
static void buildForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, Boolean showDisabledState, Boolean canEdit, Boolean showId, com.smartgwt.client.data.Record currentRecord)
           
static void buildForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, Boolean showId, com.smartgwt.client.data.Record currentRecord)
           
static void buildMapForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, MapStructure mapStructure, com.smartgwt.client.data.DataSource optionDataSource, String displayField, String valueField, Boolean showId, com.smartgwt.client.data.Record currentRecord)
           
static void buildMapForm(com.smartgwt.client.data.DataSource dataSource, com.smartgwt.client.widgets.form.DynamicForm form, MapStructure mapStructure, LinkedHashMap<String,String> mapKeys, Boolean showId, com.smartgwt.client.data.Record currentRecord)
           
protected static void checkForPasswordField(Boolean showDisabledState, Boolean canEdit, Map<String,List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, Map<String,Integer> sectionNames, com.smartgwt.client.data.DataSourceField field, String group, 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)
           
static com.smartgwt.client.widgets.layout.Layout findMemberById(com.smartgwt.client.widgets.layout.Layout parent, String id)
           
static com.smartgwt.client.widgets.tab.TabSet findTabSetById(com.smartgwt.client.widgets.layout.Layout parent, String id)
           
protected static void groupFields(com.smartgwt.client.widgets.form.DynamicForm form, Map<String,List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, Map<String,Integer> sectionNames, Map<String,Boolean> sectionCollapsed)
           
protected static void setupField(Boolean showDisabledState, Boolean canEdit, Map<String,List<com.smartgwt.client.widgets.form.fields.FormItem>> sections, Map<String,Integer> sectionNames, com.smartgwt.client.data.DataSourceField field, String group, 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

findMemberById

public static com.smartgwt.client.widgets.layout.Layout findMemberById(com.smartgwt.client.widgets.layout.Layout parent,
                                                                       String id)

findTabSetById

public static com.smartgwt.client.widgets.tab.TabSet findTabSetById(com.smartgwt.client.widgets.layout.Layout parent,
                                                                    String id)

buildAdvancedCollectionForm

public static void buildAdvancedCollectionForm(com.smartgwt.client.data.DataSource dataSource,
                                               com.smartgwt.client.data.DataSource lookupDataSource,
                                               CollectionMetadata metadata,
                                               String propertyName,
                                               DynamicEntityPresenter presenter)

buildAdvancedCollectionForm

public static void buildAdvancedCollectionForm(com.smartgwt.client.data.DataSource dataSource,
                                               CollectionMetadata metadata,
                                               String propertyName,
                                               DynamicEntityPresenter presenter)

buildForm

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

buildForm

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

buildMapForm

public static void buildMapForm(com.smartgwt.client.data.DataSource dataSource,
                                com.smartgwt.client.widgets.form.DynamicForm form,
                                MapStructure mapStructure,
                                com.smartgwt.client.data.DataSource optionDataSource,
                                String displayField,
                                String valueField,
                                Boolean showId,
                                com.smartgwt.client.data.Record currentRecord)

buildMapForm

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

groupFields

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

setupField

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

checkForPasswordField

protected static void checkForPasswordField(Boolean showDisabledState,
                                            Boolean canEdit,
                                            Map<String,List<com.smartgwt.client.widgets.form.fields.FormItem>> sections,
                                            Map<String,Integer> sectionNames,
                                            com.smartgwt.client.data.DataSourceField field,
                                            String group,
                                            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,
                                                                                    String fieldType)

buildField

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


Copyright © 2013. All Rights Reserved.