public class DataMultChoice extends MultChoice implements DataComponent, ContextHelp
helpTarget, helpTopic, model, required, table
Constructor and Description |
---|
DataMultChoice(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 |
---|---|
void |
addComponentModificationListener(ComponentModificationListener l)
Adds a component modification listener to this component.
|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
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 |
isSelected(Identifier id) |
boolean |
isToSave()
Indicates whether the component's value differs from its value at load time.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.
|
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 |
removeComponentModificationListener(ComponentModificationListener l)
Removes a component modification listener to this component.
|
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.
|
free, getHelpTarget, getHelpTopic, getTable, isModified, requestFocusInWindow, selectAll, setEditable, setHelpContext, setHelpContext, setPreferedColumnSize, setRequired, setToolTipText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFocusInWindow, selectAll, setEditable, setRequired, setToolTipText
isModified
free
getHelpTarget, getHelpTopic, setHelpContext
public DataMultChoice(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 DataComponent
public void reload(java.lang.String whereCondition)
whereCondition
- the where condition to shorten the contentpublic void skipNextLoad()
public void loadValue()
loadValue
in interface DataComponent
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 keyReleased(java.awt.event.KeyEvent e)
e
- the key eventpublic 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 removeAll()
public boolean isSelected(Identifier id)
public void saveValue()
DataComponent
saveValue
in interface DataComponent
public boolean isContentValid()
DataComponent
isContentValid
in interface DataComponent
public boolean isRequirementUnfulfilled()
DataComponent
isRequirementUnfulfilled
in interface DataComponent
public boolean isFilled()
DataComponent
isFilled
in interface DataComponent
public boolean isToSave()
DataComponent
isToSave
in interface DataComponent
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de