public class DataSmallImageChooser extends SmallImageChooser implements DataComponent, BinaryComponent
dialog, fileChooseButton
Constructor and Description |
---|
DataSmallImageChooser(FrontendResources frontendResources,
DataObject assignedDataObject,
java.lang.String columnNameForBinaryData,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
addComponentModificationListener(ComponentModificationListener l)
Adds a component modification listener to this component.
|
void |
free()
Releases external resources.
|
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).
|
addTo, addTo, getBytes, getInputStream, isModified, set, set, setImageBytes, setToolTipText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setToolTipText
isModified
public DataSmallImageChooser(FrontendResources frontendResources, DataObject assignedDataObject, java.lang.String columnNameForBinaryData, int width, int height)
public DataObject getAssignedDataObject()
getAssignedDataObject
in interface DataComponent
public void setRequired(boolean required)
DataComponent
setRequired
in interface DataComponent
required
- if true, input is mandatory; otherwise, input is not mandatorypublic void loadValue()
DataComponent
loadValue
in interface DataComponent
public boolean isFilled()
DataComponent
isFilled
in interface DataComponent
public boolean isToSave()
DataComponent
isToSave
in interface DataComponent
public boolean isContentValid()
DataComponent
isContentValid
in interface DataComponent
public boolean isRequirementUnfulfilled()
DataComponent
isRequirementUnfulfilled
in interface DataComponent
public void selectAll()
DataComponent
selectAll
in interface DataComponent
public boolean requestFocusInWindow()
DataComponent
requestFocusInWindow
in interface DataComponent
public void saveValue()
DataComponent
saveValue
in interface BinaryComponent
saveValue
in interface DataComponent
public void setEditable(boolean editable)
DataComponent
setEditable
in interface DataComponent
editable
- a flag indicating whether this component should be user editablepublic void addComponentModificationListener(ComponentModificationListener l)
DataComponent
addComponentModificationListener
in interface DataComponent
l
- component modification listener to addpublic void removeComponentModificationListener(ComponentModificationListener l)
DataComponent
removeComponentModificationListener
in interface DataComponent
l
- component modification listener to addDataList
public void free()
Exemptible
free
in interface Exemptible
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de