|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--org.shaker.dwu.BugDialog
This class provides a message dialog, that informs the user about the occured error. The BugProfile can be submitted and previewed via a seperate tab.
Inner classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
Inner classes inherited from class java.awt.Dialog |
java.awt.Dialog.AccessibleAWTDialog |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
private BugProfile |
bugProfile
The Profile of the occured bug |
private javax.swing.JTextArea |
commentsArea
The user comment TextArea |
private static java.lang.String |
DISPOSE
ActionCommand: Dispose this dialog |
private static java.lang.String |
PREVIEW
ActionCommand: show message preview |
private javax.swing.JButton |
previewBtn
Send later button |
private javax.swing.JEditorPane |
previewPane
The mail preview TextArea |
private static java.lang.String |
SEND_LATER
ActionCommand: Send later (just dispose) |
private static java.lang.String |
SEND_NOW
ActionCommand: Send reports |
private javax.swing.JButton |
sendBtn
Send button |
private javax.swing.JButton |
sendLaterBtn
Send later button |
private static Settings |
SETTINGS
A reference to the settings |
private static java.lang.String |
SHOW_WIZARD
ActionCommand: Start the configuration wizard |
private javax.swing.JLabel |
statusLabel
The statusbar |
private javax.swing.JTabbedPane |
tabPane
Dialog`s tabbedpane. |
private javax.swing.JButton |
wizardBtn
Configuration wizard starter |
Fields inherited from class javax.swing.JDialog |
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, showWithParent, state, warningString, weakThis, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
(package private) |
BugDialog(BugProfile profile,
java.awt.Frame parent,
java.lang.String error,
java.lang.String hint)
Constructor for a BugProfile driven dialog. |
(package private) |
BugDialog(java.awt.Frame parent,
java.lang.String error,
java.lang.String solution)
Constructor for a simple info dialog. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent ae)
This method handles occuring events, like button usage etc. |
private javax.swing.JPanel |
initControlPane(boolean showErrorButton)
Inits the controlpane. |
private void |
initPreviewPane()
Inits the report previewer pane by including the mailbody. |
private void |
initReportPane(boolean setShown)
Inits the shortened report panel. |
private void |
initUserInfoPanel(java.lang.String error,
java.lang.String solution)
Inits the general description pane (what happened, what can be done..). |
private void |
resetStatus(java.lang.String dictKey,
boolean isError)
Resets the embedded status panel. |
private void |
showWizard()
Creates and shows the configuration wizard. |
private void |
togglePreview()
This method toggles the visibility of the ReportMail preview tab. |
Methods inherited from class javax.swing.JDialog |
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Dialog |
|
Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, 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, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private static final java.lang.String DISPOSE
private static final java.lang.String SHOW_WIZARD
private static final java.lang.String SEND_NOW
private static final java.lang.String SEND_LATER
private static final java.lang.String PREVIEW
private static final Settings SETTINGS
private final javax.swing.JLabel statusLabel
private final javax.swing.JTabbedPane tabPane
private final javax.swing.JButton sendBtn
private final javax.swing.JButton sendLaterBtn
private final javax.swing.JButton previewBtn
private final javax.swing.JButton wizardBtn
private final javax.swing.JTextArea commentsArea
private final javax.swing.JEditorPane previewPane
private final BugProfile bugProfile
Constructor Detail |
BugDialog(BugProfile profile, java.awt.Frame parent, java.lang.String error, java.lang.String hint)
profile
- a bugprofile that has never been submittedparent
- the parental frameerror
- error description.solution
- an optional solution/hint regarding this errorfor a simple, BugProfile-less
messagedialog.
BugDialog(java.awt.Frame parent, java.lang.String error, java.lang.String solution)
parent
- parental frameerror
- the error descriptionsolution
- a optional solutionfor a BugProfile driven
dialog
Method Detail |
private void initUserInfoPanel(java.lang.String error, java.lang.String solution)
error
- a string representation of the errorsolution
- a optional hintprivate void initReportPane(boolean setShown)
setShown
- preselect the bugreport paneprivate void initPreviewPane()
private javax.swing.JPanel initControlPane(boolean showErrorButton)
showErrorButton
- indicates wheter to show the wizardstarter
buttonprivate void resetStatus(java.lang.String dictKey, boolean isError)
dictKey
- the message dictionary keyisError
- is true, the label has a red foregroundprivate void showWizard()
for a description of the wizard
private void togglePreview()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
ae
- an ActionEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |