public interface DataComponent extends ModifiedInformer, Exemptible
DataPropertyAdministration
.
These data components are swing components which are connected to a database.DataPropertyAdministration
Modifier and Type | Method and Description |
---|---|
void |
addComponentModificationListener(ComponentModificationListener l)
Adds a component modification listener to this component.
|
DataObject |
getAssignedDataObject() |
boolean |
isContentValid()
Indicates whether the component's value is valid.
|
boolean |
isFilled()
Indicates whether the component has a value.
|
boolean |
isRequirementUnfulfilled()
Indicates whether the component's value is mandatory but not filled.
|
boolean |
isToSave()
Indicates whether the component's value differs from its value at load time.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
removeComponentModificationListener(ComponentModificationListener l)
Removes a component modification listener to this component.
|
boolean |
requestFocusInWindow()
Set focus on the receiving component if isRequestFocusEnabled returns true.
|
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 |
setRequired(boolean required)
Determines whether input is required (mandatory).
|
void |
setToolTipText(java.lang.String toolTipText)
Sets the component's tool tip text.
|
isModified
free
DataObject getAssignedDataObject()
void setRequired(boolean required)
required
- if true, input is mandatory; otherwise, input is not mandatoryvoid loadValue()
boolean isFilled()
boolean isToSave()
boolean isContentValid()
boolean isRequirementUnfulfilled()
void selectAll()
boolean requestFocusInWindow()
void saveValue()
void setEditable(boolean editable)
editable
- a flag indicating whether this component should be user editablevoid setToolTipText(java.lang.String toolTipText)
toolTipText
- the component's tool tip textvoid addComponentModificationListener(ComponentModificationListener l)
l
- component modification listener to addvoid removeComponentModificationListener(ComponentModificationListener l)
l
- component modification listener to addDataList
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de