public abstract class AbstractDataListInlay extends MustContainer implements DataPropertyAdministrationInlay.Owner, java.awt.event.ActionListener, DataChangeListener, java.lang.Runnable, MessageReceiver, NextPreviousSupporter
SimpleDataListFrame
and
ColumnDataListFrame
.Modifier and Type | Class and Description |
---|---|
static interface |
AbstractDataListInlay.Owner |
static class |
AbstractDataListInlay.Variant
The variant builder wrapper to simplify construction detail definition.
|
MustContainer.Creator
javax.swing.JComponent.AccessibleJComponent
destroyed, dirty, header, sd, specialImageIcon, statusLabel
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AbstractDataListInlay(AbstractDataListInlay.Owner owner)
Constructs a new frame for selecting data.
|
AbstractDataListInlay(AbstractDataListInlay.Owner owner,
AbstractDataListInlay.Variant variant)
Constructs a new frame for selecting data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsClosingDueToInactivity() |
void |
actionPerformed(java.awt.event.ActionEvent e)
Controls action events like button pressed.
|
protected void |
append(MustButton button)
Appends the passed button to the current AttributeList.
|
protected abstract void |
appendListEntry()
Adds an entry at the end of the table.
|
protected abstract void |
beginListExtension() |
protected abstract void |
beginListFill()
Beginning of list fills into a list model which is not currently assigned
to the view.
|
protected abstract void |
beginOfListThread()
Called when list thread begins.
|
protected void |
buildStatusLabel()
Builds a status label to receive individual status informations.
|
protected void |
chooseButtonAction()
The task to be done associated with the choose button.
|
protected abstract void |
clearSelection()
Clears the selection.
|
void |
closeInstance()
Closes the frame and its associated frames and destroys them.
|
protected abstract void |
completeListFill()
Ending of list fills into a list model which is not currently assigned
to the view.
|
protected void |
copyButtonAction()
The task to be done associated with the copy button.
|
protected MustButton |
createButton(java.lang.String imageName,
java.lang.String defaultLabel,
java.lang.String toolTipText) |
protected MustCheckBox |
createCheckBox(java.lang.String checkText) |
protected MustCheckBox |
createCheckBox(java.lang.String label,
java.lang.String checkText) |
protected CleartextClassification |
createCleartextClassification(java.lang.String label,
SelfChainingDataObject sourceDataObject,
java.lang.String visibleColumnName,
int depth) |
protected HalfDataComboBox |
createComboBox(DataObject sourceDataObject,
java.lang.String visibleColumn,
HalfDataComboBox.Variant variant)
Creates a combo box in new line with label as specified.
|
protected HalfDataComboBox |
createComboBox(DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice)
Creates a combo box in the same line as previously used.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a combo box in new line with label as specified.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
HalfDataComboBox.Variant variant)
Creates a combo box in new line with label as specified.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn)
Creates a combo box in the same line as previously used.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice)
Creates a combo box in new line with label as specified.
|
protected MustDateField |
createDateField()
Creates a date input field in the same line as previously used.
|
protected MustDateField |
createDateField(java.lang.String label)
Creates a date input field in a new line.
|
protected RadioButtonPanel |
createFragmentExactChoice() |
protected MustIntField |
createIntField(int length)
Creates a int input field in the same line as previously used.
|
protected MustIntField |
createIntField(java.lang.String label,
int length)
Creates a int field in a new line with its describing label.
|
protected void |
createListDataObjectIfNull() |
protected abstract DataObject |
createListDataObjects(DataObjectConstructionDetails docd)
Creates the main list data objects and other data object while list thread is
executing and returns the main list data object.
|
protected DataPropertyAdministrationInlay |
createPropertyAdministrationInlay() |
protected RadioButtonPanel |
createRadioButtons(java.lang.String label,
KeyValuePair[] content)
Creates a radio button group in a new line.
|
protected MustTextField |
createTextField(int length)
Creates a text input field in the same line as previously used.
|
protected MustTextField |
createTextField(java.lang.String label,
AbstractAttribute attribute)
Creates a new text field.
|
protected MustTextField |
createTextField(java.lang.String label,
int length)
Creates a new text field.
|
protected MustTextField |
createTextField(java.lang.String label,
int length,
DataObjectHolder.Creator choiceContentCreator,
java.lang.String columnName)
Creates a new text field.
|
protected void |
createTextFieldForGlobalSearch(java.lang.String label,
int length)
Creates a new text field for global search.
|
protected void |
createTextFieldForGlobalSearch(java.lang.String label,
int length,
boolean chooseAndOr)
Creates a new text field for global search.
|
protected VariableChoice |
createVariableChoice(java.lang.String dataLabel,
KeyValuePair[] keyValuePairs)
Constructs an new variable choice with the specified content.
|
protected VariableChoice |
createVariableChoice(java.lang.String dataLabel,
java.lang.String[][] content)
Creates a new variable choice with static content.
|
protected VariableChoice |
createVariableChoice(java.lang.String dataLabel,
java.lang.String[][] content,
boolean noChoicePossible)
Creates a new variable choice with static content.
|
protected VariableChoice |
createVariableChoice(java.lang.String dataLabel,
java.lang.String[][] content,
boolean noChoicePossible,
boolean suppressKey)
Creates a new variable choice with static content.
|
protected WhereCondition |
createWhereCondition()
Returns a new where condition object ready to apply specific SQL dialect aspects
- available after list button has been pressed first time, which is at least the case
in method getWhereCondition().
|
void |
dataChangePerformed(DataChangedEvent e) |
boolean |
deactivate() |
protected void |
delayedInititialActions()
Workaround: called a little bit later than the initial time.
|
protected boolean |
delete(Identifier identifier) |
protected void |
deleteButtonAction()
The task to be done associated with the delete button.
|
void |
destroy() |
void |
detailClosed() |
protected void |
endOfListThread()
Called when list thread ends.
|
void |
extendList()
Extends the list dynamically in thread.
|
protected void |
extendListAsThread()
Extends list.
|
protected void |
fillList()
Fills the List according to the specified criteria.
|
protected void |
free()
Releases external resources.
|
protected java.lang.String |
getAdditionalWhereConditionForGlobalSearch()
Returns additional where conditions for global search.
|
DataPropertyAdministrationInlay |
getAssociatedPropertyAdministrationInlay() |
java.lang.String |
getDifferingIconName() |
java.lang.String |
getElaboratedWhereCondition()
Returns the where condition.
|
abstract Identifier[] |
getIdentifiers() |
protected int |
getInitialXLocation()
Returns the initial horizontal location.
|
protected int |
getInitialYLocation()
Returns the initial vertical location.
|
protected DataObject |
getListDataObject()
Returns the data object used to fill the list according to user's query.
|
protected abstract int |
getListItemCount()
Returns the number of items in the table.
|
protected int |
getListModification()
Returns the list modification case which may be
,
or
|
int |
getListThreadPriority()
Returns the listThreadPriority.
|
protected static int |
getMaxListEntries()
Returns the limit of entries to be displayed in the list.
|
protected java.lang.String |
getNotFoundNotification()
Returns the text to notify the user that no entry is matching the selection.
|
protected abstract java.lang.String |
getOrderByFields()
Returns the fields to be used for the order by clause, separated by comma
as usual in SQL statements.
|
protected DataPresentationInlay.Creator |
getPresentationCreator() |
protected java.lang.Class<? extends DataPropertyPrint> |
getPrintClass()
Returns the print class - to be overridden by child if print class is available!
|
protected java.lang.String |
getPrivateWhereConditionNotExpert() |
protected abstract Identifier |
getSelectedIdentifier()
Returns the identifier (primary key) of the selected row.
|
protected abstract Identifier[] |
getSelectedIdentifiers()
Returns the identifiers (primary keys) of the selected rows.
|
protected java.util.Vector<Identifier> |
getSelectedIdentifierVector()
Returns the identifiers (primary keys) of the selected rows omitting negative values
which are used for sub-headers.
|
protected abstract int |
getSelectedIndex()
Returns the index of the selected item.
|
protected abstract java.lang.String |
getSelectedItem()
Returns the selected item.
|
protected abstract java.lang.String[] |
getSelectedItems()
Returns the selected items.
|
int |
getSelectedTab()
Returns the selected tab of the tabbed pane.
|
protected java.lang.String |
getSelectionFields()
Returns the fields to be selected, separated by comma as usual in SQL statements.
|
protected java.lang.String |
getTerritory()
Returns the territory of this function.
|
java.lang.String |
getTitle() |
protected abstract java.lang.String |
getWhereCondition()
Returns the where condition for the select statement to process the inquiry.
|
protected WhereConditionForPrepStmts |
getWhereCondtionnForPrepStmts() |
protected abstract void |
handleDataChangeIndividually(DataChangedEvent e)
Called from DataObject when data have been changed.
|
protected abstract void |
initCalledByAbstractDataListArea() |
protected boolean |
isChoosingAllowed()
Returns true if the user may choose the presented entries.
|
boolean |
isClosingAllowed(int closeConfirmId) |
protected boolean |
isConnectionOpen() |
protected boolean |
isCurrentListingCanceled() |
protected boolean |
isEditable() |
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected boolean |
isModificationAllowed()
Returns true if the user may modify the presented entries.
|
protected boolean |
isNewItemCreationAllowed()
Returns true if user may create a new item.
|
protected boolean |
isRealSearch()
Returns true if this inlay is used for real search, not as booking protocol or secondary information depending on a different main inlay.
|
protected void |
listButtonAction()
The task to be done associated with the list button.
|
protected void |
newButtonAction()
The task to be done associated with the "new" button.
|
protected void |
newDynamicSearchPanel(java.lang.String tabLabel,
int elementAmount,
SearchItem[] columns)
Constructs a new dynamic search panel
|
protected void |
newDynamicSearchPanel(java.lang.String tabLabel,
int elementAmount,
java.util.Vector<SearchItem> searchItems)
Constructs a new dynamic search panel
|
protected void |
newPanel()
Creates a new panel and adds it to the tabbed pane with a list for row subselection.
|
protected void |
newPanel(java.lang.String tabLabel)
Creates a new panel and adds it to the tabbed pane with a list for row subselection.
|
protected void |
newPanel(java.lang.String tabLabel,
MustMultChoice multChoice,
java.awt.Dimension preferedSize)
Adds a panel with multiple choice selection.
|
protected void |
newPanelWithExpertSearchTextArea(java.lang.String tabLabel)
Adds an expert search panel to the tabbed pane.
|
protected void |
presentButtonAction()
The task to be done associated with the present button.
|
protected void |
printButtonAction()
The task to be done associated with the print button.
|
protected void |
propertyButtonAction()
The task to be done associated with the property button.
|
void |
receive(java.lang.String message) |
void |
recover(MustContainer inlay) |
void |
refreshList()
Clears and fills the list in separate thread.
|
protected void |
refreshList(DataChangedEvent dce)
Clears and fills the list in separate thread, if the data change event is new.
|
protected abstract void |
removeAllOfTheList()
Removes all items of the table.
|
boolean |
requestFocusInWindow() |
protected abstract void |
requestListingFocus()
Request the focus to the list.
|
protected void |
reset() |
protected void |
resetExtensionMode()
Resets extension mode.
|
protected void |
resetList()
Resets the list by resetting extension mode plus removing all items of the list.
|
void |
run()
Execution of the list thread.
|
protected boolean |
select()
Transfers the select relevant specification to the data object.
|
protected abstract void |
selectListIndex(int indexToSelect)
Selects an entry of the list by index.
|
protected void |
setAutoInitialListFill(boolean wanted)
Sets the flag for automatic list fill when construction is done.
|
protected void |
setEditable(boolean editable) |
protected void |
setFieldFocus() |
protected void |
setInitialXLocation(int newInitialXLocation)
Sets the initial horizontal location.
|
protected void |
setInitialYLocation(int newInitialYLocation)
Sets the initial vertical location.
|
void |
setListThreadPriority(int listThreadPriority)
Sets the listThreadPriority.
|
static void |
setMaxListEntries(int newMaxListEntries)
Sets the limit of entries to be displayed in the list.
|
protected void |
setOnChoice(MustTextField textField,
java.lang.String tableName,
java.lang.String columnName)
Activates the function to search existing items in this table column.
|
void |
setPresentationCreator(DataPresentationInlay.Creator presentationCreator) |
abstract void |
setSelectedIdentifier(Identifier identifier)
Selects an item of the list / a row by identifier.
|
protected void |
setSpecialNewEntryExpression(java.lang.String specialNewEntryExpression) |
generalActionBeginnung, generalActionEnding, getAppResStr, getContentPane, getFrame, getHelpTarget, getHelpTopic, getImageIcon, getLocale, getRootPane, getTranslation, isCancelAllowed, isClosingAllowed, register, register, resetMessage, resetTemporaryMessage, setDefaultButton, setHelpContext, setHelpContext, setMessage, setMessageToKeep, setMessageToKeep, setTitle
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFrame
getNextIdentifier, getPreviousIdentifier, hasNext
public static final int LIST_MODIFICATION_APPEND
public static final int LIST_MODIFICATION_UPDATE
public static final int LIST_MODIFICATION_REMOVE
public static final int THREAD_MODE_RESET
public static final int THREAD_MODE_FILL
public static final int THREAD_MODE_EXTEND
public static final int LIST_REFRESH_OFF
public static final int LIST_REFRESH_SUSPENDED
public static final int LIST_REFRESH_PROCEEDING
protected AbstractDataListInlay.Owner owner
protected AbstractDataListInlay.Variant variant
protected HalfDataComboBox.Variant cbVariant
protected int listModification
protected DataPropertyAdministrationInlay associatedPropertyAdministrationInlay
protected java.lang.Thread listThread
protected int threadMode
protected boolean listIsToRefresh
protected int listRefreshState
protected static int maxListEntries
protected int currentMaxListEntries
protected boolean refreshCausedByListButton
protected int listIndex
protected MustPanel panelTop
protected MustTabbedPane mustTabbedPane1
protected javax.swing.JScrollPane listScrollPane
protected javax.swing.JSplitPane jSplitPane1
protected AttributeList currentAttributeList
protected MustPanel panelSelectButtons
protected MustPanel panelBottom
protected MustPanel panelButtons
protected MustButton buttonList
protected MustButton buttonNew
protected MustButton buttonPresent
protected MustButton buttonPresentSimple
protected MustButton buttonChoose
protected MustButton buttonProperties
protected MustButton buttonCopy
protected MustButton buttonPrint
protected MustButton buttonDelete
protected MustButton buttonClose
protected MustTextField globalSearchTextField
protected RadioButtonPanel searchCombination
protected RadioButtonPanel logic
protected java.util.Vector<SearchElement> searchElements
protected MustTextArea expertSearchTextArea
protected DataPresentation presentationInstance
protected DataPropertyPrint printInstance
protected DataPresentationInlay.Creator presentationCreator
protected Identifier lastSelectionIdentifier
protected InquiryHistory inquiryHistory
public AbstractDataListInlay(AbstractDataListInlay.Owner owner)
ownerFrame
- the frame form where this frame is calledpublic AbstractDataListInlay(AbstractDataListInlay.Owner owner, AbstractDataListInlay.Variant variant)
ownerFrame
- the frame form where this frame is calledprotected void setFieldFocus()
public boolean requestFocusInWindow()
requestFocusInWindow
in class javax.swing.JComponent
public java.lang.String getDifferingIconName()
public java.lang.String getTitle()
protected abstract void initCalledByAbstractDataListArea()
protected void buildStatusLabel()
protected MustButton createButton(java.lang.String imageName, java.lang.String defaultLabel, java.lang.String toolTipText)
protected void append(MustButton button)
button
- the button to addprotected java.lang.String getTerritory()
public void setPresentationCreator(DataPresentationInlay.Creator presentationCreator)
protected void setSpecialNewEntryExpression(java.lang.String specialNewEntryExpression)
protected void setEditable(boolean editable)
protected boolean isEditable()
protected int getInitialXLocation()
protected void setInitialXLocation(int newInitialXLocation)
newInitialXLocation
- the new initial horizontal locationprotected int getInitialYLocation()
protected void setInitialYLocation(int newInitialYLocation)
newInitialYLocation
- the new initial vertical locationpublic static void setMaxListEntries(int newMaxListEntries)
newMaxListEntries
- the limit of entries to be displayed in the listprotected static int getMaxListEntries()
protected void setAutoInitialListFill(boolean wanted)
wanted
- whether automatic list fill after construction is wishedpublic int getListThreadPriority()
public void setListThreadPriority(int listThreadPriority)
listThreadPriority
- The listThreadPriority to setpublic DataPropertyAdministrationInlay getAssociatedPropertyAdministrationInlay()
protected DataPropertyAdministrationInlay createPropertyAdministrationInlay()
protected DataObject getListDataObject()
protected int getListModification()
LIST_MODIFICATION_APPEND
,
LIST_MODIFICATION_UPDATE
or
LIST_MODIFICATION_REMOVE
protected void newPanel()
protected void newPanel(java.lang.String tabLabel)
tabLabel
- the label of the new tabprotected void newDynamicSearchPanel(java.lang.String tabLabel, int elementAmount, java.util.Vector<SearchItem> searchItems)
tabLabel
- the label of the new tabelementAmount
- the amount of elements to be createdsearchItems
- the search items - available columns where user can queryprotected void newDynamicSearchPanel(java.lang.String tabLabel, int elementAmount, SearchItem[] columns)
tabLabel
- the label of the new tabelementAmount
- the amount of elements to be createdcolumns
- the search items - available columns where user can queryprotected void newPanelWithExpertSearchTextArea(java.lang.String tabLabel)
tabLabel
- the label of the new expert search tabprotected void newPanel(java.lang.String tabLabel, MustMultChoice multChoice, java.awt.Dimension preferedSize)
tabLabel
- the label of the new tabmultChoice
- multiple choice to be presentedpreferedSize
- the preferred size of the scroll paneprotected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn)
dataLabel
- the line label.sourceDataObject
- 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 HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn)
dataLabel
- the line label.sourceDataObject
- 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 objectorderByColumn
- the column to be ordered byprotected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
dataLabel
- the line label.sourceDataObject
- 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 objectorderByColumn
- the column to be ordered bynameForNoChoice
- the expression to be used to indicate "no choice"protected HalfDataComboBox createComboBox(DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
sourceDataObject
- 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 objectorderByColumn
- the column to be ordered bynameForNoChoice
- the expression to be used to indicate "no choice"protected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, HalfDataComboBox.Variant variant)
dataLabel
- the line label.sourceDataObject
- 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 objectvariant
- the variant of the combo boxprotected HalfDataComboBox createComboBox(DataObject sourceDataObject, java.lang.String visibleColumn, HalfDataComboBox.Variant variant)
sourceDataObject
- 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 objectvariant
- the variant of the combo boxprotected VariableChoice createVariableChoice(java.lang.String dataLabel, java.lang.String[][] content)
dataLabel
- the line label.content
- the static content as a key / value tableprotected VariableChoice createVariableChoice(java.lang.String dataLabel, java.lang.String[][] content, boolean noChoicePossible)
dataLabel
- the line label.content
- the static content as a key / value tablenoChoicePossible
- if true, an item is offered which represents the "no choice"protected VariableChoice createVariableChoice(java.lang.String dataLabel, java.lang.String[][] content, boolean noChoicePossible, boolean suppressKey)
dataLabel
- the line label.content
- the static content as a key / value tablenoChoicePossible
- if true, an item is offered which represents the "no choice"suppressKey
- whether or not keys should be suppressed in ComboBoxprotected VariableChoice createVariableChoice(java.lang.String dataLabel, KeyValuePair[] keyValuePairs)
dataLabel
- the line label.keyValuePairs
- the content as an array of key value pairsprotected RadioButtonPanel createRadioButtons(java.lang.String label, 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 void createTextFieldForGlobalSearch(java.lang.String label, int length)
label
- the line labellength
- the length of the global search text fieldprotected void createTextFieldForGlobalSearch(java.lang.String label, int length, boolean chooseAndOr)
label
- the line labellength
- the length of the global search text fieldchooseAndOr
- whether or not user can choose AND or OR - caution: query could become to complex for some databases!protected MustTextField createTextField(java.lang.String label, AbstractAttribute attribute)
label
- the line labelattribute
- a reference attribute to use the same length as the specified attributeprotected MustTextField createTextField(java.lang.String label, int length)
label
- the line labellength
- the length of the text fieldprotected MustTextField createTextField(java.lang.String label, int length, DataObjectHolder.Creator choiceContentCreator, java.lang.String columnName)
label
- the line labellength
- the length of the text fieldchoiceContentCreator
- the creator of the data object which contains valid itemssourceColumnName
- the name of the column containing the valid itemsprotected MustTextField createTextField(int length)
length
- the length of the fieldprotected RadioButtonPanel createFragmentExactChoice()
protected MustDateField createDateField(java.lang.String label)
label
- the line labelprotected MustDateField createDateField()
protected MustIntField createIntField(java.lang.String label, int length)
label
- the line labellength
- the length of the fieldprotected MustIntField createIntField(int length)
length
- the length of the fieldprotected MustCheckBox createCheckBox(java.lang.String label, java.lang.String checkText)
protected MustCheckBox createCheckBox(java.lang.String checkText)
protected CleartextClassification createCleartextClassification(java.lang.String label, SelfChainingDataObject sourceDataObject, java.lang.String visibleColumnName, int depth)
protected void setOnChoice(MustTextField textField, java.lang.String tableName, java.lang.String columnName)
textField
- the text field whose input is to be completed.tableName
- the name of the table containing the valid itemscolumnName
- the name of the column containing the valid itemspublic abstract Identifier[] getIdentifiers()
public int getSelectedTab()
public void dataChangePerformed(DataChangedEvent e)
dataChangePerformed
in interface DataChangeListener
protected boolean isRealSearch()
protected boolean isConnectionOpen()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the action event to be interpretedprotected boolean isInputAccepted()
protected boolean isChoosingAllowed()
protected boolean isNewItemCreationAllowed()
protected boolean isModificationAllowed()
protected boolean isCurrentListingCanceled()
protected void listButtonAction()
protected void propertyButtonAction()
protected void presentButtonAction()
protected void chooseButtonAction()
protected void copyButtonAction()
protected void deleteButtonAction()
protected boolean delete(Identifier identifier)
protected void printButtonAction()
public boolean deactivate()
protected void reset()
public boolean acceptsClosingDueToInactivity()
public boolean isClosingAllowed(int closeConfirmId)
isClosingAllowed
in class MustContainer
public void closeInstance()
protected void newButtonAction()
protected void refreshList(DataChangedEvent dce)
dce
- data change event that may cause list refresh if it is newpublic void refreshList()
public void extendList()
protected WhereCondition createWhereCondition()
protected boolean select()
protected void createListDataObjectIfNull()
protected abstract DataObject createListDataObjects(DataObjectConstructionDetails docd)
docd
- the data object construction details (e.g. connection) to be used for all list data objectsprotected java.lang.String getNotFoundNotification()
public void run()
run
in interface java.lang.Runnable
protected void resetExtensionMode()
protected void fillList()
protected void extendListAsThread()
public java.lang.String getElaboratedWhereCondition()
protected java.lang.String getPrivateWhereConditionNotExpert()
protected java.lang.Class<? extends DataPropertyPrint> getPrintClass()
protected DataPresentationInlay.Creator getPresentationCreator()
protected java.lang.String getSelectionFields()
return DbField1, DbField2, DbField3;
protected abstract java.lang.String getWhereCondition()
return "DbFieldName like '%" + UIfield.getText() + "%'";
protected WhereConditionForPrepStmts getWhereCondtionnForPrepStmts()
protected java.lang.String getAdditionalWhereConditionForGlobalSearch()
protected abstract java.lang.String getOrderByFields()
protected abstract Identifier getSelectedIdentifier()
protected abstract Identifier[] getSelectedIdentifiers()
protected java.util.Vector<Identifier> getSelectedIdentifierVector()
protected abstract java.lang.String getSelectedItem()
protected abstract java.lang.String[] getSelectedItems()
protected abstract void clearSelection()
protected void resetList()
protected abstract void removeAllOfTheList()
protected abstract void beginListFill()
completeListFill()
protected abstract void appendListEntry()
protected abstract void completeListFill()
beginListFill()
protected abstract void handleDataChangeIndividually(DataChangedEvent e)
e
- the data change eventDataChangeListener
,
DataObject
protected abstract int getListItemCount()
protected abstract void requestListingFocus()
protected abstract int getSelectedIndex()
protected abstract void selectListIndex(int indexToSelect)
indexToSelect
- the index to be selectedpublic abstract void setSelectedIdentifier(Identifier identifier)
identifier
- the identifier of the item to be selectedprotected abstract void beginOfListThread()
protected abstract void beginListExtension()
protected void endOfListThread()
public void receive(java.lang.String message)
receive
in interface MessageReceiver
receive
in class MustContainer
public void recover(MustContainer inlay)
recover
in interface DataPropertyAdministrationInlay.Owner
public void detailClosed()
detailClosed
in interface PropertyAdministrationInlay.Owner
protected void delayedInititialActions()
protected void free()
MustContainer
free
in class MustContainer
public void destroy()
destroy
in class MustContainer
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de