/** * default width of this item * * @param width width Default value is 150 * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setWidth(int width) { setAttribute("width", width); }
/** * Set the length. * * @param length the length */ public void setLength(Integer length) { setAttribute("length", length); }
/** * Allows the {@link com.smartgwt.client.widgets.form.DynamicForm#getSelectOnFocus selectOnFocus} behavior to be configured * on a per-FormItem basis. Normally all items in a form default to the value of {@link * com.smartgwt.client.widgets.form.DynamicForm#getSelectOnFocus selectOnFocus}. * * @param selectOnFocus selectOnFocus Default value is null * @see com.smartgwt.client.docs.Focus Focus overview and related methods */ public void setSelectOnFocus(Boolean selectOnFocus) { setAttribute("selectOnFocus", selectOnFocus); }
/** * If showing hint for this form item, should it be shown within the field? <P>CSS style for the hint is {@link * com.smartgwt.client.widgets.form.fields.TextAreaItem#getTextBoxStyle textBoxStyle} with the suffix "Hint" appended to * it. * <p><b>Note : </b> This is an advanced setting</p> * * @param showHintInField showHintInField Default value is null * @see com.smartgwt.client.widgets.form.fields.FormItem#setHint * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setShowHintInField(Boolean showHintInField) { setAttribute("showHintInField", showHintInField); }
/** * Should this form item fire its {@link com.smartgwt.client.widgets.form.fields.FormItem#addChangeHandler change} handler * (and store its value in the form) on every keypress? Set to <code>false</code> to suppress the 'change' handler firing * (and the value stored) on every keypress. <p> Note: If <code>false</code>, the value returned by {@link * com.smartgwt.client.widgets.form.fields.FormItem#getValue getValue} will not reflect the value displayed in the form * item element as long as focus is in the form item element. * * @param changeOnKeypress changeOnKeypress Default value is true */ public void setChangeOnKeypress(Boolean changeOnKeypress) { setAttribute("changeOnKeypress", changeOnKeypress); }
/** * Minimum valid height for this TextAreaItem in px. If the specified {@link * com.smartgwt.client.widgets.form.fields.TextAreaItem#getHeight height} is less than this value, the text area will still * render at this height. * * @param minHeight minHeight Default value is 16 */ public void setMinHeight(int minHeight) { setAttribute("minHeight", minHeight); }
/** * When generating a print-view of the component containing this TextArea, should the form item expand to accomodate its * value? If set to false the text box not expand to fit its content in the print view, instead showing exactly as it does * in the live form, possibly with scrollbars. * * @param printFullText printFullText Default value is true * @see com.smartgwt.client.docs.Printing Printing overview and related methods */ public void setPrintFullText(Boolean printFullText) { setAttribute("printFullText", printFullText); }
/** * default height of this item * * @param height height Default value is 100 * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setHeight(int height) { setAttribute("height", height); }
/** * Base CSS class to apply to this item's input element. NOTE: See the {@link CompoundFormItem_skinning} discussion for * special skinning considerations. * * @param textBoxStyle textBoxStyle Default value is "textItem" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setTextBoxStyle(String textBoxStyle) { setAttribute("textBoxStyle", textBoxStyle); }
public TextAreaItem(){ setAttribute("editorType", "TextAreaItem"); }
public TextAreaItem(String name) { setName(name); setAttribute("editorType", "TextAreaItem"); }
/** * Align icons with the top edge of text area icons by default. * * @param iconVAlign iconVAlign Default value is Canvas.TOP */ public void setIconVAlign(VerticalAlignment iconVAlign) { setAttribute("iconVAlign", iconVAlign.getValue()); }
/** * Text wrapping style. * * @param wrap wrap Default value is {@link TextAreaWrap#SOFT} */ public void setWrap(TextAreaWrap wrap) { setAttribute("wrap", wrap.getValue()); }
public TextAreaItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "TextAreaItem"); }