/** * CheckboxItem has special behavior for titles, see {@link * com.smartgwt.client.widgets.form.fields.CheckboxItem#getLabelAsTitle labelAsTitle}. * * * @return Boolean */ public Boolean getShowTitle() { return getAttributeAsBoolean("showTitle"); }
/** * Should we should the label text next to the checkbox item. * * * @return Boolean */ public Boolean getShowLabel() { return getAttributeAsBoolean("showLabel"); }
/** * 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. * * * @return Boolean */ public Boolean getAllowEmptyValue() { return getAttributeAsBoolean("allowEmptyValue"); }
/** * 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. * * * @return Boolean */ public Boolean getLabelAsTitle() { return getAttributeAsBoolean("labelAsTitle"); }