Package offlineProcessing
Class OLProcessDialog
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
PamView.dialog.PamDialog
offlineProcessing.OLProcessDialog
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,WindowConstants
- Direct Known Subclasses:
CTProcessDialog
,TMOfflineFunctions.TMOLProcessDialog
Dialog for offline processing of a particular data type.
Will offer the user choices in how to select data (e.g. loaded, or all) and then scroll through those data passing one data unit at a time to a series of tasks which will have been added by the programmer, but can be individually turned off and on by the user. Each task will have a check box to enable it and an optional button to configure it. Bottom part of the dialog shows a progress indicator.
Will offer the user choices in how to select data (e.g. loaded, or all) and then scroll through those data passing one data unit at a time to a series of tasks which will have been added by the programmer, but can be individually turned off and on by the user. Each task will have a check box to enable it and an optional button to configure it. Bottom part of the dialog shows a progress indicator.
- Author:
- Douglas Gillespie
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Monitor for AWT calls back from the thing running the tasks which will be running in a separate thread.Nested classes/interfaces inherited from class PamView.dialog.PamDialog
PamDialog.PopupListener
Nested classes/interfaces inherited from class java.awt.Dialog
Dialog.ModalExclusionType, Dialog.ModalityType
Nested classes/interfaces inherited from class java.awt.Window
Window.Type
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
-
Field Summary
Fields inherited from class PamView.dialog.PamDialog
serialVersionUID
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
-
Constructor Summary
ConstructorDescriptionOLProcessDialog
(Window parentFrame, OfflineTaskGroup taskGroup, String title) -
Method Summary
Modifier and TypeMethodDescriptionvoid
called when the cancel button is pressed before the dialog closes.void
// * Enable controls within the dialog with the input OfflineTask group being null.void
enableControls
(OfflineTask task) Enable controls in the dialog.Get the current status of the dialog.The data selection ComboBox.Get the delete old data check boxGet the main panel.boolean
called when the Ok button is pressed.JButton[]
Get the current list of settings buttons which will mirror the current offline tasks available in the dialog.Get list of check boxes for the offline tasksGet the task group for the dialog.boolean
Check whether a note is required.void
void
Remove the notes panel.void
standard function which should us used to copy default parameters into the dialog controls.void
setNeedaNote
(boolean isNeedaNote) Set whether a note is required before processingvoid
void
setVisible
(boolean visible) Methods inherited from class PamView.dialog.PamDialog
addComponent, closeLater, enableHelpButton, exportSettings, formatDouble, getButtonPanel, getCancelButton, getCancelObserver, getDefaultButton, getHelpButton, getHelpPoint, getOkButton, getWarningTitle, importSettings, isMoveToMouse, isSendGeneralSettingsNotification, isWarnDefaultSetting, moveToLocation, moveToMouseLocation, restoreDefaultSettingsQ, setCancelObserver, setDialogComponent, setDoubleValue, setHelpPoint, setMoveToMouse, setSendGeneralSettingsNotification, setWarnDefaultSetting, setWarningTitle, showQuestion, showQuestion, showQuestion, showWarning, showWarning, showWarning
Methods inherited from class javax.swing.JDialog
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
Methods inherited from class java.awt.Window
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, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
Methods inherited from class java.awt.Container
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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, 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, 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, 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, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
settings
public static org.kordamp.ikonli.swing.FontIcon settings
-
-
Constructor Details
-
OLProcessDialog
-
-
Method Details
-
removeNotePanel
public void removeNotePanel()Remove the notes panel. -
getMainPanel
Get the main panel. This can be used to add additional controls if needed.- Returns:
- the main panel.
-
getDeleteOldDataBox
Get the delete old data check box- Returns:
- the delete data check box;
-
getDataSelBox
The data selection ComboBox. Use this for changing names. -
enableControls
public void enableControls()// * Enable controls within the dialog with the input OfflineTask group being null. -
enableControls
Enable controls in the dialog.- Parameters:
task
- - the task group in whihc enable controls has been called from
-
cancelButtonPressed
public void cancelButtonPressed()Description copied from class:PamDialog
called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.- Specified by:
cancelButtonPressed
in classPamDialog
-
getParams
public boolean getParams()Description copied from class:PamDialog
called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog. -
setTaskToolTips
public void setTaskToolTips() -
newDataSelection
public void newDataSelection() -
restoreDefaultSettings
public void restoreDefaultSettings()Description copied from class:PamDialog
standard function which should us used to copy default parameters into the dialog controls.- Specified by:
restoreDefaultSettings
in classPamDialog
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisible
in classPamDialog
-
getCurrentStatus
Get the current status of the dialog.- Returns:
- the current status.
-
getSettingsButtons
Get the current list of settings buttons which will mirror the current offline tasks available in the dialog.- Returns:
- list of settings buttons.
-
getTaskCheckBoxs
Get list of check boxes for the offline tasks- Returns:
- a list of check boxes.
-
getTaskGroup
Get the task group for the dialog.- Returns:
- the taks group.
-
isNeedaNote
public boolean isNeedaNote()Check whether a note is required.- Returns:
- true if a note is required.
-
setNeedaNote
public void setNeedaNote(boolean isNeedaNote) Set whether a note is required before processing- Parameters:
isNeedaNote
- - true to require user to input a note.
-
getGlobalProgress
-
getTasksPanel
-