public class ConsoleWindow extends java.lang.Object implements IMainWindow
Constructor and Description |
---|
ConsoleWindow() |
Modifier and Type | Method and Description |
---|---|
void |
addDockable(com.vlsolutions.swing.docking.Dockable pane)
Add new dockable pane into application frame.
|
void |
displayErrorRB(java.lang.Throwable ex,
java.lang.String errorKey,
java.lang.Object... params)
Display error.
|
void |
displayWarningRB(java.lang.String message,
java.lang.Object... args)
Display warning.
|
void |
displayWarningRB(java.lang.String message,
java.lang.String supercedesKey,
java.lang.Object... args)
Same as
IMainWindow.displayWarningRB(String, Object...) but this will close the previous
dialog if the dialog is still open and the supplied supercedesKey matches the previous
dialog's key. |
java.awt.Font |
getApplicationFont()
Get main application font.
|
javax.swing.JFrame |
getApplicationFrame()
Get application frame.
|
java.awt.Cursor |
getCursor()
Retrieves current cursor of window
|
IMainMenu |
getMainMenu()
Retrieve main manu instance.
|
void |
lockUI()
Lock UI for long-term operations.
|
void |
setCursor(java.awt.Cursor cursor)
Sets cursor of window
|
int |
showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType)
shows a confirm dialog.
|
void |
showErrorDialogRB(java.lang.String title,
java.lang.String message,
java.lang.Object... args)
Show message in an ErrorDialog
|
void |
showLengthMessage(java.lang.String messageText)
Show message in length label.
|
void |
showLockInsertMessage(java.lang.String messageText,
java.lang.String toolTip)
Show message indicating the state of the Lock cursor and Insert/overwrite mode
|
void |
showMessageDialog(java.lang.String message)
Shows message to user
|
void |
showProgressMessage(java.lang.String messageText)
Show message in progress bar.
|
void |
showStatusMessageRB(java.lang.String messageKey,
java.lang.Object... params)
Show message in status bar from resource bundle by key.
|
void |
showTimedStatusMessageRB(java.lang.String messageKey,
java.lang.Object... params)
Same as
IMainWindow.showStatusMessageRB(String, Object...) but this will
clear the message after ten seconds. |
void |
unlockUI()
Unlock UI after locking.
|
public void displayErrorRB(java.lang.Throwable ex, java.lang.String errorKey, java.lang.Object... params)
displayErrorRB
in interface IMainWindow
ex
- exception to showerrorKey
- error message key in resource bundleparams
- error text parameterspublic void showStatusMessageRB(java.lang.String messageKey, java.lang.Object... params)
showStatusMessageRB
in interface IMainWindow
messageKey
- message key in resource bundleparams
- message parameters for formattingpublic void showTimedStatusMessageRB(java.lang.String messageKey, java.lang.Object... params)
IMainWindow
IMainWindow.showStatusMessageRB(String, Object...)
but this will
clear the message after ten seconds.showTimedStatusMessageRB
in interface IMainWindow
messageKey
- message key in resource bundleparams
- message parameters for formattingpublic void displayWarningRB(java.lang.String message, java.lang.Object... args)
IMainWindow
displayWarningRB
in interface IMainWindow
message
- warning message key in resource bundleargs
- warning text parameterspublic void displayWarningRB(java.lang.String message, java.lang.String supercedesKey, java.lang.Object... args)
IMainWindow
IMainWindow.displayWarningRB(String, Object...)
but this will close the previous
dialog if the dialog is still open and the supplied supercedesKey matches the previous
dialog's key.displayWarningRB
in interface IMainWindow
message
- warning message key in resource bundlesupercedesKey
- the key of the warning dialog to close, if still openargs
- warning text parameterspublic void showErrorDialogRB(java.lang.String title, java.lang.String message, java.lang.Object... args)
showErrorDialogRB
in interface IMainWindow
title
- title of dialog. message key in resource bundle of title that
is to be displayedmessage
- message key in resource bundle of message that is to be
displayedargs
- arguments of the resource bundle messagepublic void addDockable(com.vlsolutions.swing.docking.Dockable pane)
IMainWindow
addDockable
in interface IMainWindow
pane
- dockable panepublic java.awt.Font getApplicationFont()
IMainWindow
getApplicationFont
in interface IMainWindow
public javax.swing.JFrame getApplicationFrame()
IMainWindow
getApplicationFrame
in interface IMainWindow
public void lockUI()
IMainWindow
lockUI
in interface IMainWindow
public void showLengthMessage(java.lang.String messageText)
IMainWindow
showLengthMessage
in interface IMainWindow
messageText
- message textpublic void showProgressMessage(java.lang.String messageText)
IMainWindow
showProgressMessage
in interface IMainWindow
messageText
- message textpublic void unlockUI()
IMainWindow
unlockUI
in interface IMainWindow
public IMainMenu getMainMenu()
IMainWindow
getMainMenu
in interface IMainWindow
public java.awt.Cursor getCursor()
IMainWindow
getCursor
in interface IMainWindow
public void setCursor(java.awt.Cursor cursor)
IMainWindow
setCursor
in interface IMainWindow
cursor
- the new cursorpublic int showConfirmDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType) throws java.awt.HeadlessException
IMainWindow
showConfirmDialog
in interface IMainWindow
message
- the Object to displaytitle
- the title string for the dialog (can be null)optionType
- an integer designating the JOptionPane options available on the dialog: YES_NO_OPTION, YES_NO_CANCEL_OPTION, or OK_CANCEL_OPTIONmessageType
- an integer designating the kind of message this is; primarily used to determine the icon from the pluggable Look and Feel: (JOptionPane ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGEjava.awt.HeadlessException
- if GraphicsEnvironment.isHeadless returns truepublic void showMessageDialog(java.lang.String message)
IMainWindow
showMessageDialog
in interface IMainWindow
message
- the message to showpublic void showLockInsertMessage(java.lang.String messageText, java.lang.String toolTip)
IMainWindow
showLockInsertMessage
in interface IMainWindow
messageText
- message text