public abstract class ParameterDialog extends MustDialog implements ModifiedInformer, java.awt.event.WindowListener, java.awt.event.ActionListener
Modifier and Type | Class and Description |
---|---|
static interface |
ParameterDialog.ThreadSpecification |
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPT_REPAETED_MESSAGE |
protected MustButton |
buttonCancel |
protected MustButton |
buttonOk |
protected int |
countTab |
protected int |
countTextField |
protected AttributeList |
currentAttributeList |
protected boolean |
isAttributeListToPack |
protected boolean |
isCanceled |
protected javax.swing.JComponent |
lastComponent |
protected java.util.HashSet<ModifiedInformer> |
modifiedInformers |
protected MustTabbedPane |
mustTabbedPane1 |
protected MustTextField[] |
MustTextField |
static int |
NEW_LINE |
protected javax.swing.JPanel |
panelBottom |
protected javax.swing.JPanel |
panelButtons |
protected boolean |
programmaticChange |
protected MustStatusLabel |
statusLabel |
static int |
STAY_IN_LINE |
protected java.util.Vector<AttributeList> |
tabAttributeList |
protected long |
timeSetVisible |
alreadyMadeInvisible, defaultCursor, ownerDialog, ownerFrame, sd, storedLayout, waitCursor
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
ParameterDialog() |
ParameterDialog(java.awt.Frame ownerFrame)
Constructs a new parameter dialog.
|
ParameterDialog(MustDialog ownerDialog)
Constructs a new parameter dialog.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsClosingDueToInactivity()
Returns true if frame accepts closing due to inactivity.
|
protected abstract void |
act() |
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addCenterTabPanel(javax.swing.JPanel p,
java.lang.String tabLabel) |
protected void |
addHelpButton(java.lang.String topic)
Adds a help button to the panel.
|
protected void |
addHelpButton(java.lang.String topic,
java.lang.String subTopic)
Adds a help button to the panel.
|
protected void |
append(javax.swing.JComponent component) |
protected void |
append(java.lang.String infoExtension) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
protected void |
construct() |
protected MustCheckBox |
createCheckBox(java.lang.String checkLabel)
Creates a check box.
|
protected MustCheckBox |
createCheckBox(java.lang.String lineLabel,
java.lang.String checkLabel)
Creates a check box.
|
protected VariableChoiceNumKey |
createChoice(KeyValuePairNum[] content) |
protected VariableChoice |
createChoice(java.lang.String label,
KeyValuePair[] content)
Creates a variable choice.
|
protected VariableChoiceNumKey |
createChoice(java.lang.String label,
KeyValuePairNum[] content) |
protected HalfDataComboBox |
createComboBox(java.lang.String lineLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn) |
protected HalfDataComboBox |
createComboBox(java.lang.String lineLabel,
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 lineLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn) |
protected HalfDataComboBox |
createComboBox(java.lang.String lineLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice) |
protected ParamPrinterChooser |
createDataPrinterChooser(java.lang.String label,
java.lang.Class<? extends java.lang.Object> printingClass,
ParametersForPrinting parameters)
Creates, registers and returns a DataPrinterChooser.
|
protected ParamPrinterChooser |
createDataPrinterChooser(java.lang.String label,
java.lang.Class<? extends java.lang.Object> printingClass,
ParametersForPrinting parameters,
java.util.Vector<java.lang.String> additionalPrinter)
Creates, registers and returns a DataPrinterChooser.
|
protected MustDateField |
createDateField()
Creates a date input field in same line.
|
protected MustDateField |
createDateField(java.lang.String lineLabel)
Creates a date input field.
|
protected MustDecimalField |
createDecimalField()
Creates a decimal input field
|
protected MustDecimalField |
createDecimalField(java.lang.String lineLabel)
Creates a decimal input field
|
protected DirectorySpecification |
createDirectorySpecification(java.lang.String label,
java.lang.String defaultValue) |
protected FileSpecification |
createFileSpecification(java.lang.String label) |
protected FileSpecification |
createFileSpecification(java.lang.String label,
java.lang.String defaultValue) |
protected FileSpecification2 |
createFileSpecification2(java.lang.String label,
java.lang.String defaultValue) |
protected MustIntField |
createIntField()
Creates a integer input field in the same line.
|
protected MustIntField |
createIntField(java.lang.String lineLabel)
Creates a integer input field
|
protected MustLongField |
createLongField(java.lang.String lineLabel)
Creates a long input field
|
protected MustPasswordField |
createPasswordField(java.lang.String lineLabel,
int length) |
protected RadioButtonPanel |
createRadioButtons(java.lang.String label,
KeyValuePair[] content)
Creates a radio button group in a new line.
|
protected RadioButtonPanel |
createRadioButtons(java.lang.String lineLabel,
java.lang.String[] keys,
java.lang.String[] labels) |
protected MustTextArea |
createTextArea(java.lang.String label)
Creates a new text field in a new line
|
protected MustTextArea |
createTextArea(java.lang.String lineLabel,
int control)
area
Creates a new text field
|
protected MustTextArea |
createTextAreaInScrollPane(java.lang.String label)
Creates a new text area in a scroll pane.
|
protected MustTextField |
createTextField(int length)
Creates a new text field in the same line
|
protected MustTextField |
createTextField(java.lang.String label,
int length)
Creates a new text field in a new line
|
protected MustTextField |
createTextField(java.lang.String label,
int length,
DataObject choiceContentDo,
java.lang.String column)
Creates a new text field in a new line
|
protected MustTextField |
createTextField(java.lang.String lineLabel,
int length,
int control)
Creates a new text field
|
protected javax.swing.JLabel |
createTextPresenter() |
protected javax.swing.JLabel |
createTextPresenter(java.lang.String lineLabel) |
protected void |
creationEnding()
Conclusion of the construction process.
|
void |
generalActionBeginnung() |
protected boolean |
isCancelAllowed()
Returns true if it is allowed to cancel user interaction.
|
boolean |
isCanceled() |
protected boolean |
isInputAccepted()
Returns true if user input is accepted - override this method to check user input.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
void |
newPanel() |
protected void |
newPanel(java.lang.String tabLabel) |
protected void |
optional()
Adds the hint 'optional entry' to the last component.
|
protected void |
perform(java.awt.event.ActionEvent e)
Override to perform individual stuff.
|
protected void |
presentFailure(java.lang.Exception e) |
void |
setLocation(int x,
int y) |
protected void |
setMessage(java.lang.String message)
Sets the message to be read by the user, it is not reset by
generalActionEnding when action completed.
|
protected void |
setMessageToKeep(java.lang.String messageToKeep)
Sets the message to be read by the user, it is not reset by
generalActionEnding when action completed.
|
protected void |
setMessageToKeep(java.lang.String messageToKeep,
java.lang.Object origin)
Sets the message to be read by the user, it is not reset by
generalActionEnding when action completed.
|
void |
setSize(int width,
int height) |
void |
setThreadSpecification(ParameterDialog.ThreadSpecification threadSpecification)
Sets the specification of the thread to start if wanted so.
|
protected void |
setToolTipText(java.lang.String toolTipText)
Sets the tool tip text of the last created data component.
|
void |
setVisible(boolean b) |
void |
windowActivated(java.awt.event.WindowEvent e) |
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e) |
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
adjustSizeToPlausibleValue, closeAll, closeAllDueToInactivity, closeInstance, free, getAppResStr, getFrame, getHelpTarget, getHelpTopic, getRootPane, getTranslation, isLaidOut, locateInCenter, packAndLocateInCenter, packAndLocateInCenterIfNotLaidOut, packIfNotLaidOut, popupMessage, prepareForProgrammaticalClosing, register, setDefaultLocation, setDefaultSize, setHelpContext, setHelpContext, setIconImages, setImageIcon, setTitle
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setType, toFront
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, remove, 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 java.lang.String ACCEPT_REPAETED_MESSAGE
protected boolean isCanceled
public static final int NEW_LINE
public static final int STAY_IN_LINE
protected MustTabbedPane mustTabbedPane1
protected int countTab
protected int countTextField
protected java.util.Vector<AttributeList> tabAttributeList
protected AttributeList currentAttributeList
protected boolean isAttributeListToPack
protected java.util.HashSet<ModifiedInformer> modifiedInformers
protected javax.swing.JPanel panelBottom
protected javax.swing.JPanel panelButtons
protected MustStatusLabel statusLabel
protected MustButton buttonOk
protected MustButton buttonCancel
protected MustTextField[] MustTextField
protected javax.swing.JComponent lastComponent
protected boolean programmaticChange
protected long timeSetVisible
public ParameterDialog()
public ParameterDialog(java.awt.Frame ownerFrame)
ownerFrame
- the frame who owns the dialogpublic ParameterDialog(MustDialog ownerDialog)
ownerFrame
- the frame who owns the dialogprotected void construct()
public void setThreadSpecification(ParameterDialog.ThreadSpecification threadSpecification)
threadSpecification
- the thread specification to useprotected void creationEnding()
public void setVisible(boolean b)
setVisible
in class MustDialog
public void setSize(int width, int height)
setSize
in class java.awt.Window
public void setLocation(int x, int y)
setLocation
in class java.awt.Window
protected void addHelpButton(java.lang.String topic)
topic
- the associated topic of the help contextprotected void addHelpButton(java.lang.String topic, java.lang.String subTopic)
topic
- the associated topic of the help contextsubTopic
- the associated sub topic of the help contextpublic void newPanel()
protected void newPanel(java.lang.String tabLabel)
protected MustTextArea createTextArea(java.lang.String label)
label
- the label to showprotected MustTextArea createTextArea(java.lang.String lineLabel, int control)
lineLabel
- the line labelcontrol
- controls line wrapprotected MustTextArea createTextAreaInScrollPane(java.lang.String label)
lineLabel
- the line labelprotected MustTextField createTextField(java.lang.String label, int length)
label
- the label to showlength
- the length of the fieldprotected MustTextField createTextField(java.lang.String label, int length, DataObject choiceContentDo, java.lang.String column)
label
- the label to showlength
- the length of the fieldchoiceContentDo
- the data object containing valid itemscolumn
- the name of the column containing the valid itemsprotected MustTextField createTextField(int length)
length
- the length of the fieldprotected MustTextField createTextField(java.lang.String lineLabel, int length, int control)
lineLabel
- the line labellength
- the length of the text fieldcontrol
- controls line wrapprotected javax.swing.JLabel createTextPresenter(java.lang.String lineLabel)
protected javax.swing.JLabel createTextPresenter()
protected MustPasswordField createPasswordField(java.lang.String lineLabel, int length)
protected MustDateField createDateField(java.lang.String lineLabel)
lineLabel
- the line labelprotected MustDateField createDateField()
protected MustDecimalField createDecimalField(java.lang.String lineLabel)
lineLabel
- the line labelprotected MustDecimalField createDecimalField()
protected MustIntField createIntField(java.lang.String lineLabel)
lineLabel
- the line labelprotected MustIntField createIntField()
protected MustLongField createLongField(java.lang.String lineLabel)
lineLabel
- the line labelprotected MustCheckBox createCheckBox(java.lang.String checkLabel)
checkLabel
- the label of the check boxprotected MustCheckBox createCheckBox(java.lang.String lineLabel, java.lang.String checkLabel)
lineLabel
- the line labelcheckLabel
- the label of the check boxprotected RadioButtonPanel createRadioButtons(java.lang.String lineLabel, java.lang.String[] keys, java.lang.String[] labels)
protected HalfDataComboBox createComboBox(java.lang.String lineLabel, DataObject sourceDataObject, java.lang.String visibleColumn)
protected HalfDataComboBox createComboBox(java.lang.String lineLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn)
protected HalfDataComboBox createComboBox(java.lang.String lineLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
protected HalfDataComboBox createComboBox(java.lang.String lineLabel, 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 VariableChoice createChoice(java.lang.String label, KeyValuePair[] content)
label
- the label of the new linecontent
- the static content of the variable choiceprotected VariableChoiceNumKey createChoice(java.lang.String label, KeyValuePairNum[] content)
protected VariableChoiceNumKey createChoice(KeyValuePairNum[] content)
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 ParamPrinterChooser createDataPrinterChooser(java.lang.String label, java.lang.Class<? extends java.lang.Object> printingClass, ParametersForPrinting parameters)
label
- the label of the new lineprintingClass
- the printing class which is to be attributedprotected ParamPrinterChooser createDataPrinterChooser(java.lang.String label, java.lang.Class<? extends java.lang.Object> printingClass, ParametersForPrinting parameters, java.util.Vector<java.lang.String> additionalPrinter)
label
- the label of the new lineprintingClass
- the printing class which is to be attributedadditionalPrinter
- additional (network) printer to offerprotected DirectorySpecification createDirectorySpecification(java.lang.String label, java.lang.String defaultValue)
protected FileSpecification createFileSpecification(java.lang.String label)
protected FileSpecification createFileSpecification(java.lang.String label, java.lang.String defaultValue)
protected FileSpecification2 createFileSpecification2(java.lang.String label, java.lang.String defaultValue)
protected void append(java.lang.String infoExtension)
protected void append(javax.swing.JComponent component)
protected void optional()
protected void setToolTipText(java.lang.String toolTipText)
toolTipText
- the tool tip text of the last created data componentpublic final void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
protected void perform(java.awt.event.ActionEvent e)
e
- the ActionEvent to react onprotected boolean isCancelAllowed()
public void addCenterTabPanel(javax.swing.JPanel p, java.lang.String tabLabel)
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
windowClosing
in class MustDialog
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
windowClosed
in class MustDialog
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
windowOpened
in class MustDialog
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
windowActivated
in class MustDialog
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
windowDeactivated
in class MustDialog
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
windowIconified
in class MustDialog
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
windowDeiconified
in class MustDialog
public void componentHidden(java.awt.event.ComponentEvent e)
public void componentShown(java.awt.event.ComponentEvent e)
public void componentMoved(java.awt.event.ComponentEvent e)
public void componentResized(java.awt.event.ComponentEvent e)
public void generalActionBeginnung()
public boolean isCanceled()
protected boolean isInputAccepted()
protected void setMessage(java.lang.String message)
messageToKeep
- the message for the userprotected void setMessageToKeep(java.lang.String messageToKeep)
messageToKeep
- the message for the userprotected void setMessageToKeep(java.lang.String messageToKeep, java.lang.Object origin)
messageToKeep
- the message for the userorigin
- the origin witch caused messageas origin to suppress message popup
public boolean acceptsClosingDueToInactivity()
MustDialog
acceptsClosingDueToInactivity
in class MustDialog
protected abstract void act()
protected void presentFailure(java.lang.Exception e)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de