public class MainWindow extends javax.swing.JFrame implements IMainWindow
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected com.vlsolutions.swing.docking.DockingDesktop |
desktop |
protected javax.swing.JLabel |
lengthLabel |
protected javax.swing.JLabel |
lockInsertLabel |
MainWindowMenu |
menu |
protected javax.swing.JLabel |
progressLabel |
protected ProjectFilesListController |
projWin |
protected javax.swing.JLabel |
statusLabel |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
MainWindow()
Creates new form MainWindow
|
Modifier and Type | Method and Description |
---|---|
void |
addDockable(com.vlsolutions.swing.docking.Dockable pane)
Add new dockable pane into application frame.
|
protected void |
addSearchWindow(SearchWindowController newSearchWindow) |
void |
displayErrorRB(java.lang.Throwable ex,
java.lang.String errorKey,
java.lang.Object... params)
Display error.
|
void |
displayWarningRB(java.lang.String warningKey,
java.lang.Object... params)
Display warning.
|
void |
displayWarningRB(java.lang.String warningKey,
java.lang.String supercedesKey,
java.lang.Object... params)
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. |
void |
doInsertTrans()
insert current fuzzy match or selection at cursor position
|
void |
doRecycleTrans()
replace entire edit area with active fuzzy match or selection
|
java.awt.Font |
getApplicationFont()
Get main application font.
|
javax.swing.JFrame |
getApplicationFrame()
Get application frame.
|
IMainMenu |
getMainMenu()
Retrieve main manu instance.
|
protected java.util.List<SearchWindowController> |
getSearchWindows() |
void |
lockUI()
Lock UI for long-term operations.
|
void |
setProgressToolTipText(java.lang.String toolTipText) |
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.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
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, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, validateTree
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, getPeer, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCursor, setCursor
public final MainWindowMenu menu
protected ProjectFilesListController projWin
protected javax.swing.JLabel lengthLabel
protected javax.swing.JLabel progressLabel
protected javax.swing.JLabel statusLabel
protected javax.swing.JLabel lockInsertLabel
protected com.vlsolutions.swing.docking.DockingDesktop desktop
public MainWindow() throws java.io.IOException
java.io.IOException
public javax.swing.JFrame getApplicationFrame()
getApplicationFrame
in interface IMainWindow
public java.awt.Font getApplicationFont()
getApplicationFont
in interface IMainWindow
public IMainMenu getMainMenu()
getMainMenu
in interface IMainWindow
public void addDockable(com.vlsolutions.swing.docking.Dockable pane)
addDockable
in interface IMainWindow
pane
- dockable panepublic void doInsertTrans()
public void doRecycleTrans()
protected void addSearchWindow(SearchWindowController newSearchWindow)
protected java.util.List<SearchWindowController> getSearchWindows()
public 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.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 showProgressMessage(java.lang.String messageText)
showProgressMessage
in interface IMainWindow
messageText
- message textpublic void setProgressToolTipText(java.lang.String toolTipText)
public void showLengthMessage(java.lang.String messageText)
showLengthMessage
in interface IMainWindow
messageText
- message textpublic void showLockInsertMessage(java.lang.String messageText, java.lang.String toolTip)
IMainWindow
showLockInsertMessage
in interface IMainWindow
messageText
- message textpublic void displayWarningRB(java.lang.String warningKey, java.lang.Object... params)
displayWarningRB
in interface IMainWindow
warningKey
- warning message key in resource bundleparams
- warning text parameterspublic void displayWarningRB(java.lang.String warningKey, java.lang.String supercedesKey, java.lang.Object... params)
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
warningKey
- warning message key in resource bundlesupercedesKey
- the key of the warning dialog to close, if still openparams
- warning text parameterspublic 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 lockUI()
lockUI
in interface IMainWindow
public void unlockUI()
unlockUI
in interface IMainWindow
public 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 int showConfirmDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType) throws java.awt.HeadlessException
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 trueJOptionPane.showConfirmDialog(java.awt.Component, Object, String,
int, int)
public void showMessageDialog(java.lang.String message)
IMainWindow
showMessageDialog
in interface IMainWindow
message
- the message to show