|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.CheckboxItem
public class CheckboxItem
Checkbox form item, implemented with customizeable checkbox images
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
CheckboxItem()
|
|
CheckboxItem(JavaScriptObject jsObj)
|
|
CheckboxItem(String name)
|
|
CheckboxItem(String name,
String title)
|
Method Summary | |
---|---|
Boolean |
getAllowEmptyValue()
By default checkboxes allow the user to toggle between true and false values only. |
String |
getCheckedImage()
URL for the image to display when this checkbox is selected, or checked. |
Boolean |
getLabelAsTitle()
By default a checkboxItem sets showTitle :true,
and so takes up two cells with the default TitleOrientation of "left" (see 'form layout overview' ). |
static CheckboxItem |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowLabel()
Should we should the label text next to the checkbox item. |
Boolean |
getShowTitle()
CheckboxItem has special behavior for titles, see labelAsTitle . |
String |
getTextBoxStyle()
Base CSS class for this item's title text |
String |
getTitleStyle()
Base CSS class for this item's title cell. |
String |
getUncheckedImage()
URL for the image to display when this checkbox is not selected, or unchecked |
String |
getUnsetImage()
URL for the image to display when this checkbox is unset. |
Boolean |
getValueAsBoolean()
Return the value of the checkbox as a boolean |
void |
setAllowEmptyValue(Boolean allowEmptyValue)
By default checkboxes allow the user to toggle between true and false values only. |
void |
setCheckedImage(String checkedImage)
URL for the image to display when this checkbox is selected, or checked. |
void |
setLabelAsTitle(Boolean labelAsTitle)
By default a checkboxItem sets showTitle :true,
and so takes up two cells with the default TitleOrientation of "left" (see 'form layout overview' ). |
void |
setShowLabel(Boolean showLabel)
Should we should the label text next to the checkbox item. |
void |
setShowTitle(Boolean showTitle)
CheckboxItem has special behavior for titles, see labelAsTitle . |
void |
setShowUnsetImage(Boolean showUnsetImage)
Determines what image to display when the value for this checkbox is unset. |
void |
setTextBoxStyle(String textBoxStyle)
Base CSS class for this item's title text |
void |
setTitleStyle(String titleStyle)
Base CSS class for this item's title cell. |
void |
setUncheckedImage(String uncheckedImage)
URL for the image to display when this checkbox is not selected, or unchecked |
void |
setUnsetImage(String unsetImage)
URL for the image to display when this checkbox is unset. |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public CheckboxItem()
public CheckboxItem(JavaScriptObject jsObj)
public CheckboxItem(String name)
public CheckboxItem(String name, String title)
Method Detail |
---|
public static CheckboxItem getOrCreateRef(JavaScriptObject jsObj)
public void setTitleStyle(String titleStyle)
Note: This styling applies to the standard form item title cell
for this item - it does not apply to item's 'label'
. To modify the styling for that text, use textBoxStyle
instead.
setTitleStyle
in class FormItem
titleStyle
- titleStyle Default value is nullpublic String getTitleStyle()
Note: This styling applies to the standard form item title cell
for this item - it does not apply to item's 'label'
. To modify the styling for that text, use textBoxStyle
instead.
getTitleStyle
in class FormItem
public void setTextBoxStyle(String textBoxStyle)
setTextBoxStyle
in class FormItem
textBoxStyle
- textBoxStyle Default value is "labelAnchor"public String getTextBoxStyle()
getTextBoxStyle
in class FormItem
public void setShowTitle(Boolean showTitle)
labelAsTitle
.
setShowTitle
in class FormItem
showTitle
- showTitle Default value is truepublic Boolean getShowTitle()
labelAsTitle
.
getShowTitle
in class FormItem
public void setLabelAsTitle(Boolean labelAsTitle)
showTitle
:true,
and so takes up two cells with the default TitleOrientation
of "left" (see 'form layout overview'
). However, the title cell is left blank by default, and the
title specified by title
is shown inside the
formItem's cell instead, in an element called the "label". To instead show the title in it's original location, set
labelAsTitle:true
. You can also set showLabel
:false to suppress the label and/or title
altogether.
labelAsTitle
- labelAsTitle Default value is nullpublic Boolean getLabelAsTitle()
showTitle
:true,
and so takes up two cells with the default TitleOrientation
of "left" (see 'form layout overview'
). However, the title cell is left blank by default, and the
title specified by title
is shown inside the
formItem's cell instead, in an element called the "label". To instead show the title in it's original location, set
labelAsTitle:true
. You can also set showLabel
:false to suppress the label and/or title
altogether.
public void setShowLabel(Boolean showLabel)
showLabel
- showLabel Default value is truepublic Boolean getShowLabel()
public void setCheckedImage(String checkedImage)
showValueIconOver
et al are set, the state ("Over"
, "Down"
and
"Disabled"
) will be added to this name as the user intereacts with the checkbox, as well as the
".gif"
extension
checkedImage
- checkedImage Default value is "[SKIN]/DynamicForm/checked.gif"public String getCheckedImage()
showValueIconOver
et al are set, the state ("Over"
, "Down"
and
"Disabled"
) will be added to this name as the user intereacts with the checkbox, as well as the
".gif"
extension
public void setUncheckedImage(String uncheckedImage)
uncheckedImage
- uncheckedImage Default value is "[SKIN]/DynamicForm/unchecked.gif"public String getUncheckedImage()
public void setUnsetImage(String unsetImage)
showUnsetImage
is false or allowEmptyValue
is false the uncheckedImage
will be used for null values
rather than this image.
unsetImage
- unsetImage Default value is "[SKIN]/DynamicForm/unsetcheck.gif"public String getUnsetImage()
showUnsetImage
is false or allowEmptyValue
is false the uncheckedImage
will be used for null values
rather than this image.
public void setAllowEmptyValue(Boolean allowEmptyValue)
true
, false
and unset.
allowEmptyValue
- allowEmptyValue Default value is falsepublic Boolean getAllowEmptyValue()
true
, false
and unset.
public void setShowUnsetImage(Boolean showUnsetImage)
unsetImage
for null values, or false to use the uncheckedImage
for both null and explicitly unchecked values. If this attribute is not set, the unsetImage
for null values if allowEmptyValue
is true for this item, otherwise the unchecked image will be used.
showUnsetImage
- showUnsetImage Default value is IRApublic Boolean getValueAsBoolean()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |