public class DataList extends RemoteElement implements Storable, DataChangeListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
buildDone |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataList(SessionData sessionData,
DataObject assignedDataObject,
java.lang.String assignedColumnName,
DataObject sourceDataObject,
java.lang.String visibleColumnName)
Constructs a new data list.
|
DataList(SessionData sessionData,
DataObject assignedDataObject,
java.lang.String assignedColumnName,
DataObject sourceDataObject,
java.lang.String visibleColumnName,
java.lang.String orderBy)
Constructs a new data list.
|
Modifier and Type | Method and Description |
---|---|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
dataChangePerformed(DataChangedEvent e)
Called from data objects when data have been changed.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
void |
free()
Releases external resources.
|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
java.util.Vector<Identifier> |
getContextMenuIds(GeneralizedRequest request) |
Identifier |
getIdentifierOfIndex(int index) |
int |
getIndexOfIdentifier(Identifier identifier) |
int |
getItemCount() |
Identifier |
getSelectedIdentifier() |
int |
getSize() |
DataObject |
getSourceDataObject()
Returns the content data object.
|
java.lang.String |
getVisibleColumnName()
Returns the visible column name.
|
boolean |
isContentValid()
Indicates whether the component's value is valid.
|
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 |
loadValue(Identifier identifierToSelect) |
void |
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 |
setDataComponents(java.util.Vector<Storable> storables)
Assigns the components to be dependent on this data list.
|
void |
setEditable(boolean editable)
Sets the flag that determines whether or not this component is editable.
|
void |
setPresentables(LoadableRemoteContent[] newPresentables)
Assigns the presentables to be dependent on this data list.
|
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
void |
setSelected(Identifier identifier)
Called when list selection changes to refresh registered dependent
data components to reload themselves.
|
void |
setSelectedIndex(int index) |
void |
setToolTipText(java.lang.String toolTipText)
Sets the component's tool tip text.
|
void |
setValues(ToAppletWriter out) |
void |
setVisibleColumnName(java.lang.String visibleColumnName)
Sets the visible column name.
|
beginAction, endAction, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEnabled, setVisible
public DataList(SessionData sessionData, DataObject assignedDataObject, java.lang.String assignedColumnName, DataObject sourceDataObject, java.lang.String visibleColumnName)
assignedDataObject
- the data object to trigger the selectionassignedColumnName
- the name of the column the text field is to assign tosourceDataObject
- the source data objectvisibleColumnName
- the visible column namepublic DataList(SessionData sessionData, DataObject assignedDataObject, java.lang.String assignedColumnName, DataObject sourceDataObject, java.lang.String visibleColumnName, java.lang.String orderBy)
assignedDataObject
- the data object to trigger the selectionassignedColumnName
- the name of the column the text field is to assign tosourceDataObject
- the source data objectvisibleColumnName
- the visible column nameorderBy
- the sorting column name of the content data objectpublic DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public DataObject getSourceDataObject()
public void setEditable(boolean editable)
setEditable
in class RemoteElement
editable
- a flag indicating whether this component should be user editable#setEditableForUserTyping
public boolean isContentValid()
public void selectAll()
selectAll
in interface RemoteContent
selectAll
in class RemoteElement
public void setDataComponents(java.util.Vector<Storable> storables)
storables
- the components to be dependent on this data listpublic void setPresentables(LoadableRemoteContent[] newPresentables)
newPresentables
- the presentables to be dependent on this data listpublic void setVisibleColumnName(java.lang.String visibleColumnName)
visibleColumnName
- the column name to be used to be displayed as
content of the combo boxpublic java.lang.String getVisibleColumnName()
public void loadValue()
public void loadValue(Identifier identifierToSelect)
public int getSize()
public int getIndexOfIdentifier(Identifier identifier)
public Identifier getIdentifierOfIndex(int index)
public void setSelectedIndex(int index)
public void setSelected(Identifier identifier)
e
- the list selection eventpublic Identifier getSelectedIdentifier()
public boolean isFilled()
public int getItemCount()
public boolean isModified()
isModified
in interface Storable
public boolean isToSave()
public void saveValue()
public void setRequired(boolean required)
Storable
setRequired
in interface Storable
required
- whether this input is mandatory or not.public boolean isRequirementUnfulfilled()
isRequirementUnfulfilled
in interface Storable
public void free()
free
in interface Exemptible
free
in interface ExemptibleManager
free
in class RemoteElement
public void dataChangePerformed(DataChangedEvent e)
dataChangePerformed
in interface DataChangeListener
e
- the data change event that happened.public void setToolTipText(java.lang.String toolTipText)
Remotable
setToolTipText
in interface Remotable
setToolTipText
in class RemoteElement
toolTipText
- the component's tool tip textpublic void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletpublic void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
public java.util.Vector<Identifier> getContextMenuIds(GeneralizedRequest request)
public void destroy()
Remotable
public boolean isValid()
Storable
public void requestFocusInWindow()
RemoteContent
requestFocusInWindow
in interface RemoteContent
requestFocusInWindow
in class RemoteElement
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de