de.uni_paderborn.fujaba.mpEdit
Class TextMenu

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JMenuBar
                  extended byde.uni_paderborn.fujaba.mpEdit.TextMenu
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.MenuElement, java.io.Serializable

public class TextMenu
extends javax.swing.JMenuBar
implements java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner

TextMenu is a fairly large class which creates and first handles events from all menus. This may all change when I add toobars.

Version:
$Revision: 1.17 $
Author:
$Author: cschneid $
See Also:
Serialized Form

Nested Class Summary
private  class TextMenu.MenuItemControl
          No comment provided by developer, please add a comment to improve documentation.
 
Nested classes inherited from class javax.swing.JMenuBar
javax.swing.JMenuBar.AccessibleJMenuBar
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  java.awt.datatransfer.Clipboard clipboard
          No comment provided by developer, please add a comment to improve documentation.
private  DocMan docMan
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenu editMenu
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenu fileMenu
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenu helpMenu
          No comment provided by developer, please add a comment to improve documentation.
private  mpEDIT mpEdit
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenu optionMenu
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.ResourceBundle strings
          No comment provided by developer, please add a comment to improve documentation.
private  TextCanvas textCanvas
          No comment provided by developer, please add a comment to improve documentation.
private  TextFrame textFrame
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenu windowMenu
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class javax.swing.JMenuBar
 
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.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TextMenu(mpEDIT mpe, java.util.ResourceBundle str, DocMan doc, TextFrame tf)
          Constructor for class TextMenu
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          No comment provided by developer, please add a comment to improve documentation.
 void CloseFindDialog(java.lang.String pat)
          No comment provided by developer, please add a comment to improve documentation.
 void CloseReplaceDialog(java.lang.String pat, java.lang.String rep)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.awt.datatransfer.Clipboard getClipboard()
          Get the clipboard attribute of the TextMenu object
(package private)  java.util.ResourceBundle getStrings()
          Get the strings attribute of the TextMenu object
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
          No comment provided by developer, please add a comment to improve documentation.
private  void makeEditMenu()
          No comment provided by developer, please add a comment to improve documentation.
private  void makeFileMenu()
          No comment provided by developer, please add a comment to improve documentation.
private  void makeHelpMenu()
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JMenuItem makeMenuItem(java.lang.String actionId)
          No comment provided by developer, please add a comment to improve documentation.
private  void makeOptionMenu()
          No comment provided by developer, please add a comment to improve documentation.
private  void makeWindowMenu()
          No comment provided by developer, please add a comment to improve documentation.
 boolean toolButtonIgnore()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class javax.swing.JMenuBar
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, 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
 

Field Detail

mpEdit

private mpEDIT mpEdit
No comment provided by developer, please add a comment to improve documentation.


textFrame

private TextFrame textFrame
No comment provided by developer, please add a comment to improve documentation.


textCanvas

private TextCanvas textCanvas
No comment provided by developer, please add a comment to improve documentation.


docMan

private DocMan docMan
No comment provided by developer, please add a comment to improve documentation.


strings

private java.util.ResourceBundle strings
No comment provided by developer, please add a comment to improve documentation.


fileMenu

private javax.swing.JMenu fileMenu
No comment provided by developer, please add a comment to improve documentation.


editMenu

private javax.swing.JMenu editMenu
No comment provided by developer, please add a comment to improve documentation.


optionMenu

private javax.swing.JMenu optionMenu
No comment provided by developer, please add a comment to improve documentation.


windowMenu

private javax.swing.JMenu windowMenu
No comment provided by developer, please add a comment to improve documentation.


helpMenu

private javax.swing.JMenu helpMenu
No comment provided by developer, please add a comment to improve documentation.


clipboard

private java.awt.datatransfer.Clipboard clipboard
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

TextMenu

public TextMenu(mpEDIT mpe,
                java.util.ResourceBundle str,
                DocMan doc,
                TextFrame tf)
Constructor for class TextMenu

Parameters:
mpe - No description provided
str - No description provided
doc - No description provided
tf - No description provided
Method Detail

makeMenuItem

private javax.swing.JMenuItem makeMenuItem(java.lang.String actionId)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
actionId - No description provided
Returns:
No description provided

makeFileMenu

private void makeFileMenu()
No comment provided by developer, please add a comment to improve documentation.


makeEditMenu

private void makeEditMenu()
No comment provided by developer, please add a comment to improve documentation.


makeOptionMenu

private void makeOptionMenu()
No comment provided by developer, please add a comment to improve documentation.


makeWindowMenu

private void makeWindowMenu()
No comment provided by developer, please add a comment to improve documentation.


makeHelpMenu

private void makeHelpMenu()
No comment provided by developer, please add a comment to improve documentation.


toolButtonIgnore

public boolean toolButtonIgnore()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - No description provided

CloseFindDialog

public void CloseFindDialog(java.lang.String pat)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
pat - No description provided

CloseReplaceDialog

public void CloseReplaceDialog(java.lang.String pat,
                               java.lang.String rep)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
pat - No description provided
rep - No description provided

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner
Parameters:
clipboard - No description provided
contents - No description provided

getStrings

java.util.ResourceBundle getStrings()
Get the strings attribute of the TextMenu object

Returns:
The strings value

getClipboard

java.awt.datatransfer.Clipboard getClipboard()
Get the clipboard attribute of the TextMenu object

Returns:
The clipboard value