/** * Set the cellSpacing. * * @param cellSpacing the cellSpacing * @throws IllegalStateException this property cannot be changed after the component has been created * @deprecated use {@link #setCellPadding(int)} instead */ public void setCellSpacing(int cellSpacing) throws IllegalStateException { setCellPadding(cellSpacing); }
/** * 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); }