/** * URL for the image to display when this checkbox is selected, or checked. This is the base image name - if * <code>showValueIconOver</code> et al are set, the state (<code>"Over"</code>, <code>"Down"</code> and * <code>"Disabled"</code>) will be added to this name as the user interacts with the checkbox, as well as the * <code>".gif"</code> extension * * @param checkedImage checkedImage Default value is "[SKIN]/DynamicForm/checked.gif" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setCheckedImage(String checkedImage) { setAttribute("checkedImage", checkedImage); }
/** * URL for the image to display when this checkbox is partially selected * * @param partialSelectedImage partialSelectedImage Default value is "[SKIN]/DynamicForm/partialcheck.gif" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setPartialSelectedImage(String partialSelectedImage) { setAttribute("partialSelectedImage", partialSelectedImage); }
/** * Base CSS class for this item's title text * * @param textBoxStyle textBoxStyle Default value is "labelAnchor" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setTextBoxStyle(String textBoxStyle) { setAttribute("textBoxStyle", textBoxStyle); }
/** * URL for the image to display when this checkbox is not selected, or unchecked * * @param uncheckedImage uncheckedImage Default value is "[SKIN]/DynamicForm/unchecked.gif" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setUncheckedImage(String uncheckedImage) { setAttribute("uncheckedImage", uncheckedImage); }
/** * CheckboxItem has special behavior for titles, see {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getLabelAsTitle labelAsTitle}. * * @param showTitle showTitle Default value is true */ public void setShowTitle(Boolean showTitle) { setAttribute("showTitle", showTitle); }
/** * By default checkboxes allow the user to toggle between true and false values only. Setting this property to true will * allow the user to toggle between three values - <code>true</code>, <code>false</code> and unset. * * @param allowEmptyValue allowEmptyValue Default value is false */ public void setAllowEmptyValue(Boolean allowEmptyValue) { setAttribute("allowEmptyValue", allowEmptyValue); }
/** * Should we should the label text next to the checkbox item. * * @param showLabel showLabel Default value is true */ public void setShowLabel(Boolean showLabel) { setAttribute("showLabel", showLabel); }
/** * Base CSS class for this item's title cell. <P> <B>Note:</B> This styling applies to the standard form item title cell * for this item - it does not apply to item's {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getShowLabel * label}. To modify the styling for that text, use {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getTextBoxStyle textBoxStyle} instead. * * @param titleStyle titleStyle Default value is null * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setTitleStyle(String titleStyle) { setAttribute("titleStyle", titleStyle); }
/** * Determines what image to display when the value for this checkbox is unset. Set to true to display the {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getUnsetImage unsetImage} for null values, or false to use the {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getUncheckedImage uncheckedImage} for both null and explicitly unchecked values. <P> If this attribute is not set, the {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getUnsetImage unsetImage} for null values if {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getAllowEmptyValue allowEmptyValue} is true for this item, otherwise the unchecked image will be used. * * @param showUnsetImage showUnsetImage Default value is IRA */ public void setShowUnsetImage(Boolean showUnsetImage) { setAttribute("showUnsetImage", showUnsetImage); }
/** * URL for the image to display when this checkbox is unset. Note that if {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getShowUnsetImage showUnsetImage} is false or {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getAllowEmptyValue allowEmptyValue} is false the {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getUncheckedImage uncheckedImage} will be used for null values * rather than this image. * * @param unsetImage unsetImage Default value is "[SKIN]/DynamicForm/unsetcheck.gif" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setUnsetImage(String unsetImage) { setAttribute("unsetImage", unsetImage); }
public CheckboxItem(){ setAttribute("editorType", "CheckboxItem"); }
/** * By default a checkboxItem sets {@link com.smartgwt.client.widgets.form.fields.CheckboxItem#getShowTitle showTitle}:true, * and so takes up two cells with the default {@link com.smartgwt.client.types.TitleOrientation} of "left" (see {@link * com.smartgwt.client.docs.FormLayout form layout overview}). However, the title cell is left blank by default, and the * title specified by {@link com.smartgwt.client.widgets.form.fields.FormItem#getTitle title} is shown inside the * formItem's cell instead, in an element called the "label". <P> To instead show the title in it's original location, set * <code>labelAsTitle:true</code>. You can also set {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getShowLabel showLabel}:false to suppress the label and/or title * altogether. * * @param labelAsTitle labelAsTitle Default value is null */ public void setLabelAsTitle(Boolean labelAsTitle) { setAttribute("labelAsTitle", labelAsTitle); }
public CheckboxItem(String name) { setName(name); setAttribute("editorType", "CheckboxItem"); }
public CheckboxItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "CheckboxItem"); }