Package xal.extension.application
Interface XalDocumentView
- All Superinterfaces:
RootPaneContainer
- All Known Implementing Classes:
AcceleratorWindow,DefaultAcceleratorWindow,DefaultXalWindow,XalInternalWindow,XalWindow
Interface of XAL windows.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCapture the window as an image.intdisplayConfirmDialog(String title, String message) Display a confirmation dialog with a title and messagevoiddisplayError(Exception exception) Display an error dialog box with information about the exception and provide an audible alert.voiddisplayError(String aTitle, String message) Display an error dialog box and provide an audible alert.voiddisplayError(String aTitle, String prefix, Exception exception) Display an error dialog box with information about the exception and provide an audible alert.voiddisplayWarning(Exception exception) Display a warning dialog box showing information about an exception that has been thrown and provide an audible alert.voiddisplayWarning(String aTitle, String message) Display a warning dialog box and provide an audible alert.voiddisplayWarning(String aTitle, String prefix, Exception exception) Display a warning dialog box with information about the exception and provide an audible alert.get the view's menu barget the view's locationget the view's location relative to the screenGet the toolbar associated with this window.voidIconify this window.booleandetermine the view's visibilityvoidsetJMenuBar(JMenuBar menuBar) voidsetLocation(Point location) set the view's locationvoidsetVisible(boolean state) set the view's visibilityvoidShow this window.Methods inherited from interface javax.swing.RootPaneContainer
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
-
Method Details
-
showWindow
void showWindow()Show this window. Make it visible (de-iconify if necessary) and bring it to the front. -
hideWindow
void hideWindow()Iconify this window. -
getLocation
Point getLocation()get the view's location -
getLocationOnScreen
Point getLocationOnScreen()get the view's location relative to the screen -
setLocation
set the view's location -
setVisible
void setVisible(boolean state) set the view's visibility -
isVisible
boolean isVisible()determine the view's visibility -
getJMenuBar
JMenuBar getJMenuBar()get the view's menu bar -
setJMenuBar
-
getToolBar
JToolBar getToolBar()Get the toolbar associated with this window.- Returns:
- This window's toolbar or null if none was added.
-
captureAsImage
void captureAsImage()Capture the window as an image. -
displayConfirmDialog
Display a confirmation dialog with a title and message- Parameters:
title- The title of the dialogmessage- The message to display- Returns:
- YES_OPTION or NO_OPTION
-
displayWarning
Display a warning dialog box and provide an audible alert.- Parameters:
aTitle- Title of the warning dialog box.message- The warning message to appear in the warning dialog box.
-
displayWarning
Display a warning dialog box showing information about an exception that has been thrown and provide an audible alert.- Parameters:
exception- The exception whose description is being displayed.
-
displayWarning
Display a warning dialog box with information about the exception and provide an audible alert. This method allows clarification about the consequences of the exception (e.g. "Save Failed:").- Parameters:
aTitle- Title of the warning dialog box.prefix- Text that should appear in the dialog box before the exception messasge.exception- The exception about which the warning dialog is displayed.
-
displayError
Display an error dialog box and provide an audible alert.- Parameters:
aTitle- Title of the warning dialog box.message- The warning message to appear in the warning dialog box.
-
displayError
Display an error dialog box with information about the exception and provide an audible alert.- Parameters:
exception- The exception about which the warning dialog is displayed.
-
displayError
Display an error dialog box with information about the exception and provide an audible alert. This method allows clarification about the consequences of the exception (e.g. "Save Failed:").- Parameters:
aTitle- Title of the warning dialog box.prefix- Text that should appear in the dialog box before the exception messasge.exception- The exception about which the warning dialog is displayed.
-