|
|||||||||
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.SetsMenu
public class SetsMenu
WordHoard Calculator Sets 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.JMenu |
phraseMenu
The phrase set submenu. |
protected javax.swing.JMenuItem |
phraseMenuDeletePhraseSetMenuItem
|
protected javax.swing.JMenuItem |
phraseMenuDescribePhraseSetMenuItem
|
protected javax.swing.JMenuItem |
phraseMenuEditPhraseSetMenuItem
|
protected javax.swing.JMenuItem |
phraseMenuNewPhraseSetMenuItem
The phrase set submenu items. |
protected QueryMenu |
queryMenu
The query submenu. |
javax.swing.event.MenuListener |
setsMenuListener
Sets menu listener. |
protected javax.swing.JMenu |
wordMenu
The word set submenu. |
protected javax.swing.JMenuItem |
wordMenuDeleteWordSetMenuItem
|
protected javax.swing.JMenuItem |
wordMenuDescribeWordSetMenuItem
|
protected javax.swing.JMenuItem |
wordMenuEditWordSetMenuItem
|
protected javax.swing.JMenuItem |
wordMenuNewWordSetMenuItem
The word set submenu items. |
protected javax.swing.JMenu |
workMenu
The work set submenu. |
protected javax.swing.JMenuItem |
workMenuDeleteWorkSetMenuItem
|
protected javax.swing.JMenuItem |
workMenuDescribeWorkSetMenuItem
|
protected javax.swing.JMenuItem |
workMenuEditWorkSetMenuItem
|
protected javax.swing.JMenuItem |
workMenuNewWorkSetFromExistingTextMenuItem
|
protected javax.swing.JMenu |
workMenuNewWorkSetMenu
The work set submenu items. |
protected javax.swing.JMenuItem |
workMenuNewWorkSetViaQueryMenuItem
|
protected javax.swing.JMenuItem |
workMenuNewWorkSetViaWorkPartSelectionMenuItem
|
protected javax.swing.JMenuItem |
workMenuNewWorkSetViaWorkSetPanelMenuItem
The new work set subsubmenu items. |
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 | |
---|---|
SetsMenu()
Create sets menu. |
|
SetsMenu(AbstractWindow parentWindow)
Create sets menu. |
|
SetsMenu(javax.swing.JMenuBar menuBar)
Create sets menu. |
|
SetsMenu(javax.swing.JMenuBar menuBar,
AbstractWindow parentWindow)
Create sets menu. |
Method Summary | |
---|---|
protected void |
createMenuItems()
Create the menu items. |
protected void |
deletePhraseSet()
Delete a phrase set. |
protected void |
deleteWordSet()
Delete a word set. |
protected void |
deleteWorkSet()
Delete a work set. |
protected void |
describePhraseSet()
Describe a phrase set. |
protected void |
describeWordSet()
Describe a word set. |
protected void |
describeWorkSet()
Describe a work set. |
protected void |
doDeletePhraseSet(DeletePhraseSetDialog dialog,
BaseMenu.OutputResults outputResults)
Helper for deleting a phrase set. |
protected void |
doDeleteWordSet(DeleteWordSetDialog dialog,
BaseMenu.OutputResults outputResults)
Helper for deleting a word set. |
protected void |
doDescribeUserDataObject(DescribeUserDataObjectDialog dialog,
BaseMenu.OutputResults outputResults)
Helper for describing a user data object. |
protected void |
doEditPhraseSet(EditPhraseSetDialog dialog)
Helper for editing a phrase set. |
protected void |
doEditWordSet(EditWordSetDialog dialog)
Helper for editing a word set. |
protected PhraseSet |
doNewPhraseSet(NewPhraseSetDialog dialog)
Helper for creating a phrase set. |
protected WordSet |
doNewWordSet(NewWordSetDialog dialog,
BaseMenu.OutputResults outputResults)
Helper for creating a word set. |
protected void |
editPhraseSet()
Edit existing phrase set. |
protected void |
editWordSet()
Edit existing word set. |
protected void |
editWorkSet()
Edit existing work set. |
void |
handleLogin()
Handle menu changes when logging in. |
void |
handleLogout()
Handle menu changes when logging out. |
protected javax.swing.JMenu |
makePhraseMenu(javax.swing.JMenuItem menuBar)
Add phrase submenu. |
protected javax.swing.JMenu |
makeWordMenu(javax.swing.JMenuItem menuBar)
Add word submenu. |
protected javax.swing.JMenu |
makeWorkMenu(javax.swing.JMenuItem menuBar)
Add work submenu. |
protected void |
newPhraseSet()
Create a new phrase set. |
protected void |
newWordSet()
Create a new word set. |
protected void |
newWorkSet(int newWorkSetDialogType)
Create a new work set. |
protected void |
newWorkSetFromText()
Create a new work set from work parts in a text. |
protected void |
newWorkSetUsingQuery()
Create a new work set using a query. |
protected void |
newWorkSetUsingWorkPartSelection()
Create a new work set via work part selection. |
protected void |
newWorkSetUsingWorkSetPanel()
Create a new work set panel for drag and drop. |
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.JMenu workMenu
protected javax.swing.JMenu workMenuNewWorkSetMenu
protected javax.swing.JMenuItem workMenuEditWorkSetMenuItem
protected javax.swing.JMenuItem workMenuDeleteWorkSetMenuItem
protected javax.swing.JMenuItem workMenuNewWorkSetViaWorkSetPanelMenuItem
protected javax.swing.JMenuItem workMenuNewWorkSetViaWorkPartSelectionMenuItem
protected javax.swing.JMenuItem workMenuNewWorkSetFromExistingTextMenuItem
protected javax.swing.JMenuItem workMenuNewWorkSetViaQueryMenuItem
protected javax.swing.JMenuItem workMenuDescribeWorkSetMenuItem
protected javax.swing.JMenu wordMenu
protected javax.swing.JMenuItem wordMenuNewWordSetMenuItem
protected javax.swing.JMenuItem wordMenuEditWordSetMenuItem
protected javax.swing.JMenuItem wordMenuDeleteWordSetMenuItem
protected javax.swing.JMenuItem wordMenuDescribeWordSetMenuItem
protected javax.swing.JMenu phraseMenu
protected javax.swing.JMenuItem phraseMenuNewPhraseSetMenuItem
protected javax.swing.JMenuItem phraseMenuEditPhraseSetMenuItem
protected javax.swing.JMenuItem phraseMenuDeletePhraseSetMenuItem
protected javax.swing.JMenuItem phraseMenuDescribePhraseSetMenuItem
protected QueryMenu queryMenu
public javax.swing.event.MenuListener setsMenuListener
Enables and disables Sets submenu items to reflect logged-in user status.
Constructor Detail |
---|
public SetsMenu()
public SetsMenu(javax.swing.JMenuBar menuBar)
menuBar
- The menu bar to which to attach the sets menu. public SetsMenu(AbstractWindow parentWindow)
parentWindow
- Parent window for the menu. public SetsMenu(javax.swing.JMenuBar menuBar, AbstractWindow parentWindow)
menuBar
- The menu bar to which to attach the menu.parentWindow
- Parent window for the menu. Method Detail |
---|
protected void createMenuItems()
createMenuItems
in class BaseMenu
protected javax.swing.JMenu makeWorkMenu(javax.swing.JMenuItem menuBar)
protected javax.swing.JMenu makeWordMenu(javax.swing.JMenuItem menuBar)
protected javax.swing.JMenu makePhraseMenu(javax.swing.JMenuItem menuBar)
public void handleLogin()
handleLogin
in class BaseMenu
public void handleLogout()
handleLogout
in class BaseMenu
protected void newWorkSet(int newWorkSetDialogType)
protected void newWorkSetUsingWorkSetPanel() throws java.lang.Exception
java.lang.Exception
protected void newWorkSetUsingWorkPartSelection()
protected void newWorkSetUsingQuery()
protected void newWorkSetFromText()
protected void editWorkSet()
protected void deleteWorkSet()
protected void doDescribeUserDataObject(DescribeUserDataObjectDialog dialog, BaseMenu.OutputResults outputResults)
dialog
- User data object to describe.outputResults
- Progress reporter and close button. protected void describeWorkSet()
protected WordSet doNewWordSet(NewWordSetDialog dialog, BaseMenu.OutputResults outputResults)
dialog
- New word set dialog.outputResults
- Progress reporter and close button. protected void newWordSet()
protected void doEditWordSet(EditWordSetDialog dialog)
dialog
- Edit word set dialog. protected void editWordSet()
protected void doDeleteWordSet(DeleteWordSetDialog dialog, BaseMenu.OutputResults outputResults)
dialog
- Delete word set dialog.outputResults
- Progress reporter and close button. protected void deleteWordSet()
protected void describeWordSet()
protected PhraseSet doNewPhraseSet(NewPhraseSetDialog dialog)
dialog
- New phrase set dialog. protected void newPhraseSet()
protected void doEditPhraseSet(EditPhraseSetDialog dialog)
dialog
- Edit phrase set dialog. protected void editPhraseSet()
protected void doDeletePhraseSet(DeletePhraseSetDialog dialog, BaseMenu.OutputResults outputResults)
dialog
- Delete word set dialog.outputResults
- Progress reporter and close button. protected void deletePhraseSet()
protected void describePhraseSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |