public class CheckboxItem extends FormItem
id
Constructor and Description |
---|
CheckboxItem() |
CheckboxItem(com.google.gwt.core.client.JavaScriptObject jsObj) |
CheckboxItem(java.lang.String name) |
CheckboxItem(java.lang.String name,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
static void |
changePickerIconDefaults(FormItemIcon defaults) |
java.lang.Boolean |
getAllowEmptyValue()
By default checkboxes allow the user to toggle between true and false values only.
|
java.lang.String |
getCheckedImage()
URL for the image to display when this checkbox is selected, or checked.
|
java.lang.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(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getPartialSelectedImage()
URL for the image to display when this checkbox is partially selected
|
java.lang.Boolean |
getShowLabel()
Should we show the label text next to the checkbox item.
|
java.lang.Boolean |
getShowTitle()
CheckboxItem has special behavior for titles, see
labelAsTitle . |
java.lang.Boolean |
getShowValueIconDisabled()
Should a "Disabled" state icon be shown when the item is disabled
|
java.lang.Boolean |
getShowValueIconDown()
Should a "Down" state icon be shown when the mouse goes down over this checkbox
|
java.lang.Boolean |
getShowValueIconOver()
Should an "Over" state icon be shown when the user rolls over this checkbox
|
java.lang.String |
getTextBoxStyle()
Base CSS class for this item's title text
|
java.lang.String |
getTitleStyle()
Base CSS class for this item's title cell.
|
java.lang.String |
getUncheckedImage()
URL for the image to display when this checkbox is not selected, or unchecked
|
java.lang.String |
getUnsetImage()
URL for the image to display when this checkbox is unset.
|
java.lang.Boolean |
getValueAsBoolean()
Return the value of the checkbox as a boolean
|
void |
setAllowEmptyValue(java.lang.Boolean allowEmptyValue)
By default checkboxes allow the user to toggle between true and false values only.
|
void |
setCheckedImage(java.lang.String checkedImage)
URL for the image to display when this checkbox is selected, or checked.
|
static void |
setDefaultProperties(CheckboxItem checkboxItemProperties)
Class level method to set the default properties of this class.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setLabelAsTitle(java.lang.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 |
setPartialSelectedImage(java.lang.String partialSelectedImage)
URL for the image to display when this checkbox is partially selected
|
void |
setShowLabel(java.lang.Boolean showLabel)
Should we show the label text next to the checkbox item.
|
void |
setShowTitle(java.lang.Boolean showTitle)
CheckboxItem has special behavior for titles, see
labelAsTitle . |
void |
setShowUnsetImage(java.lang.Boolean showUnsetImage)
Determines what image to display when the value for this checkbox is unset.
|
void |
setShowValueIconDisabled(java.lang.Boolean showValueIconDisabled)
Should a "Disabled" state icon be shown when the item is disabled
|
void |
setShowValueIconDown(java.lang.Boolean showValueIconDown)
Should a "Down" state icon be shown when the mouse goes down over this checkbox
|
void |
setShowValueIconOver(java.lang.Boolean showValueIconOver)
Should an "Over" state icon be shown when the user rolls over this checkbox
|
void |
setTextBoxStyle(java.lang.String textBoxStyle)
Base CSS class for this item's title text
|
void |
setTitleStyle(java.lang.String titleStyle)
Base CSS class for this item's title cell.
|
void |
setUncheckedImage(java.lang.String uncheckedImage)
URL for the image to display when this checkbox is not selected, or unchecked
|
void |
setUnsetImage(java.lang.String unsetImage)
URL for the image to display when this checkbox is unset.
|
_getValue, addBlurHandler, addChangedHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addEditorEnterHandler, addEditorExitHandler, addFocusHandler, addIconClickHandler, addIconKeyPressHandler, addItemHoverHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addPickerIconClickHandler, addTitleClickHandler, addTitleDoubleClickHandler, addTitleHoverHandler, addValueHoverHandler, asSGWTComponent, blurItem, canEditCriterion, clearValue, disable, enable, focusInItem, getAccessKey, getAlign, getAllowExpressions, getAlwaysFetchMissingValues, getApplyHeightToTextBox, getAriaRole, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsString, getBrowserSpellCheck, getCanEdit, getCanFocus, getCanvasAutoChild, getCellHeight, getCellStyle, getClassName, getClipStaticValue, getClipTitle, getConfig, getContainerWidget, getCriteriaField, getCriterion, getCriterion, getDataPath, getDateFormatter, getDecimalPad, getDecimalPrecision, getDefaultIconSrc, getDisabled, getDisableIconsOnReadOnly, getDisplayField, getDisplayFieldName, getDisplayValue, getDisplayValue, getEditorTypeConfig, getEditPendingCSSText, getEmptyDisplayValue, getEmptyValueIcon, getEndRow, getErrorIconHeight, getErrorIconSrc, getErrorIconWidth, getErrorMessageWidth, getFetchMissingValues, getFieldName, getFilterLocally, getForm, getFormItemAutoChild, getFullDataPath, getGlobalTabIndex, getHeight, getHint, getHintStyle, getHoverAlign, getHoverDelay, getHoverHeight, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getIcon, getIconHeight, getIconHSpace, getIconPageRect, getIconPrompt, getIconRect, getIconVAlign, getIconWidth, getImageURLPrefix, getImageURLSuffix, getImplicitSave, getImplicitSaveOnBlur, getInputFormat, getLeft, getLocateItemBy, getMultipleValueSeparator, getName, getOperator, getOptionCriteria, getOptionFilterContext, getOptionOperationId, getPageLeft, getPageRect, getPageTop, getPicker, getPickerIconHeight, getPickerIconName, getPickerIconPrompt, getPickerIconProperties, getPickerIconSrc, getPickerIconStyle, getPickerIconWidth, getPrintTextBoxStyle, getPrintTitleStyle, getPrompt, getReadOnlyDisplay, getReadOnlyTextBoxStyle, getRect, getRedrawOnChange, getRejectInvalidValueOnChange, getRequired, getRequiredMessage, getRowSpan, getSaveOnEnter, getSelectedRecord, getSelectOnClick, getSelectOnFocus, getShouldSaveValue, getShowClippedTitleOnHover, getShowClippedValueOnHover, getShowDisabled, getShowErrorIcon, getShowErrorStyle, getShowErrorText, getShowFocused, getShowFocusedErrorState, getShowFocusedIcons, getShowFocusedPickerIcon, getShowHint, getShowIcons, getShowOverIcons, getShowPickerIcon, getShowRTL, getShowValueIconOnly, getStartRow, getStopOnError, getSuppressValueIcon, getSynchronousValidation, getTabIndex, getTextAlign, getTimeFormatter, getTitle, getTitleAlign, getTitleColSpan, getTitleOrientation, getTitleVAlign, getTooltip, getTop, getType, getValidateOnChange, getValidateOnExit, getValidOperators, getVAlign, getValue, getValueAsRecordList, getValueField, getValueFieldName, getValueIconHeight, getValueIconLeftPadding, getValueIconRightPadding, getValueIconSize, getValueIconWidth, getVisible, getVisibleHeight, getVisibleWidth, getWidth, getWrapTitle, hasAdvancedCriteria, hide, hideIcon, invalidateDisplayValueCache, isCreated, isDisabled, isDrawn, isVisible, redraw, setAccessKey, setAlign, setAllowExpressions, setAlwaysFetchMissingValues, setApplyHeightToTextBox, setAriaRole, setAriaState, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setBrowserSpellCheck, setCanEdit, setCanEditCriterionPredicate, setCanFocus, setCellHeight, setCellStyle, setClipStaticValue, setClipTitle, setColSpan, setColSpan, setCriteriaField, setCriterion, setCriterionGetter, setCriterionSetter, setDataPath, setDateFormatter, setDecimalPad, setDecimalPrecision, setDefaultIconSrc, setDefaultProperties, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDisabled, setDisableIconsOnReadOnly, setDisplayField, setDisplayFormat, setDisplayFormat, setEditorProperties, setEditorType, setEditorType, setEditorType, setEditorValueFormatter, setEditorValueParser, setEditPendingCSSText, setEmptyDisplayValue, setEmptyValueIcon, setEndRow, setErrorFormatter, setErrorIconHeight, setErrorIconSrc, setErrorIconWidth, setErrorMessageWidth, setErrorOrientation, setFetchMissingValues, setFilterLocally, setGlobalTabIndex, setHeight, setHeight, setHint, setHintStyle, setHoverAlign, setHoverDelay, setHoverHeight, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setIconHeight, setIconHSpace, setIconPrompt, setIcons, setIconVAlign, setIconWidth, setImageURLPrefix, setImageURLSuffix, setImplicitSave, setImplicitSaveOnBlur, setInitHandler, setInputFormat, setInputTransformer, setItemHoverFormatter, setItemTitleHoverFormatter, setItemValueHoverFormatter, setLeft, setLocateItemBy, setMultipleValueSeparator, setName, setOperator, setOptionCriteria, setOptionDataSource, setOptionFilterContext, setOptionOperationId, setPickerIconHeight, setPickerIconName, setPickerIconPrompt, setPickerIconProperties, setPickerIconSrc, setPickerIconStyle, setPickerIconWidth, setPrintTextBoxStyle, setPrintTitleStyle, setPrompt, setProperty, setProperty, setProperty, setProperty, setProperty, setReadOnlyDisplay, setReadOnlyTextBoxStyle, setRedrawOnChange, setRejectInvalidValueOnChange, setRequired, setRequiredMessage, setRowSpan, setSaveOnEnter, setSelectOnClick, setSelectOnFocus, setShouldSaveValue, setShowClippedTitleOnHover, setShowClippedValueOnHover, setShowDisabled, setShowErrorIcon, setShowErrorStyle, setShowErrorText, setShowFocused, setShowFocusedErrorState, setShowFocusedIcons, setShowFocusedPickerIcon, setShowHint, setShowIcons, setShowIfCondition, setShowOverIcons, setShowPickerIcon, setShowRTL, setShowValueIconOnly, setStartRow, setStopOnError, setSuppressValueIcon, setSynchronousValidation, setTabIndex, setTextAlign, setTimeFormatter, setTitle, setTitleAlign, setTitleColSpan, setTitleHoverFormatter, setTitleOrientation, setTitleVAlign, setTooltip, setTop, setType, setValidateOnChange, setValidateOnExit, setValidators, setValidOperators, setVAlign, setValue, setValue, setValue, setValue, setValue, setValue, setValueField, setValueFormatter, setValueHoverFormatter, setValueIconHeight, setValueIconLeftPadding, setValueIconMapper, setValueIconRightPadding, setValueIcons, setValueIconSize, setValueIconWidth, setValueMap, setValueMap, setVisible, setWidth, setWidth, setWrapTitle, shouldApplyHeightToTextBox, shouldFetchMissingValue, shouldSaveOnEnter, show, showIcon, showPicker, stopHover, updateState, validate, valueClipped
getRef, getRef, internalSetID
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject
public CheckboxItem()
public CheckboxItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public CheckboxItem(java.lang.String name)
public CheckboxItem(java.lang.String name, java.lang.String title)
public static CheckboxItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class FormItem
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties.AutoChildUsage
public static void changePickerIconDefaults(FormItemIcon defaults)
public void setAllowEmptyValue(java.lang.Boolean allowEmptyValue)
true
, false
and unset.allowEmptyValue
- allowEmptyValue Default value is falsepublic java.lang.Boolean getAllowEmptyValue()
true
, false
and unset.public void setCheckedImage(java.lang.String checkedImage)
This image is implemented using the valueIcons subsystem
, and may be modified via the
standard valueIcons properties such as valueIconWidth
Note that this is the base image name - if showValueIconOver
et al are set, the state
("Over"
, "Down"
and "Disabled"
) will be added to this name as the user interacts
with the checkbox, as well as the ".gif"
extension
checkedImage
- . See SCImgURL
. Default value is "[SKIN]/DynamicForm/checked.gif"Appearance overview and related methods
public java.lang.String getCheckedImage()
This image is implemented using the valueIcons subsystem
, and may be modified via the
standard valueIcons properties such as valueIconWidth
Note that this is the base image name - if showValueIconOver
et al are set, the state
("Over"
, "Down"
and "Disabled"
) will be added to this name as the user interacts
with the checkbox, as well as the ".gif"
extension
SCImgURL
Appearance overview and related methods
public void setLabelAsTitle(java.lang.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 java.lang.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 setPartialSelectedImage(java.lang.String partialSelectedImage)
partialSelectedImage
- . See SCImgURL
. Default value is "[SKIN]/DynamicForm/partialcheck.gif"Appearance overview and related methods
public java.lang.String getPartialSelectedImage()
SCImgURL
Appearance overview and related methods
public void setShowLabel(java.lang.Boolean showLabel)
showLabel
- showLabel Default value is truepublic java.lang.Boolean getShowLabel()
public void setShowTitle(java.lang.Boolean showTitle)
labelAsTitle
.setShowTitle
in class FormItem
showTitle
- showTitle Default value is truepublic java.lang.Boolean getShowTitle()
labelAsTitle
.getShowTitle
in class FormItem
public void setShowValueIconDisabled(java.lang.Boolean showValueIconDisabled)
Note : This is an advanced setting
showValueIconDisabled
- showValueIconDisabled Default value is truepublic java.lang.Boolean getShowValueIconDisabled()
public void setShowValueIconDown(java.lang.Boolean showValueIconDown)
Note : This is an advanced setting
showValueIconDown
- showValueIconDown Default value is truepublic java.lang.Boolean getShowValueIconDown()
public void setShowValueIconOver(java.lang.Boolean showValueIconOver)
Note : This is an advanced setting
showValueIconOver
- showValueIconOver Default value is truepublic java.lang.Boolean getShowValueIconOver()
public void setTextBoxStyle(java.lang.String textBoxStyle)
setTextBoxStyle
in class FormItem
textBoxStyle
- . See FormItemBaseStyle
. Default value is "labelAnchor"Appearance overview and related methods
public java.lang.String getTextBoxStyle()
getTextBoxStyle
in class FormItem
FormItemBaseStyle
Appearance overview and related methods
public void setTitleStyle(java.lang.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
- . See FormItemBaseStyle
. Default value is nullAppearance overview and related methods
public java.lang.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
FormItemBaseStyle
Appearance overview and related methods
public void setUncheckedImage(java.lang.String uncheckedImage)
uncheckedImage
- . See SCImgURL
. Default value is "[SKIN]/DynamicForm/unchecked.gif"Appearance overview and related methods
public java.lang.String getUncheckedImage()
SCImgURL
Appearance overview and related methods
public void setUnsetImage(java.lang.String unsetImage)
showUnsetImage
is false or allowEmptyValue
is false the uncheckedImage
will be used for null values
rather than this image.unsetImage
- . See SCImgURL
. Default value is "[SKIN]/DynamicForm/unsetcheck.gif"Appearance overview and related methods
public java.lang.String getUnsetImage()
showUnsetImage
is false or allowEmptyValue
is false the uncheckedImage
will be used for null values
rather than this image.SCImgURL
Appearance overview and related methods
public static void setDefaultProperties(CheckboxItem checkboxItemProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
checkboxItemProperties
- properties that should be used as new defaults when instances of this class are createdpublic void setShowUnsetImage(java.lang.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 java.lang.Boolean getValueAsBoolean()