public abstract class DataPropertyAdministration extends PropertyAdministration
Modifier and Type | Field and Description |
---|---|
protected MustButton |
btnSubDel |
protected MustButton |
btnSubNew |
protected MustButton |
btnSubOk |
protected DataObject |
currentDataObject |
protected DataList |
currentSelectionList |
protected DataObject[] |
dataObjects |
protected boolean |
inUse |
static int |
MODE_COPY |
static int |
MODE_NEW |
static int |
MODE_PROPERTY |
static int |
MODE_VIRGIN |
protected java.util.Vector<DataMultChoice> |
multChoices |
static int |
NEW_LINE |
static int |
STAY_IN_LINE |
additionalButtons, additionalComponents, checkRepeatedInput, currentAttributeList, tabButtonGroup
appearanceModifiablePool, appellation, buildDone, confirmationMatter, contextInfo, dependencies, infoMatter, isToRenew, popupBuilders, presentMessageInDialogIfRepeated, remoteContents, remoteContentsExceptionallyToSetValues, sessionData
Constructor and Description |
---|
DataPropertyAdministration(DataObject mainDataObject,
SessionData sessionData,
ContextInfo contextInfo) |
DataPropertyAdministration(DataObject mainDataObject,
SessionData sessionData,
SearchListDetailGroup group)
Constructs a new data property administration.
|
DataPropertyAdministration(SessionData sessionData,
SearchListDetailGroup group)
Constructs a new data property administration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
btnSubNewAction() |
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
protected void |
buttonSubDeleteAction(GeneralizedRequest request) |
protected boolean |
cancelButtonAction() |
protected boolean |
checkAndUpdateAll() |
void |
copy(Identifier identifier)
Loads the specified entry and fills all DataComponent objects with
the current values to offer them for inserting a new entry.
|
protected DataCheckBox |
createCheckBox(java.lang.String columnName,
java.lang.String checkLabel)
Creates a database connected check box in the same line as previously used.
|
protected DataCheckBox |
createCheckBox(java.lang.String lineLabel,
java.lang.String columnName,
java.lang.String checkLabel)
Creates a database connected check box in a new line with its describing label.
|
protected DataVariableChoice |
createChoice(java.lang.String label,
KeyValuePair[] content,
java.lang.String columnName)
Creates a database connected variable choice
|
protected DataVariableChoice |
createChoice(java.lang.String label,
java.lang.String[][] content,
java.lang.String columnName)
Creates a database connected filled combo box with static choice in a new line with its describing label.
|
protected DataCleartextClassification |
createCleartextClassification(java.lang.String label,
java.lang.String assignedColumnName,
SelfChainingDataObject sourceDataObject,
java.lang.String niColumn,
java.lang.String visibleColumnName,
java.lang.String superordinateNiColumn,
int depth) |
protected DataComboBox |
createComboBox(java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a database connected and dynamically data filled combo box in the same line as previously used.
|
protected DataComboBox |
createComboBox(java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumnName,
java.lang.String nameForNoChoice)
Creates a database connected and dynamically data filled combo box in the same line as previously used.
|
protected DataComboBox |
createComboBox(java.lang.String label,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a database connected and dynamically data filled combo box in a new line with its describing label.
|
protected DataComboBox |
createComboBox(java.lang.String label,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumnName,
java.lang.String nameForNoChoice)
Creates a database connected and dynamically data filled combo box in a new line with its describing label.
|
protected DataDateField |
createDateField(java.lang.String columnName)
Creates a database connected date field in the same line as previously used.
|
protected DataDateField |
createDateField(java.lang.String label,
AbstractAttribute attribute)
Creates a database connected date field in a new line with its describing label.
|
protected DataDateField |
createDateField(java.lang.String label,
java.lang.String columnName)
Creates a database connected date field in a new line with its describing label.
|
protected DataDecimalField |
createDecimalField(java.lang.String columnName)
Creates a database connected decimal field in the same line as previously used.
|
protected DataDecimalField |
createDecimalField(java.lang.String label,
java.lang.String columnName)
Creates a database connected decimal field in a new line with the specified label.
|
protected DataFileStreamField |
createFileStreamField(java.lang.String label,
DataObject fileDataObject,
java.lang.String columnNameForFileName,
java.lang.String columnNameForFileDate,
java.lang.String columnNameForBinaryData)
Creates a database connected area for integrating files into database and opening these files.
|
protected DataImageViewer |
createImage(java.lang.String tabLabel,
java.lang.String columnName)
Creates a database connected image viewer.
|
protected DataIntField |
createIntField(AbstractAttribute attribute)
Creates a database connected int field in the same line as previously used.
|
protected DataIntField |
createIntField(java.lang.String columnName)
Creates a database connected int field in the same line as previously used.
|
protected DataIntField |
createIntField(java.lang.String label,
AbstractAttribute attribute)
Creates a database connected int field in a new line with its describing label.
|
protected DataIntField |
createIntField(java.lang.String label,
java.lang.String columnName)
Creates a database connected int field in a new line with its describing label.
|
protected DataMultChoice |
createMultChoice(java.lang.String label,
DataObject key,
AssoDataObject link,
java.lang.String[] keyColumns,
java.lang.String[] keyHeaders)
Creates a database connected multiple choice in a new line.
|
protected DataPasswordField |
createPasswordField(java.lang.String label,
java.lang.String columnName) |
protected DataRadioButtons |
createRadioButtons(java.lang.String label,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String keyColumnName,
java.lang.String visibleColumnName)
Creates a database connected radio button group in a new line.
|
protected DataRadioButtons |
createRadioButtons(java.lang.String lineLabel,
java.lang.String columnName,
KeyValuePair[] content)
Creates a database connected radio button group in a new line.
|
protected DataRadioButtons |
createRadioButtons(java.lang.String label,
java.lang.String columnName,
KeyValuePairAlpha[] content)
Creates a database connected radio button group in a new line.
|
protected DataRadioButtons |
createRadioButtons(java.lang.String lineLabel,
java.lang.String columnName,
java.lang.String[] keys,
java.lang.String[] meaning)
Creates a database connected radio button group in a new line.
|
protected DataSmallImageChooser |
createSmallImageChooser(java.lang.String label,
java.lang.String columnNameForBinaryData,
int width,
int height) |
protected DataTextArea |
createTextArea(java.lang.String label,
java.lang.String columnName)
Creates a database connected text area in a new line with its describing label.
|
protected DataTextField |
createTextField(int control,
java.lang.String columnName,
int length)
Creates a database connected text input field in a new line with the specified label and length.
|
protected DataTextField |
createTextField(int control,
java.lang.String label,
int length,
int maxChars,
java.lang.String columnName)
Creates a database connected text input field line controlled with the specified length.
|
protected DataTextField |
createTextField(int control,
java.lang.String label,
int length,
java.lang.String columnName)
Creates a database connected text input field in a new line with the specified label and length.
|
protected DataTextField |
createTextField(java.lang.String columnName)
Creates a database connected text input field in the same line as previously used.
|
protected DataTextField |
createTextField(java.lang.String columnName,
int length)
Creates a database connected text input field in the same line with the specified length.
|
protected DataTextField |
createTextField(java.lang.String label,
java.lang.String columnName)
Creates a database connected text input field in a new line with its describing label.
|
protected DataTextField |
createTextField(java.lang.String label,
java.lang.String columnName,
boolean allowChoosing)
Creates a database connected text input field in a new line with its describing label.
|
protected DataTextField |
createTextField(java.lang.String label,
java.lang.String columnName,
int length)
Creates a database connected text input field in a new line with the specified label and length.
|
protected boolean |
delaySaving()
Returns true of saving is to be delayed due to actions that may not be embedded.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
protected void |
dialogPrepared()
Is called when newInput, load or copy dialog is prepared.
|
protected int |
getAdministrationMode()
Returns the administration mode.
|
protected java.lang.String |
getDetailInfo(Identifier identifier)
Override for individual information concerning sublist item about what is going to be deleted e.g.
|
protected java.lang.String |
getDetailInfo(java.util.Vector<Identifier> identifiers) |
protected java.lang.String |
getEntryDescription()
Returns the description of the administered entry.
|
SearchListDetailGroup |
getGroup() |
protected Identifier |
getLastAdministrationIdentifier() |
boolean |
hasUploadFunctionality()
Returns the uploadFunctionality.
|
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected boolean |
isModified()
Returns true if input was modified.
|
protected void |
loadValues() |
protected void |
loadValues(Identifier identifier)
Loads an entity specified by an identifier (primary key).
|
void |
loadValues(java.util.Vector<Identifier> identifiers) |
void |
newInput()
Prepares for inserting data.
|
protected void |
newPanel(java.lang.String tabLabel,
DataList selectionList) |
protected void |
newPanel(java.lang.String tabLabel,
DataTextArea centerTextArea)
Creates a new panel and adds it to the tabbed pane with a centered text area
for full frame editing.
|
protected boolean |
okButtonAction()
Does all the things necessary when user pushes OK button and returns true if
there was nothing rejected.
|
protected void |
okButtonActionPart2Save() |
void |
process(GeneralizedRequest request) |
void |
rebuildFromScratch()
Sets the flag that
buildRemoteView(ToAppletWriter) has to create everything once again. |
protected void |
registerStorable(Storable nextStorable) |
protected boolean |
saveAll() |
protected void |
saveValues()
Saves the components' values.
|
protected void |
setDefaultValues()
Sets the default values of the components - to be overridden by child if needed.
|
protected void |
setDuplicateCheckDataObject(DataObject newDuplicateCheckDataObject)
Sets the data object for automatic duplicates check.
|
protected void |
setFrameTitleNew(java.lang.String frameTitleNew)
Sets the frame title for using the administration for entering new entries.
|
protected void |
setFrameUpdateTitleField(DataTextComponent[] newFrameUpdateTitleFields)
Sets the frame title for using the administration for updating entries.
|
protected void |
setFrameUpdateTitleField(DataTextField newFrameUpdateTitleField)
Sets the frame title for using the administration for updating entries.
|
void |
setMainDataObject(DataObject dataObject)
Sets the main data object and calls new row to get column length via meta data.
|
protected void |
setNextDataObject(DataObject newDataObject)
Adds a data object to the available data objects and sets the pointer to
the new data object.
|
protected void |
setRequired(boolean required)
Sets the previously added component to be mandatory.
|
protected void |
setUniqueStringIdentifyDataComponent(MustTextField newUniqueStringIdentifyDataComponent)
Sets the component which represents the unique identifier (primary key) of
the administered entity.
|
void |
switchToPropertyMode()
Switch from insert or copy mode to property mode to avoid second SQL insert.
|
addButton, addButton, addButtonInSequence, addSeparator, addToButtonPanel, addToButtonPanel, append, append, append, appendButtonForSelection, createButtonInButtonPanel, createTextPresenter, createTextPresenter, creationEnding, fetchValuesFromRequest, getAttributeList, hasMultiplePanels, newPanel, newPanel, newPanel, optional, setLayoutTolerance, setToolTipText
addDependency, addDependency, associateDefaultButtonToInputField, free, getAppellation, getAppResStr, getConcerning, getContextInfo, getElementID, getInstance, getMessageSetSize, getTabId, getTabLabel, getTranslation, hasVeto, isVisible, register, register, registerRemotable, setAppellation, setElementID, setMessage, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setSoundToPlay, setTitle, setToRenewToTrue, setVisible
public static final int NEW_LINE
public static final int STAY_IN_LINE
public static final int MODE_VIRGIN
public static final int MODE_NEW
public static final int MODE_PROPERTY
public static final int MODE_COPY
protected DataObject[] dataObjects
protected DataObject currentDataObject
protected DataList currentSelectionList
protected MustButton btnSubOk
protected MustButton btnSubDel
protected MustButton btnSubNew
protected java.util.Vector<DataMultChoice> multChoices
protected boolean inUse
public DataPropertyAdministration(SessionData sessionData, SearchListDetailGroup group)
sessionData
- the session's public datapublic DataPropertyAdministration(DataObject mainDataObject, SessionData sessionData, SearchListDetailGroup group)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datapublic DataPropertyAdministration(DataObject mainDataObject, SessionData sessionData, ContextInfo contextInfo)
public SearchListDetailGroup getGroup()
public void setMainDataObject(DataObject dataObject)
dataObject
- the data object that is to be used mainlyprotected void setNextDataObject(DataObject newDataObject)
newDataObject
- the new data objectprotected void setDuplicateCheckDataObject(DataObject newDuplicateCheckDataObject)
newDuplicateCheckDataObject
- the data object for duplicates checkprotected void setUniqueStringIdentifyDataComponent(MustTextField newUniqueStringIdentifyDataComponent)
newUniqueStringIdentifyDataComponent
- the component which represents the unique identifierprotected void newPanel(java.lang.String tabLabel, DataList selectionList)
protected void newPanel(java.lang.String tabLabel, DataTextArea centerTextArea)
tabLabel
- the label of the new tabcenterTextArea
- the text area for full frame editingprotected DataTextField createTextField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataTextField createTextField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataTextField createTextField(java.lang.String label, java.lang.String columnName, boolean allowChoosing)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.allowChoosing
- allow choosing values from existing recordsprotected DataTextField createTextField(java.lang.String columnName, int length)
label
- the label of the new linecolumnName
- the name of the column to connect tolength
- the length of the text input fieldprotected DataTextField createTextField(java.lang.String label, java.lang.String columnName, int length)
label
- the label of the new linecolumnName
- the name of the column to connect tolength
- the length of the text input fieldprotected DataTextField createTextField(int control, java.lang.String columnName, int length)
control
- indicates whether the component is to be laid-out in the
same line (STAY_IN_LINE
)
or in a new line (NEW_LINE
)columnName
- the name of the column to connect tolength
- the length of the text input fieldprotected DataTextField createTextField(int control, java.lang.String label, int length, java.lang.String columnName)
control
- indicates whether the component is to be laid-out in the
same line (STAY_IN_LINE
)
or in a new line (NEW_LINE
)label
- the label of the new linelength
- the length of the fieldcolumnName
- the name of the column to connect toprotected DataTextField createTextField(int control, java.lang.String label, int length, int maxChars, java.lang.String columnName)
control
- indicates whether the component is to be laid-out in the
same line (STAY_IN_LINE
)
or in a new line (NEW_LINE
)label
- the label of the new linelength
- the length of the text input fieldmaxChars
- the maximum of characters to be enteredcolumnName
- the name of the column to connect toprotected DataPasswordField createPasswordField(java.lang.String label, java.lang.String columnName)
protected DataTextArea createTextArea(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field = the column name of the database tableprotected DataDateField createDateField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataDateField createDateField(java.lang.String label, AbstractAttribute attribute)
label
- the line label.attribute
- the AbstractAttribute representing the column to connect toprotected DataDateField createDateField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataImageViewer createImage(java.lang.String tabLabel, java.lang.String columnName)
dataObject
- the DataObject to assign totabLabel
- the label of the tabcolumnName
- the name of the column to store the image in the tableprotected DataCleartextClassification createCleartextClassification(java.lang.String label, java.lang.String assignedColumnName, SelfChainingDataObject sourceDataObject, java.lang.String niColumn, java.lang.String visibleColumnName, java.lang.String superordinateNiColumn, int depth)
protected DataIntField createIntField(AbstractAttribute attribute)
attribute
- the AbstractAttribute representing the column to connect toprotected DataIntField createIntField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataIntField createIntField(java.lang.String label, AbstractAttribute attribute)
label
- the line label.attribute
- the AbstractAttribute representing the column to connect toprotected DataIntField createIntField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataDecimalField createDecimalField(java.lang.String label, java.lang.String columnName)
label
- the label of the new linecolumnName
- the name of the column to connect toprotected DataDecimalField createDecimalField(java.lang.String columnName)
columnName
- the name of the column to connect toprotected DataComboBox createComboBox(java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn)
columnName
- the name of the field = the column name of the database tablesourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectprotected DataComboBox createComboBox(java.lang.String label, java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn)
label
- the line label.columnName
- the name of the field = the column name of the database tablesourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectprotected DataComboBox createComboBox(java.lang.String label, java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumnName, java.lang.String nameForNoChoice)
label
- the line label.columnName
- the name of the field = the column name of the database tablesourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectorderByColumnName
- the column name to determine for the list ordernameForNoChoice
- the expression that indicates "no choice"protected DataComboBox createComboBox(java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumnName, java.lang.String nameForNoChoice)
columnName
- the name of the field = the column name of the database tablesourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectorderByColumnName
- the column name to determine for the list ordernameForNoChoice
- the expression that indicates "no choice"protected DataVariableChoice createChoice(java.lang.String label, KeyValuePair[] content, java.lang.String columnName)
label
- the label of the new linecontent
- the static content of the variable choicecolumnName
- the name of the column to connect toprotected DataVariableChoice createChoice(java.lang.String label, java.lang.String[][] content, java.lang.String columnName)
label
- the line label.content
- the wished content of the combo boxcolumnName
- the name of the field = the column name of the database tableprotected DataSmallImageChooser createSmallImageChooser(java.lang.String label, java.lang.String columnNameForBinaryData, int width, int height)
protected DataMultChoice createMultChoice(java.lang.String label, DataObject key, AssoDataObject link, java.lang.String[] keyColumns, java.lang.String[] keyHeaders)
label
- the label of the new linekey
- the data object containing the columns to be displayed.link
- the data object which represents the relational entity.keyColumns
- the columns to be used to dynamically fill the gridkeyHeaders
- the headers of the gridprotected DataCheckBox createCheckBox(java.lang.String columnName, java.lang.String checkLabel)
columnName
- the name of the field = the column name of the database tablecheckLabel
- the label to the right of the check boxprotected DataCheckBox createCheckBox(java.lang.String lineLabel, java.lang.String columnName, java.lang.String checkLabel)
label
- the line label.columnName
- the name of the field = the column name of the database tablecheckLabel
- protected DataRadioButtons createRadioButtons(java.lang.String lineLabel, java.lang.String columnName, java.lang.String[] keys, java.lang.String[] meaning)
label
- the label of the new linecolumnName
- the name of the column to connect tokeys
- the keys as to be used in the database tablesmeaning
- the meanings of these keys to be presented for the userprotected DataRadioButtons createRadioButtons(java.lang.String lineLabel, java.lang.String columnName, KeyValuePair[] content)
label
- the label of the new linecolumnName
- the name of the column to connect tocontent
- the content described by an array of KeyValuePairprotected DataRadioButtons createRadioButtons(java.lang.String label, java.lang.String columnName, DataObject sourceDataObject, java.lang.String keyColumnName, java.lang.String visibleColumnName)
label
- the label of the new linecolumnName
- the name of the column to connect tosourceDataObject
- the source data object that shall fill the content of the combo boxkeyColumnName
- the key column name of the source data objectvisibleColumn
- the column to be used to fill the combo box from the source data objectprotected DataRadioButtons createRadioButtons(java.lang.String label, java.lang.String columnName, KeyValuePairAlpha[] content)
label
- the label of the new linecolumnName
- the name of the column to connect tocontent
- the content described by an array of KeyValuePairprotected DataFileStreamField createFileStreamField(java.lang.String label, DataObject fileDataObject, java.lang.String columnNameForFileName, java.lang.String columnNameForFileDate, java.lang.String columnNameForBinaryData)
label
- the label of the new linefileDataObject
- the data object representing the file storagecolumnNameForFileName
- the column name for the file namecolumnNameForBinaryData
- the column name for the binary dataprotected void registerStorable(Storable nextStorable)
protected void setRequired(boolean required)
required
- whether the component is mandatory or notprotected void setFrameTitleNew(java.lang.String frameTitleNew)
frameTitleNew
- the frame title for using the administration entering new entriesprotected void setFrameUpdateTitleField(DataTextField newFrameUpdateTitleField)
newFrameUpdateTitleField
- the field to be used to build the title
for using the administration for updating entriesprotected void setFrameUpdateTitleField(DataTextComponent[] newFrameUpdateTitleFields)
newFrameUpdateTitleFields
- the fields to be used to build the title
for using the administration for updating entriespublic void rebuildFromScratch()
buildRemoteView(ToAppletWriter)
has to create everything once again.public void process(GeneralizedRequest request)
process
in interface RemotableControler
process
in class PropertyAdministration
protected void buttonSubDeleteAction(GeneralizedRequest request)
protected void btnSubNewAction()
protected boolean checkAndUpdateAll()
protected boolean saveAll()
protected java.lang.String getEntryDescription()
public void newInput()
protected void setDefaultValues()
public void loadValues(java.util.Vector<Identifier> identifiers)
protected void loadValues(Identifier identifier)
identifier
- the identifier (primary key).protected void loadValues()
public void copy(Identifier identifier)
identification
- the unique identify value of the entry.public void switchToPropertyMode()
protected void dialogPrepared()
getAdministrationMode()
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class PropertyAdministration
out
- the writer which will be read by the appletprotected java.lang.String getDetailInfo(java.util.Vector<Identifier> identifiers)
protected java.lang.String getDetailInfo(Identifier identifier)
identifier
- the identifier of the entry to inform aboutprotected boolean okButtonAction()
protected boolean delaySaving()
protected void okButtonActionPart2Save()
protected boolean cancelButtonAction()
protected boolean isInputAccepted()
protected int getAdministrationMode()
MODE_VIRGIN
,
MODE_NEW
,
MODE_PROPERTY
or
MODE_COPY
protected boolean isModified()
protected void saveValues()
protected Identifier getLastAdministrationIdentifier()
public boolean hasUploadFunctionality()
public void destroy()
Remotable
destroy
in interface Remotable
destroy
in class RemoteUserInterface
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de