Class MacOSXErrorPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.jdesktop.swingx.plaf.ErrorPaneUI
org.jdesktop.swingx.plaf.basic.BasicErrorPaneUI
org.jdesktop.swingx.plaf.macosx.MacOSXErrorPaneUI
Ok, the Title becomes the first line in the error dialog
The text immediately follows. Then come the "Details". This is a
toggle button with an icon and text but no border and no background. The icon
looks like a tree toggle (arrow right or down).
There is then more optional text. The best way to support this is to look
in the client properties of the JXErrorPane for any "sub text". Ideally this
sub text would be part of the ErrorInfo. Maybe I should just add it there?
Finally come the buttons. If there is no report action and the error invalid input: '<' fatal,
the shown ok button should say "close". Otherwise, if there is no report action
but the error >= fatal, it should say "Exit Application". If there is a report
action but error invalid input: '<' fatal, it should say "Don't Send" for ok, "Send Report" for
the report button. If there is a report action and the error >= fatal, then
one button should say "Exit", and the report button should say
"Send Report and Exit".
Whenever either button is clicked (ok button or report button), the "close dialog"
procedure should occur.
-
Field Summary
FieldsFields inherited from class BasicErrorPaneUI
CLASS_NAME, closeButton, copyToClipboardButton, copyToClipboardListener, detailButton, detailListener, details, detailsPanel, detailsScrollPane, errorMessage, errorPaneListener, errorScrollPane, iconLabel, pane, reportButton -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureDetailsButton(boolean expanded) protected voidconfigureReportAction(AbstractActionExt reportAction) protected LayoutManagerprotected LayoutManagerCreate and return the LayoutManager to use with the error pane.private voidstatic ComponentUIprotected intgetErrorDialog(Component owner) Creates new ErrorPane wrapped in the dialog window centered at provided owner component.getErrorFrame(Component owner) Creates new ErrorPane wrapped in the frame window centered at provided owner component.getErrorInternalFrame(Component owner) Creates new ErrorPane wrapped in the internal frame window centered at provided owner component.protected voidreinit()Reconfigures the dialog if settings have changed, such as the errorInfo, errorIcon, warningIcon, etcMethods inherited from class BasicErrorPaneUI
calculatePreferredSize, getDefaultErrorIcon, getDefaultWarningIcon, getDetailsAsHTML, installComponents, installDefaults, installListeners, installUI, uninstallComponents, uninstallDefaults, uninstallListeners, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
titleLabel
-
disclaimerText
-
-
Constructor Details
-
MacOSXErrorPaneUI
public MacOSXErrorPaneUI()Creates a new instance of BasicErrorPanelUI
-
-
Method Details
-
configureDetailsButton
protected void configureDetailsButton(boolean expanded) - Overrides:
configureDetailsButtonin classBasicErrorPaneUI
-
configureReportAction
- Overrides:
configureReportActionin classBasicErrorPaneUI
-
createUI
-
getErrorFrame
Creates new ErrorPane wrapped in the frame window centered at provided owner component.- Overrides:
getErrorFramein classBasicErrorPaneUI- Parameters:
owner- component to center created error frame at.- Returns:
- New ErrorPane instance wrapped in JFrame.
-
getErrorDialog
Creates new ErrorPane wrapped in the dialog window centered at provided owner component.- Overrides:
getErrorDialogin classBasicErrorPaneUI- Parameters:
owner- component to center created error dialog at.- Returns:
- New ErrorPane instance wrapped in JDialog.
-
getErrorInternalFrame
Creates new ErrorPane wrapped in the internal frame window centered at provided owner component.- Overrides:
getErrorInternalFramein classBasicErrorPaneUI- Parameters:
owner- component to center created error frame at.- Returns:
- New ErrorPane instance wrapped in JInternalFrame.
-
createErrorPaneLayout
Create and return the LayoutManager to use with the error pane.- Overrides:
createErrorPaneLayoutin classBasicErrorPaneUI
-
createDetailPanelLayout
- Overrides:
createDetailPanelLayoutin classBasicErrorPaneUI
-
reinit
protected void reinit()Reconfigures the dialog if settings have changed, such as the errorInfo, errorIcon, warningIcon, etc- Overrides:
reinitin classBasicErrorPaneUI
-
getDetailsHeight
protected int getDetailsHeight()- Overrides:
getDetailsHeightin classBasicErrorPaneUI
-
createExtraComponents
private void createExtraComponents()
-