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
Nested ClassesModifier and TypeClassDescriptionclassMonitor 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.PopupListenerNested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy - 
Field Summary
FieldsFields inherited from class PamView.dialog.PamDialog
serialVersionUIDFields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE - 
Constructor Summary
ConstructorsConstructorDescriptionOLProcessDialog(Window parentFrame, OfflineTaskGroup taskGroup, String title) Create dialog to process a group of offline tasks.OLProcessDialog(Window parentFrame, OfflineTaskGroup taskGroup, String title, boolean batchMode, TaskMonitor extraMonitor) Create dialog to process a group of offline tasks. - 
Method Summary
Modifier and TypeMethodDescriptionvoidcalled when the cancel button is pressed before the dialog closes.void// * Enable controls within the dialog with the input OfflineTask group being null.voidenableControls(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.booleancalled 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.booleanCheck whether a note is required.voidprotected voidvoidRemove the notes panel.voidstandard function which should us used to copy default parameters into the dialog controls.voidsetNeedaNote(boolean isNeedaNote) Set whether a note is required before processingvoidbooleansettingsAction(Component component, OfflineTask offlineTask) Settings button action.voidsetVisible(boolean visible) Methods inherited from class PamView.dialog.PamDialog
addComponent, closeLater, enableHelpButton, exportSettings, formatDouble, getButtonPanel, getCancelButton, getCancelObserver, getDefaultButton, getFrame, getHelpButton, getHelpPoint, getOkButton, getWarningTitle, importSettings, isMoveToMouse, isSendGeneralSettingsNotification, isWarnDefaultSetting, moveToLocation, moveToMouseLocation, positionInFrame, restoreDefaultSettingsQ, setCancelObserver, setCentreLocation, setCloseLocation, setDialogComponent, setDoubleValue, setHelpPoint, setMoveToMouse, setSendGeneralSettingsNotification, setWarnDefaultSetting, setWarningTitle, showQuestion, showQuestion, showQuestion, showWarning, showWarning, showWarningMethods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackMethods 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, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontMethods 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, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, 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
Create dialog to process a group of offline tasks.- Parameters:
 parentFrame-taskGroup-title-
 - 
OLProcessDialog
public OLProcessDialog(Window parentFrame, OfflineTaskGroup taskGroup, String title, boolean batchMode, TaskMonitor extraMonitor) Create dialog to process a group of offline tasks.- Parameters:
 parentFrame-taskGroup-title-batchMode- only true for batch processing. Will disable everything and start jobs automatically.extraMonitor- additional task monitor that will get forwarded task mon messages when tasks running.
 
 - 
 - 
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. - 
okButtonPressed
protected void okButtonPressed()- Overrides:
 okButtonPressedin classPamDialog
 - 
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:PamDialogcalled 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:
 cancelButtonPressedin classPamDialog
 - 
getParams
public boolean getParams()Description copied from class:PamDialogcalled 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:PamDialogstandard function which should us used to copy default parameters into the dialog controls.- Specified by:
 restoreDefaultSettingsin classPamDialog
 - 
setVisible
public void setVisible(boolean visible) - Overrides:
 setVisiblein classPamDialog
 - 
settingsAction
Settings button action.- Parameters:
 component-offlineTask-- Returns:
 
 - 
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
 
 -