public abstract class DataTableAdministration extends MajorRemoteUserInterface
Modifier and Type | Class and Description |
---|---|
protected class |
DataTableAdministration.RowIdAndValues |
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<MustButton> |
additionalButtons |
protected DataObject |
aDO |
static int |
BUILD_STATUS_COMPLETE_BUILD_NECESSARY |
static int |
BUILD_STATUS_EMPTY_TABLE_TO_BUILD |
static int |
BUILD_STATUS_NEW_SELECT |
static int |
BUILD_STATUS_NOTHING_TO_DO |
static int |
BUILD_STATUS_UPDATE |
protected int |
buildStatus |
protected java.util.Vector<DataTableAdministration.RowIdAndValues> |
changedRows |
protected boolean[] |
rendererSet |
protected java.lang.String |
standardOrderByBegin |
protected java.util.Hashtable<java.lang.String,java.lang.String> |
values |
protected boolean |
veto |
static Identifier |
ZERO_INT_IDENTIFIER |
appearanceModifiablePool, appellation, buildDone, confirmationMatter, contextInfo, dependencies, infoMatter, isToRenew, popupBuilders, presentMessageInDialogIfRepeated, remoteContents, remoteContentsExceptionallyToSetValues, sessionData
Constructor and Description |
---|
DataTableAdministration(SessionData sessionData,
java.lang.String tabIdAndLabel) |
Modifier and Type | Method and Description |
---|---|
protected InsertedButton |
addButton(java.lang.String label,
int index)
Creates a button and adds it to the standard button panel.
|
protected boolean |
apply() |
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
protected void |
buttonDelEvent()
Executed when delete button is pressed.
|
protected void |
buttonOkEvent()
Executed when OK button is pressed.
|
void |
closeInstance()
Closes the frame and destroys it.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
protected abstract DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
protected java.util.Vector<java.lang.String> |
getColumnHeaders()
Returns the header of the columns to be laid-out.
|
protected abstract java.util.Vector<java.lang.String> |
getColumnNames()
Returns the names of the columns to be laid-out.
|
protected java.lang.String |
getFilterCondition() |
protected int[] |
getPreferedColumnSize()
Returns the preferred column sizes.
|
static int |
getRows(int filledRows) |
boolean |
isCancelAllowed()
Returns true if it is allowed to cancel the dialog.
|
boolean |
isClosingAllowed()
Returns true if it is allowed to close the tab or window.
|
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected abstract boolean |
isInUse(Identifier identifier)
Returns true if the entry as specified by the identifier is in use.
|
void |
loadValues()
Loads an entity specified by a primary key integer value.
|
void |
process(GeneralizedRequest request) |
protected void |
saveDataObject() |
protected void |
select(int row)
Selects the specified row.
|
protected void |
setAllToolTipText() |
void |
setColumnClass(java.lang.String colName,
java.lang.Class<?> colClass)
Sets the class for the specified column.
|
protected void |
setColumnToolTip(int colIndex,
java.lang.String toolTipText)
Sets the column's tool tip text.
|
getTabId, getTabLabel, selectTab
addDependency, addDependency, associateDefaultButtonToInputField, destroy, free, getAppellation, getAppResStr, getConcerning, getContextInfo, getElementID, getInstance, getMessageSetSize, getTranslation, hasVeto, isVisible, register, register, registerRemotable, setAppellation, setElementID, setMessage, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setSoundToPlay, setTitle, setToolTipText, setToRenewToTrue, setVisible
public static final int BUILD_STATUS_EMPTY_TABLE_TO_BUILD
public static final int BUILD_STATUS_UPDATE
public static final int BUILD_STATUS_NEW_SELECT
public static final int BUILD_STATUS_COMPLETE_BUILD_NECESSARY
public static final int BUILD_STATUS_NOTHING_TO_DO
public static final Identifier ZERO_INT_IDENTIFIER
protected DataObject aDO
protected java.util.Vector<MustButton> additionalButtons
protected int buildStatus
protected boolean[] rendererSet
protected java.util.Hashtable<java.lang.String,java.lang.String> values
protected java.util.Vector<DataTableAdministration.RowIdAndValues> changedRows
protected java.lang.String standardOrderByBegin
protected boolean veto
public DataTableAdministration(SessionData sessionData, java.lang.String tabIdAndLabel)
public static final int getRows(int filledRows)
protected abstract DataObject getAssignedDataObject()
protected abstract java.util.Vector<java.lang.String> getColumnNames()
protected java.util.Vector<java.lang.String> getColumnHeaders()
protected int[] getPreferedColumnSize()
protected void setAllToolTipText()
public void setColumnClass(java.lang.String colName, java.lang.Class<?> colClass)
colName
- the name of the columncolClass
- the class of the columnprotected void setColumnToolTip(int colIndex, java.lang.String toolTipText)
column
- the name of the columntoolTipText
- the column's tool tip textprotected InsertedButton addButton(java.lang.String label, int index)
label
- the label of the buttonindex
- the index where to place the buttonpublic void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
fetchValuesFromRequest
in class RemoteUserInterface
protected void saveDataObject()
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class MajorRemoteUserInterface
out
- the writer which will be read by the appletpublic void loadValues()
identifyValue
- the primary key integer value.protected java.lang.String getFilterCondition()
public void process(GeneralizedRequest request)
protected void buttonDelEvent()
protected abstract boolean isInUse(Identifier identifier)
keyIdentifier
- the identifier of the entry to be checkedprotected void buttonOkEvent()
protected boolean apply()
protected boolean isInputAccepted()
protected void select(int row)
row
- the row to be selectedpublic boolean isCancelAllowed()
public boolean isClosingAllowed()
MajorRemoteUserInterface
isClosingAllowed
in class MajorRemoteUserInterface
public void closeInstance()
closeInstance
in class MajorRemoteUserInterface
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de