public class DataMultChoiceModel extends MultChoiceModel
DataMultChoice
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
fieldNames |
protected Identifier[] |
identifiers |
columns, data, oriSelected, rows
Constructor and Description |
---|
DataMultChoiceModel(DataObject rootDataObject,
DataObject keyDataObject,
AssoDataObject assoDataObject,
java.lang.String[] fieldNames,
java.lang.String[] columnNames)
Constructs a new data multiple choice model.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemCount(java.lang.String whereCondition)
Returns the number of items.
|
DataObject |
getRootDataObject()
Returns the root data object.
|
java.util.Vector<Identifier> |
getSelectedIdentifiers() |
void |
loadValue()
Loads values from database.
|
void |
reload(java.lang.String whereCondition)
Causes a reload, shortened by a where condition.
|
void |
removeAll() |
void |
saveValue()
Saves all values.
|
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 |
setSelectedIdentifiers(java.util.Vector<Identifier> identifiers) |
getColumnClass, getColumnCount, getRowCount, getValueAt, isCellEditable, isModified, isRowModified, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
protected java.lang.String[] fieldNames
protected Identifier[] identifiers
public DataMultChoiceModel(DataObject rootDataObject, DataObject keyDataObject, AssoDataObject assoDataObject, java.lang.String[] fieldNames, java.lang.String[] columnNames)
rootDataObject
- the main data object which is the entity that is to be assigned
to one or more keyskeyDataObject
- the key containing data object, e.g. a groupassoDataObject
- the relational entity data objectfieldNames
- the columns of the key database tablecolumnNames
- the column name of the display gridpublic DataObject getRootDataObject()
public void removeAll()
public void reload(java.lang.String whereCondition)
whereCondition
- the where condition to shorten the contentpublic 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 int getItemCount(java.lang.String whereCondition)
public java.util.Vector<Identifier> getSelectedIdentifiers()
public void setSelectedIdentifiers(java.util.Vector<Identifier> identifiers)
public void saveValue()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de