public class DesktopCheckBox extends DesktopAbstractField<javax.swing.JCheckBox> implements CheckBox
Field.ValidatorComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.WrapperSWING_PROPERTY_CLASS, SWING_PROPERTY_IDAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
DesktopCheckBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Updates all changes since the previous commit to the data source.
|
void |
discard()
Discards all changes since last commit.
|
Datasource |
getDatasource() |
java.lang.String |
getDescription() |
MetaProperty |
getMetaProperty() |
MetaPropertyPath |
getMetaPropertyPath() |
java.lang.Boolean |
getValue() |
boolean |
isBuffered() |
boolean |
isChecked() |
boolean |
isModified()
Tests if the value stored in the object has been modified since it was
last updated from the data source.
|
void |
setBuffered(boolean buffered)
Sets the buffered mode.
|
void |
setDatasource(Datasource datasource,
java.lang.String property)
Set datasource and its property.
|
void |
setDescription(java.lang.String description) |
void |
setParent(Component parent)
INTERNAL.
Component.Container.add(Component) is normally used for adding components
to a parent and the used method will call this method implicitly. |
void |
setValue(java.lang.Object value) |
void |
updateEnabled() |
addListener, addValidator, addValueChangeListener, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeListener, removeValidator, removeValueChangeListener, setEditable, setRequired, setRequiredMessage, updateMissingValueState, validateaddStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setFrame, setHeight, setIcon, setId, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapCompositionequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessageaddListener, addValueChangeListener, removeListener, removeValueChangeListenerisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositiongetCaption, setCaptionisValid, isValidateOnCommit, validategetIcon, setIcongetTabIndex, isFocusable, setFocusable, setTabIndexpublic java.lang.Boolean getValue()
getValue in interface CheckBoxgetValue in interface Component.HasValuepublic void setValue(java.lang.Object value)
setValue in interface Component.HasValuepublic Datasource getDatasource()
getDatasource in interface DatasourceComponentpublic MetaProperty getMetaProperty()
getMetaProperty in interface DatasourceComponentpublic MetaPropertyPath getMetaPropertyPath()
getMetaPropertyPath in interface DatasourceComponentpublic void setDatasource(Datasource datasource, java.lang.String property)
DatasourceComponentsetDatasource in interface DatasourceComponentpublic void setParent(Component parent)
ComponentComponent.Container.add(Component) is normally used for adding components
to a parent and the used method will call this method implicitly.setParent in interface ComponentsetParent in class DesktopAbstractField<javax.swing.JCheckBox>parent - Parent componentpublic java.lang.String getDescription()
getDescription in interface Component.HasCaptionpublic void setDescription(java.lang.String description)
setDescription in interface Component.HasCaptionpublic void updateEnabled()
public boolean isChecked()
public void commit()
Component.Bufferedcommit in interface Component.Bufferedpublic void discard()
Component.Buffereddiscard in interface Component.Bufferedpublic boolean isBuffered()
isBuffered in interface Component.Bufferedtrue if buffered mode is on, false otherwisepublic void setBuffered(boolean buffered)
Component.Buffered
When in buffered mode, an internal buffer will be used to store changes
until Component.Buffered.commit() is called. Calling Component.Buffered.discard() will revert
the internal buffer to the value of the data source.
When in non-buffered mode both read and write operations will be done
directly on the data source. In this mode the Component.Buffered.commit() and
Component.Buffered.discard() methods serve no purpose.
setBuffered in interface Component.Bufferedbuffered - true if buffered mode should be turned on, false otherwisepublic boolean isModified()
Component.BufferedisModified in interface Component.Bufferedtrue if the value in the object has been modified
since the last data source update, false if not.