public class DataMultChoice extends MultChoice implements Storable
helpTarget, helpTopic, model, required
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataMultChoice(SessionData sessionData,
DataObject root,
DataObject key,
AssoDataObject link,
java.lang.String[] keyColumns,
java.lang.String[] keyHeaders)
Constructs a new database connected multiple choice component.
|
Modifier and Type | Method and Description |
---|---|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
boolean |
isFilled()
Returns true if the component has a value.
|
boolean |
isRequirementUnfulfilled()
Returns true if the component's value is mandatory but not filled.
|
boolean |
isValid()
Returns true if the component's value is valid.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
reload(java.lang.String whereCondition)
Causes a reload, shortened by a where condition.
|
void |
removeAll() |
void |
saveValue()
Stores the component's value.
|
void |
setCopyModeAndIdentifyTextField(MustTextField identifyTextField)
Sets copy mode and the text field which will contain the identify value when it's time to save.
|
void |
setCopyModeAndNewRootIdentifier(Identifier newRootIdentifier)
Sets the copy mode and the new root identifier.
|
void |
setIdentifyTextField(MustTextField identifyTextField)
Sets the text field which will contain the identify value when it's time to save.
|
void |
skipNextLoad()
Causes that next loadValue() is skipped.
|
buildRemoteView, destroy, fetchValuesFromRequest, free, getHelpTarget, getHelpTopic, isModified, requestFocusInWindow, selectAll, setEditable, setHelpContext, setHelpContext, setPreferedColumnSize, setRequired, setToolTipText, setValues
beginAction, endAction, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEnabled, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isModified, setRequired
requestFocusInWindow, selectAll, setValues
destroy, fetchValuesFromRequest, setToolTipText
buildRemoteView
public DataMultChoice(SessionData sessionData, DataObject root, DataObject key, AssoDataObject link, java.lang.String[] keyColumns, java.lang.String[] keyHeaders)
root
- the main data object which is the entity that is to be assigned
to one or more keyskey
- the key containing data object, e.g. a grouplink
- the relational entity data objectkeyColumns
- the columns of the key table to be displayedkeyHeaders
- the headers of the table which represents the keyspublic DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public void reload(java.lang.String whereCondition)
whereCondition
- the where condition to shorten the contentpublic void skipNextLoad()
public void loadValue()
public void setCopyModeAndNewRootIdentifier(Identifier newRootIdentifier)
newRootIdentifier
- the new root identifierpublic void setCopyModeAndIdentifyTextField(MustTextField identifyTextField)
identifyTextField
- the text field which will contain the identify value when it's time to savepublic void setIdentifyTextField(MustTextField identifyTextField)
identifyTextField
- the text field which will contain the identify value when it's time to savepublic void removeAll()
public void saveValue()
Storable
public boolean isValid()
Storable
public boolean isRequirementUnfulfilled()
Storable
isRequirementUnfulfilled
in interface Storable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de