org.jgraph.pad.actions
Class WindowWindows

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.jgraph.pad.actions.AbstractActionDefault
          extended byorg.jgraph.pad.actions.AbstractActionList
              extended byorg.jgraph.pad.actions.WindowWindows
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.awt.event.ContainerListener, java.util.EventListener, java.io.Serializable, TranslatorConstants

public class WindowWindows
extends AbstractActionList
implements java.awt.event.ContainerListener

See Also:
Serialized Form

Field Summary
protected  javax.swing.JMenu menu
          The menu.
 
Fields inherited from class org.jgraph.pad.actions.AbstractActionList
center, ITEM_KEY, u2
 
Fields inherited from class org.jgraph.pad.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.jgraph.pad.resources.TranslatorConstants
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
WindowWindows(GPGraphpad graphpad)
          Constructs an instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void componentAdded(java.awt.event.ContainerEvent e)
           
 void componentRemoved(java.awt.event.ContainerEvent e)
           
 java.lang.String getItemPresentationText(java.lang.Object itemValue)
          Returns the item presentation text (buttonEdge.g.
protected  java.lang.Object[] getItems()
          You should return a hashtable with the possible items.
protected  javax.swing.JMenu getMenuBarComponent()
           
 java.lang.String getPresentationText(java.lang.String actionCommand)
          Should return presentation Text for the action command or null for the default
protected  void updateMenuItems()
          Update the menu items.
 
Methods inherited from class org.jgraph.pad.actions.AbstractActionList
getItemListCellRenderer, getMenuComponent, getMenuComponents, getSelectedItem, getToolBarComponent, getToolComponents, tokenize
 
Methods inherited from class org.jgraph.pad.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getName, getToolComponent, setFontNameForSelection, setFontSizeForSelection, setFontStyleForSelection, setGraphpad, setSelectionAttributes, update
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menu

protected javax.swing.JMenu menu
The menu.

Constructor Detail

WindowWindows

public WindowWindows(GPGraphpad graphpad)
Constructs an instance.

Parameters:
graphpad -
Method Detail

getItems

protected java.lang.Object[] getItems()
Description copied from class: AbstractActionList
You should return a hashtable with the possible items.

Specified by:
getItems in class AbstractActionList
See Also:
AbstractActionList.getItems()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(ActionEvent)

getMenuBarComponent

protected javax.swing.JMenu getMenuBarComponent()
Overrides:
getMenuBarComponent in class AbstractActionList
See Also:
AbstractActionList.getMenuBarComponent()

getPresentationText

public java.lang.String getPresentationText(java.lang.String actionCommand)
Description copied from class: AbstractActionDefault
Should return presentation Text for the action command or null for the default

Overrides:
getPresentationText in class AbstractActionDefault
See Also:
AbstractActionDefault.getPresentationText(java.lang.String)

getItemPresentationText

public java.lang.String getItemPresentationText(java.lang.Object itemValue)
Description copied from class: AbstractActionList
Returns the item presentation text (buttonEdge.g. for the MenuItem) The default Implemenation returns item.toString()

Overrides:
getItemPresentationText in class AbstractActionList
See Also:
AbstractActionList.getItemPresentationText(java.lang.Object)

componentAdded

public void componentAdded(java.awt.event.ContainerEvent e)
Specified by:
componentAdded in interface java.awt.event.ContainerListener
See Also:
ContainerListener.componentAdded(java.awt.event.ContainerEvent)

componentRemoved

public void componentRemoved(java.awt.event.ContainerEvent e)
Specified by:
componentRemoved in interface java.awt.event.ContainerListener
See Also:
ContainerListener.componentRemoved(java.awt.event.ContainerEvent)

updateMenuItems

protected void updateMenuItems()
Update the menu items.