public class DataCheckBox extends MustCheckBox implements Storable
label, value
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataCheckBox(SessionData sessionData,
DataObject dO,
java.lang.String columnName) |
DataCheckBox(SessionData sessionData,
DataObject dO,
java.lang.String columnName,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
void |
free()
Releases external resources.
|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
boolean |
isContentValid()
Returns always true.
|
boolean |
isFilled()
Indicates whether the component has a value.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
isRequirementUnfulfilled()
Indicates whether the component's value is mandatory but not filled.
|
boolean |
isToSave() |
boolean |
isValid()
Returns true if the component's value is valid.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
saveValue()
Stores the component's value.
|
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setEditable(boolean editable)
Sets the flag that determines whether or not this component is editable.
|
void |
setEditBeginSelected(boolean selected)
Sets the CheckBox to selected and indicates that it's the initial value
before editing.
|
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
addItemListener, buildRemoteView, destroy, fetchValuesFromRequest, getText, isSelected, perform, requestFocusInWindow, setSelected, setValues
beginAction, endAction, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEnabled, setToolTipText, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFocusInWindow, setValues
destroy, fetchValuesFromRequest, setToolTipText
buildRemoteView
public DataCheckBox(SessionData sessionData, DataObject dO, java.lang.String columnName)
dO
- the data object to assign tocolumnName
- the triggering column's namepublic DataCheckBox(SessionData sessionData, DataObject dO, java.lang.String columnName, java.lang.String label)
dO
- the data object to assign tocolumnName
- the triggering column's namelabel
- the the triggering column's labelpublic DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public void setEditable(boolean editable)
setEditable
in class MustCheckBox
editable
- a flag indicating whether this component should be user editable#setEditableForUserTyping
public void setRequired(boolean required)
Storable
setRequired
in interface Storable
required
- whether this input is mandatory or not.public void setEditBeginSelected(boolean selected)
selected
- true if the checkbox is to be selected.public boolean isContentValid()
public boolean isRequirementUnfulfilled()
isRequirementUnfulfilled
in interface Storable
public void selectAll()
selectAll
in interface RemoteContent
selectAll
in class MustCheckBox
public void loadValue()
public boolean isFilled()
public boolean isModified()
isModified
in interface Storable
public boolean isToSave()
public boolean isValid()
Storable
public void saveValue()
public void free()
free
in interface Exemptible
free
in interface ExemptibleManager
free
in class RemoteElement
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de