/** * Properties to combine with the {@link com.smartgwt.client.widgets.form.FilterBuilder#getFieldPicker fieldPicker} * autoChild FormItem. * * @param fieldPickerProperties fieldPickerProperties Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setFieldPickerProperties(FormItem fieldPickerProperties) throws IllegalStateException { setAttribute("fieldPickerProperties", fieldPickerProperties.getJsObj(), false); }
/** * Add a FormItem to the ToolStrip. * * @param formItem the formItem */ public void addFormItem(FormItem formItem) { DynamicForm dynamicForm = new DynamicForm(); dynamicForm.setCellPadding(3); dynamicForm.setMinWidth(50); dynamicForm.setNumCols(1); dynamicForm.setFields(formItem); applyWidth(dynamicForm.getConfig(), formItem.getJsObj()); addMember(dynamicForm); }
/** * Add a FormItem to the ToolStrip. * * @param formItem the FormItem * @param position the position in the layout to place newMember (starts with 0); if omitted, it will be added at * the last position */ public void addFormItem(FormItem formItem, int position) { DynamicForm dynamicForm = new DynamicForm(); dynamicForm.setCellPadding(3); dynamicForm.setMinWidth(50); dynamicForm.setNumCols(1); dynamicForm.setFields(formItem); applyWidth(dynamicForm.getConfig(), formItem.getJsObj()); addMember(dynamicForm, position); }