public class DataReferencePresenter extends MustReferencePresenter implements Presentable
content, printableColumnName, REFERENCE_TYPE_INTEGER, REFERENCE_TYPE_STATIC_CONTENT, REFERENCE_TYPE_STRING, referenceDataObject, referenceType
Constructor and Description |
---|
DataReferencePresenter(DataObject assignedDataObject,
java.lang.String assignedColumnName,
DataObject referenceDataObject,
java.lang.String printableColumnName)
Constructs a new database connected reference presenter for dynamic content.
|
DataReferencePresenter(DataObject assignedDataObject,
java.lang.String assignedColumnName,
java.lang.String[][] content)
Constructs a new database connected reference presenter for static content.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
void |
loadValue()
Loads the component's database stored value.
|
getCreationTag, getText, setComment, setText, setToolTipText, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCreationTag, setComment, setToolTipText
public DataReferencePresenter(DataObject assignedDataObject, java.lang.String assignedColumnName, DataObject referenceDataObject, java.lang.String printableColumnName)
assignedDataObject
- the assigned data objectassignedColumnName
- the name of the reference containing columnreferenceDataObject
- the data object to read the referenceprintableColumnName
- the name of the column which value is to be presented to the userpublic DataReferencePresenter(DataObject assignedDataObject, java.lang.String assignedColumnName, java.lang.String[][] content)
assignedDataObject
- the assigned data objectassignedColumnName
- the name of the reference containing columncontent
- the static content to resolve the reference, each row ist a couple of key and value to be shown to the userpublic void loadValue()
loadValue
in interface Presentable
public void destroy()
Markupable
destroy
in interface Markupable
destroy
in class MustReferencePresenter
Markupable.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de