/** * If set at init time, this dynamicForm will be created as a member form for the specified valuesManager. To * update the valuesManager to which a form belongs after init use <code>valuesManager.addMember(form)</code> and * <code>valuesManager.removeMember(form)</code> <p><b>Note : </b> This is an advanced setting</p> * * @param valuesManager valuesManager Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setValuesManager(ValuesManager valuesManager) throws IllegalStateException { setAttribute("valuesManager", valuesManager.getOrCreateJsObj(), false); }
/** * Return the ValuesManager for this form. * * @return the ValuesManager */ public ValuesManager getValuesManager() { return ValuesManager.getOrCreateRef(getAttributeAsJavaScriptObject("valuesManager")); }
/** * If this browser has a 'spellCheck' feature for text-based form item elements, should it be used for items in this form? * Can be overridden at the item level via {@link com.smartgwt.client.widgets.form.fields.FormItem#getBrowserSpellCheck * browserSpellCheck} <P> Notes:<br> - this property only applies to text based items such as TextItem and * TextAreaItem.<br> - this property is not supported on all browsers. * * @param browserSpellCheck browserSpellCheck Default value is true * @see com.smartgwt.client.widgets.form.fields.FormItem#setBrowserSpellCheck */ public void setBrowserSpellCheck(Boolean browserSpellCheck) { setAttribute("browserSpellCheck", browserSpellCheck, true); }
/** * Width of border for the table that form is drawn in. This is primarily used for debugging form layout. * * * @return int * @see com.smartgwt.client.docs.FormLayout FormLayout overview and related methods */ public int getCellBorder() { return getAttributeAsInt("cellBorder"); }
/** * If {@link com.smartgwt.client.widgets.form.DynamicForm#getShowInlineErrors showInlineErrors} is false we show all errors * for the form item in a single item rendered at the top of the form.<br> This attribute specifies the cellStyle to apply * to this item. * * * @return String * @see com.smartgwt.client.docs.Validation Validation overview and related methods */ public String getErrorItemCellStyle() { return getAttributeAsString("errorItemCellStyle"); }
/** * If {@link com.smartgwt.client.widgets.form.ColorPicker#getAutoPosition autoPosition} is false, this property controls * whether to automatically center the colorPicker every time it is reshown with the show() method. * * @param autoCenterOnShow autoCenterOnShow Default value is true * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.widgets.form.ColorPicker#setAutoPosition */ public void setAutoCenterOnShow(Boolean autoCenterOnShow) throws IllegalStateException { setAttribute("autoCenterOnShow", autoCenterOnShow, false); }
/** * The initial opacity value for the component, as a percentage value between 0 and 100 * * * @return int */ public int getDefaultOpacity() { return getAttributeAsInt("defaultOpacity"); }
/** * If enabled, whenever validation is triggered and a request to the server is required, user interactivity will be blocked * until the request returns. Can be set for the entire form or individual FormItems. <p> If false, the form will try to * avoid blocking user interaction until it is strictly required. That is until the user attempts to use a FormItem whose * state could be affected by a server request that has not yet returned. * * * @return Boolean */ public Boolean getSynchronousValidation() { return getAttributeAsBoolean("synchronousValidation"); }
/** * The label shown next to the selected color box. * * * @return String */ public String getSelectedColorLabel() { return getAttributeAsString("selectedColorLabel"); }
/** * If set to true, client-side validators will not run on the form when validate() is called. Server-side validators (if * any) will still run on attempted save. * * @param disableValidation disableValidation Default value is null * @see com.smartgwt.client.widgets.form.DynamicForm#saveData * @see com.smartgwt.client.widgets.form.DynamicForm#submit * @see com.smartgwt.client.docs.Validation Validation overview and related methods */ public void setDisableValidation(Boolean disableValidation) { setAttribute("disableValidation", disableValidation, true); }
/** * If the user rolls over an item, how long a delay before we fire any hover action / show a hover for that item? * * * @return int * @see com.smartgwt.client.widgets.form.fields.FormItem#getHoverDelay */ public int getItemHoverDelay() { return getAttributeAsInt("itemHoverDelay"); }
/** * The string prepended to the title of every required item in this form if highlightRequiredFields is true and the * titleOrientation property is set to "right". * * * @return String * @see com.smartgwt.client.docs.FormTitles FormTitles overview and related methods */ public String getRequiredRightTitlePrefix() { return getAttributeAsString("requiredRightTitlePrefix"); }
/** * The label shown next to the selected color box. * * @param selectedColorLabel selectedColorLabel Default value is "Selected Color" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setSelectedColorLabel(String selectedColorLabel) throws IllegalStateException { setAttribute("selectedColorLabel", selectedColorLabel, false); }
/** * Displayed height of the color swatch image. The default height is approximately that used by the Windows® XP color * picking window * * * @return int */ public int getSwatchHeight() { return getAttributeAsInt("swatchHeight"); }
/** * If true, form item values will be automatically saved when each item's "editorExit" handler is fired as well as when * the entire form is submitted. * * @param implicitSave implicitSave Default value is false */ public void setImplicitSave(Boolean implicitSave) { setAttribute("implicitSave", implicitSave, true); }
/** * A default height for hovers shown for items * * * @return Integer * @see com.smartgwt.client.widgets.form.fields.FormItem#getHoverHeight */ public Integer getItemHoverHeight() { return getAttributeAsInt("itemHoverHeight"); }
/** * When {@link com.smartgwt.client.widgets.form.DynamicForm#getImplicitSave implicitSave} is true, indicates that form item * values will be automatically saved after a given pause during editing, as well as when each item's "editorExit" handler * is fired and when the entire form is submitted. * * @param implicitSaveDelay implicitSaveDelay Default value is 2000 */ public void setImplicitSaveDelay(int implicitSaveDelay) { setAttribute("implicitSaveDelay", implicitSaveDelay, true); }
/** * Minimum width of a form column. * * @param minColWidth minColWidth Default value is 20 * @see com.smartgwt.client.docs.FormLayout FormLayout overview and related methods */ public void setMinColWidth(int minColWidth) { setAttribute("minColWidth", minColWidth, true); }
/** * The number of columns of titles and items in this form's layout grid. A title and corresponding item each have their own * column, so to display two form elements per row (each having a title and item), you would set this property to 4. * * @param numCols numCols Default value is 2 * @see com.smartgwt.client.docs.FormLayout FormLayout overview and related methods */ public void setNumCols(int numCols) { setAttribute("numCols", numCols, true); }
/** * The width in pixels allocated to the title of every item in this form. If you don't specify explicit {@link DynamicForm#setColWidths(Object...) colWidths}, * you can set this value to the string "*" to divide the usable space evenly between titles and fields. * * @param titleWidth the title width */ public void setTitleWidth(int titleWidth) { setAttribute("titleWidth", titleWidth, true); }