|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.AbstractButton javax.swing.JMenuItem javax.swing.JMenu edu.northwestern.at.wordhoard.swing.calculator.menus.BaseMenu edu.northwestern.at.wordhoard.swing.calculator.menus.FileMenu
public class FileMenu
WordHoard Calculator Files Menu.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.northwestern.at.wordhoard.swing.calculator.menus.BaseMenu |
---|
BaseMenu.GenericActionListener, BaseMenu.OutputResults |
Nested classes/interfaces inherited from class javax.swing.JMenu |
---|
javax.swing.JMenu.AccessibleJMenu, javax.swing.JMenu.WinListener |
Nested classes/interfaces inherited from class javax.swing.JMenuItem |
---|
javax.swing.JMenuItem.AccessibleJMenuItem |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected javax.swing.JMenuItem |
aboutMenuItem
About box. |
protected javax.swing.JMenuItem |
annotateMenuItem
Annotate. |
protected javax.swing.JMenuItem |
editorMenuItem
Open notepad editor. |
protected javax.swing.JMenuItem |
exportMenuItem
Export user data objects. |
protected javax.swing.JMenuItem |
fontPreferencesMenuItem
Font preferences. |
protected javax.swing.JMenuItem |
getInfoMenuItem
Get info. |
protected javax.swing.JMenuItem |
importMenuItem
Import user data objects. |
protected javax.swing.JMenuItem |
loginMenuItem
Login to WordHoard server. |
protected javax.swing.JMenuItem |
logoutMenuItem
Logout from WordHoard server. |
protected javax.swing.JMenuItem |
lookAndFeelMenuItem
Look and feel preference. |
protected javax.swing.JMenuItem |
manageAccountsMenuItem
Manage accounts. |
protected javax.swing.JMenuItem |
newWorkSetMenuItem
New work set. |
protected javax.swing.JMenuItem |
openWorkSetMenuItem
Oprn work set. |
protected javax.swing.JMenuItem |
pageSetupMenuItem
Printer page setup. |
protected javax.swing.JMenuItem |
printMenuItem
Print. |
protected javax.swing.JMenuItem |
printPreviewMenuItem
Print preview. |
protected javax.swing.JMenuItem |
quitMenuItem
Quit. |
protected javax.swing.JMenuItem |
runScriptMenuItem
Run a script. |
protected javax.swing.JMenuItem |
saveAsMenuItem
Save current item as file. |
protected javax.swing.JMenuItem |
saveAsWordSetMenuItem
Save as word set. |
protected javax.swing.JMenuItem |
saveWorkSetMenuItem
Save work set. |
protected javax.swing.JMenuItem |
sendErrorReportMenuItem
Send an error report. |
Fields inherited from class edu.northwestern.at.wordhoard.swing.calculator.menus.BaseMenu |
---|
menuBar, menuName, parentWindow, RADIOBUTTONMENUITEM, TEXTMENUITEM |
Fields inherited from class javax.swing.JMenu |
---|
popupListener |
Fields inherited from class javax.swing.AbstractButton |
---|
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FileMenu(javax.swing.JMenuBar menuBar,
AbstractWindow parentWindow)
Create file menu. |
Method Summary | |
---|---|
void |
about()
About box. |
protected void |
adjustAllAccountCommands()
Adjusts the account commands in all Reader windows. |
protected void |
annotate()
Annotate. |
protected void |
createMenuItems()
Create the menu items. |
void |
doExport()
Display export dialog. |
void |
doExportThread(ExportDialog exportDialog,
BaseMenu.OutputResults outputResults)
Export selected objects to XML file. |
protected void |
doFontPreferences()
Display font preferences dialog. |
void |
doImport()
Display import dialog. |
void |
doImportThread(ImportDialog importDialog,
BaseMenu.OutputResults outputResults)
Import selected objects from XML file. |
void |
doPageSetup()
Perform print preview. |
void |
doPrint()
Print currently selected tabbed panel. |
void |
doPrintPreview()
Perform print preview. |
protected void |
doSendErrorReport()
Send error report. |
protected java.lang.String |
getLogoutMenuItemText()
Get string for Logout menu item. |
void |
handleLogin()
Handle menu changes when logging in. |
void |
handleLogout()
Handle menu changes when logging out. |
protected void |
login()
Login to WordHoard. |
protected void |
logout()
Logout from WordHoard. |
protected void |
manageAccounts()
Manage accounts. |
protected void |
newWorkSet()
New work set. |
protected void |
openWorkSet()
Open work set. |
protected void |
quit()
Quit. |
protected void |
runScript()
Run a script. |
protected void |
saveAs()
Do file menu save as. |
protected void |
saveAsWordSet()
Save as word set. |
protected void |
saveWorkSet()
Save work set. |
protected void |
simpleEditor()
Run a simple text editor. |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.menus.BaseMenu |
---|
addACancelButton, addACloseButton, addMenuItem, addMenuItem, addMenuItem, addMenuItem, addMenuItem, addMenuItem, addMenuItem, addMenuItem, cancelToClose, closePersistenceManager, createProgressPanel, displayErrorMessage, getCalculatorWindow, getConsole, getEditMenu, getFocusedTextComponent, getInputTextPane, getInterpreter, getMainTabbedPane, getNextOutputWindowTitle, getNextOutputWindowTitle, getResultsPanel, getTableOfContentsWindow, handleLoggedIn, notYetImplemented, performAction, performAction, setBusyCursor, setDefaultCursor |
Methods inherited from class javax.swing.JMenu |
---|
add, add, add, add, add, addMenuListener, addSeparator, applyComponentOrientation, createActionChangeListener, createActionComponent, createWinListener, doClick, fireMenuCanceled, fireMenuDeselected, fireMenuSelected, getAccessibleContext, getComponent, getDelay, getItem, getItemCount, getMenuComponent, getMenuComponentCount, getMenuComponents, getMenuListeners, getPopupMenu, getPopupMenuOrigin, getSubElements, getUIClassID, insert, insert, insert, insertSeparator, isMenuComponent, isPopupMenuVisible, isSelected, isTearOff, isTopLevelMenu, menuSelectionChanged, paramString, processKeyEvent, remove, remove, remove, removeAll, removeMenuListener, setAccelerator, setComponentOrientation, setDelay, setMenuLocation, setModel, setPopupMenuVisible, setSelected, updateUI |
Methods inherited from class javax.swing.JMenuItem |
---|
actionPropertyChanged, addMenuDragMouseListener, addMenuKeyListener, configurePropertiesFromAction, fireMenuDragMouseDragged, fireMenuDragMouseEntered, fireMenuDragMouseExited, fireMenuDragMouseReleased, fireMenuKeyPressed, fireMenuKeyReleased, fireMenuKeyTyped, getAccelerator, getMenuDragMouseListeners, getMenuKeyListeners, init, isArmed, processKeyEvent, processMenuDragMouseEvent, processMenuKeyEvent, processMouseEvent, removeMenuDragMouseListener, removeMenuKeyListener, setArmed, setEnabled, setUI |
Methods inherited from class javax.swing.AbstractButton |
---|
addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, paintBorder, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
---|
processKeyEvent, processMouseEvent |
Field Detail |
---|
protected javax.swing.JMenuItem aboutMenuItem
protected javax.swing.JMenuItem newWorkSetMenuItem
protected javax.swing.JMenuItem openWorkSetMenuItem
protected javax.swing.JMenuItem saveWorkSetMenuItem
protected javax.swing.JMenuItem saveAsWordSetMenuItem
protected javax.swing.JMenuItem saveAsMenuItem
protected javax.swing.JMenuItem pageSetupMenuItem
protected javax.swing.JMenuItem printPreviewMenuItem
protected javax.swing.JMenuItem printMenuItem
protected javax.swing.JMenuItem exportMenuItem
protected javax.swing.JMenuItem importMenuItem
protected javax.swing.JMenuItem fontPreferencesMenuItem
protected javax.swing.JMenuItem lookAndFeelMenuItem
protected javax.swing.JMenuItem sendErrorReportMenuItem
protected javax.swing.JMenuItem getInfoMenuItem
protected javax.swing.JMenuItem annotateMenuItem
protected javax.swing.JMenuItem loginMenuItem
protected javax.swing.JMenuItem logoutMenuItem
protected javax.swing.JMenuItem editorMenuItem
protected javax.swing.JMenuItem runScriptMenuItem
protected javax.swing.JMenuItem manageAccountsMenuItem
protected javax.swing.JMenuItem quitMenuItem
Constructor Detail |
---|
public FileMenu(javax.swing.JMenuBar menuBar, AbstractWindow parentWindow)
menuBar
- The menu bar to which to attach the menu.parentWindow
- Parent window for menu bar. Method Detail |
---|
protected void createMenuItems()
createMenuItems
in class BaseMenu
public void about()
public void doPageSetup()
public void doPrintPreview()
public void doPrint()
public void doExportThread(ExportDialog exportDialog, BaseMenu.OutputResults outputResults)
exportDialog
- The export dialog.outputResults
- The output panel. public void doExport()
public void doImportThread(ImportDialog importDialog, BaseMenu.OutputResults outputResults)
importDialog
- The import dialog.outputResults
- The output panel. public void doImport()
public void handleLogin()
handleLogin
in class BaseMenu
public void handleLogout()
handleLogout
in class BaseMenu
protected void newWorkSet()
protected void openWorkSet()
protected void saveWorkSet()
protected void saveAsWordSet()
protected void saveAs()
protected void adjustAllAccountCommands()
Enables/disables the "Logout" and "Manage Account" commands in all open windows and adjusts the text of the "Logout" command in all open windows to read "Logout xxx" when the user is logged in with username "xxx".
protected void login()
protected void logout()
protected void doFontPreferences()
protected void manageAccounts() throws java.lang.Exception
java.lang.Exception
protected void annotate() throws java.lang.Exception
java.lang.Exception
protected void simpleEditor()
protected void runScript()
protected void doSendErrorReport()
protected java.lang.String getLogoutMenuItemText()
protected void quit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |