public abstract class AbstractDataListFrame extends MustFrameWithStatusLabel implements java.awt.event.ActionListener, DataChangeListener, java.lang.Runnable, MessageReceiver
SimpleDataListFrame
and
ColumnDataListFrame
.javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
statusLabel
defaultCursor, ownerFrame, waitCursor
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
AbstractDataListFrame(java.awt.Frame ownerFrame)
Constructs a new frame for selecting data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsClosingDueToInactivity()
Returns true if frame accepts closing due to inactivity.
|
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 |
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(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn)
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)
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 the same line as previously used.
|
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 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 void |
createOrRecoverPropertyAdministration()
Creates or recovers the associated property administration frame
|
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,
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,
KeyValuePair[] keyValuePairs,
java.lang.String nameForNoChoice)
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().
|
protected void |
creationEnding()
Conclusion of the construction process.
|
void |
dataChangePerformed(DataChangedEvent e)
Called from data objects when data have been changed.
|
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.
|
protected abstract 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()
Frees (releases) references caused by this frame, particularly static
register entries.
|
protected java.lang.String |
getAdditionalWhereConditionForGlobalSearch()
Returns additional where conditions for global search.
|
protected DataPropertyAdministration |
getAssociatedPropertyAdministration()
Returns the associated property administration.
|
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 java.lang.Class<? extends DataPresentation> |
getPresentationClass()
Returns the presentation class - to be overridden by child if presentation class is available!
|
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.
|
protected abstract java.lang.String |
getWhereCondition()
Returns the where condition for the select statement to process the inquiry.
|
protected abstract void |
handleDataChangeIndividually(DataChangedEvent e)
Called from DataObject when data have been changed.
|
protected boolean |
isChoosingAllowed()
Returns true if the user may choose the presented entries.
|
boolean |
isClosingAllowed(int closeConfirmId)
Returns true if closing of the window is allowed.
|
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 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 |
packIfNotLaidOut()
Packs the frame if it isn't already laid-out by user.
|
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 |
refreshList()
Clears and fills the list in separate thread.
|
protected abstract void |
removeAllOfTheList()
Removes all items of the table.
|
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.
|
protected void |
resetListDataObjectWrapper() |
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 |
setAssociatedPropertyAdministration(java.lang.Class<? extends DataPropertyAdministration> associatedPropertyAdministrationClass)
Sets the associated property administration class.
|
protected void |
setAssociatedPropertyAdministration(DataPropertyAdministration associatedPropertyAdministration)
Sets the associated property administration.
|
protected void |
setAutoInitialListFill(boolean wanted)
Sets the flag for automatic list fill when construction is done.
|
protected void |
setEditable(boolean editable) |
protected void |
setInitialXLocation(int newInitialXLocation)
Sets the initial horizontal location.
|
protected void |
setInitialYLocation(int newInitialYLocation)
Sets the initial vertical location.
|
protected void |
setListDataObject(DataObject listDataObject)
Sets the data object to be used to fill the list.
|
void |
setListThreadPriority(int listThreadPriority)
Sets the listThreadPriority.
|
static void |
setMaxListEntries(int newMaxListEntries)
Sets the standard limit of entries to be displayed in the list.
|
void |
setMaxListEntriesIndividual(int newMaxListEntriesIndividual)
Sets the individual limit of entries to be displayed in the list.
|
abstract void |
setSelectedIdentifier(Identifier identifier)
Selects an item of the list / a row by identifier.
|
generalActionBeginnung, generalActionEnding, init, resetMessage, resetTemporaryMessage, setDefaultStatustext, setMessage, setMessageToKeep, setMessageToKeep
adjustSizeToPlausibleValue, bringToFrontAll, closeAll, closeAll, closeAllDueToInactivity, closeMainInstance, componentHidden, componentMoved, componentResized, componentShown, deiconifyAllExept, deregisterAsMainInstance, destroy, finalize, getAppResStr, getFrame, getHelpTarget, getHelpTopic, getLocale, getOrCreateMainInstance, getOrCreateMainInstance, getTranslation, iconifyAllExept, isCached, isClosingAllowedForAllFrames, isLaidOut, isRevivable, locateInCenter, logDebug, logError, logError, logError, logInfo, maximizeToBottomAndRight, open, packAndLocateInCenter, packAndLocateInCenterIfNotLaidOut, popupMessage, reInitialize, setDefaultIconImage, setDefaultIconImages, setHelpContext, setHelpContext, setIconImages, setLocaleStatically, setTitle, toFront, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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 int listModification
protected final javax.swing.JFrame rootFrame
protected int initialXLocation
protected int initialYLocation
protected DataPropertyAdministration associatedPropertyAdministration
protected java.lang.Thread listThread
protected int threadMode
protected boolean listIsToRefresh
protected int listRefreshState
protected static int maxListEntries
protected int maxListEntriesIndividual
protected int currentMaxListEntries
protected boolean refreshCausedByListButton
protected int listIndex
protected javax.swing.JPanel panelTop
protected MustTabbedPane mustTabbedPane1
protected javax.swing.JScrollPane listScrollPane
protected int tabCount
protected javax.swing.JSplitPane jSplitPane1
protected AttributeList[] tabAttributeList
protected AttributeList currentAttributeList
protected javax.swing.JPanel panelSelectButtons
protected javax.swing.JPanel panelButtons
protected MustButton buttonList
protected MustButton buttonNew
protected MustButton buttonPresent
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 DataPropertyPrint printInstance
protected DataPresentation presentationInstance
protected Identifier lastSelectionIdentifier
protected InquiryHistory inquiryHistory
public AbstractDataListFrame(java.awt.Frame ownerFrame)
ownerFrame
- the frame form where this frame is calledprotected MustButton createButton(java.lang.String imageName, java.lang.String defaultLabel, java.lang.String toolTipText)
protected void append(MustButton button)
button
- the button to addprotected void creationEnding()
protected java.lang.String getTerritory()
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 listpublic void setMaxListEntriesIndividual(int newMaxListEntriesIndividual)
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 setprotected void setAssociatedPropertyAdministration(DataPropertyAdministration associatedPropertyAdministration)
associatedPropertyAdministration
- the associated property administrationprotected void setAssociatedPropertyAdministration(java.lang.Class<? extends DataPropertyAdministration> associatedPropertyAdministrationClass)
associatedPropertyAdministrationClass
- the associated property administration classprotected DataPropertyAdministration getAssociatedPropertyAdministration()
protected void setListDataObject(DataObject listDataObject)
createListDataObjects(DataObjectConstructionDetails)
instead because it provides private DB connection for each threadlistDataObject
- the data object to be used to fill the listprotected void resetListDataObjectWrapper()
protected DataObject getListDataObject()
protected void packIfNotLaidOut()
MustFrame
packIfNotLaidOut
in class MustFrame
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 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 VariableChoice createVariableChoice(java.lang.String dataLabel, KeyValuePair[] keyValuePairs, java.lang.String nameForNoChoice)
dataLabel
- the line label.keyValuePairs
- the content as an array of key value pairsnameForNoChoice
- the expression to be used to indicate "no choice"protected 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, 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)
public abstract Identifier[] getIdentifiers()
protected void createOrRecoverPropertyAdministration()
public int getSelectedTab()
public void dataChangePerformed(DataChangedEvent e)
dataChangePerformed
in interface DataChangeListener
e
- the data change event that happened.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 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()
protected void reset()
public boolean acceptsClosingDueToInactivity()
MustFrame
acceptsClosingDueToInactivity
in class MustFrame
public boolean isClosingAllowed(int closeConfirmId)
MustFrame
isClosingAllowed
in class MustFrame
closeConfirmId
- the ID of the confirmation issue -
a way to avoid multiple question regarding the same issuepublic void closeInstance()
closeInstance
in class MustFrame
protected void newButtonAction()
public void refreshList()
public void extendList()
protected WhereCondition createWhereCondition()
protected boolean select()
protected void createListDataObjectIfNull()
protected 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 java.lang.Class<? extends DataPresentation> getPresentationClass()
protected java.lang.String getSelectionFields()
return DbField1, DbField2, DbField3;
protected abstract java.lang.String getWhereCondition()
return "DbFieldName like '%" + UIfield.getText() + "%'";
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 abstract void endOfListThread()
public void receive(java.lang.String message)
receive
in interface MessageReceiver
protected void delayedInititialActions()
protected void free()
MustFrame
free
in class MustFrame
MustFrame.destroy()
,
MustFrame.isRevivable()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de