com.ibm.dse.tools.workbench.gui
Class VersionExplorerPopUpMenu

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPopupMenu
                          |
                          +--com.ibm.dse.tools.workbench.gui.VersionExplorerPopUpMenu

public class VersionExplorerPopUpMenu
extends javax.swing.JPopupMenu
implements ActionVariables

This class provides a menu for deleting or adding versions to the workspace

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPopupMenu
javax.swing.JPopupMenu.AccessibleJPopupMenu, javax.swing.JPopupMenu.Separator
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
protected static java.lang.String OPTION_ADD_TO_WORKSPACE_TEXT
           
protected static java.lang.String OPTION_OPEN_TO_EDITIONS_TEXT
           
protected static java.lang.String OPTION_TITLE
           
protected static java.lang.String SECTION
           
 
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 com.ibm.dse.tools.workbench.gui.ActionVariables
CMD_ADD_TO_WORKSPACE, CMD_CHANGE_REPOSITORY, CMD_CHANGE_WORKSPACE, CMD_CLONE, CMD_CONNECT_REPOSITORY, CMD_COPY, CMD_CREATE_OPEN_EDITION, CMD_CUT, CMD_DELETE, CMD_DISCONNECT_REPOSITORY, CMD_EXIT, CMD_IMPORT_FILE, CMD_LAUNCH_SPECIFIC_WIZARD, CMD_MORPH_INTO, CMD_MOVE, CMD_OPEN_DOMAINS_EXPLORER, CMD_OPEN_FILE, CMD_OPEN_REPOSITORY_EXPLORER, CMD_OPEN_SETTINGS_WIZARD, CMD_OPEN_TO_EDITIONS, CMD_PASTE, CMD_REFRESH_WORKSPACE, CMD_RELOAD_ENVIRONMENT, CMD_SELECT_ALL, CMD_SHOW_CONSOLE, CMD_SHOW_VERSION, CMD_UNDO, CMD_VERSION
 
Constructor Summary
VersionExplorerPopUpMenu()
          This constructor creates a VersionExplorerPopUpMenu object.
VersionExplorerPopUpMenu(java.lang.String label)
          This constructor creates a VersionExplorerPopUpMenu object with the label label.
 
Method Summary
 void registryListener(java.awt.event.ActionListener al)
          This method register the menu items to the given ActionListener.
 void setAddToWorkspace(boolean enabled)
          This method tells the menu that the add to workspace option is enabled or not.
 void setOpenToEditions(boolean enabled)
          This method tells the menu that the open to editions option is enabled or not.
 void setParams(java.util.Hashtable params)
          This method sets different parameters for the table row instance.
 void unregistryListener(java.awt.event.ActionListener al)
          This method unregisters the menu items from the given ActionListener.
 
Methods inherited from class javax.swing.JPopupMenu
add, add, add, addPopupMenuListener, addSeparator, createActionChangeListener, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processKeyEvent, processMouseEvent, remove, remove, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, setVisible, show, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SECTION

protected static final java.lang.String SECTION

OPTION_TITLE

protected static final java.lang.String OPTION_TITLE

OPTION_OPEN_TO_EDITIONS_TEXT

protected static final java.lang.String OPTION_OPEN_TO_EDITIONS_TEXT

OPTION_ADD_TO_WORKSPACE_TEXT

protected static final java.lang.String OPTION_ADD_TO_WORKSPACE_TEXT
Constructor Detail

VersionExplorerPopUpMenu

public VersionExplorerPopUpMenu()
This constructor creates a VersionExplorerPopUpMenu object.

VersionExplorerPopUpMenu

public VersionExplorerPopUpMenu(java.lang.String label)
This constructor creates a VersionExplorerPopUpMenu object with the label label.
Parameters:
label - java.lang.String
Method Detail

registryListener

public void registryListener(java.awt.event.ActionListener al)
This method register the menu items to the given ActionListener.
Parameters:
al - java.awt.event.ActionListener

setAddToWorkspace

public void setAddToWorkspace(boolean enabled)
This method tells the menu that the add to workspace option is enabled or not.
Parameters:
enabled - boolean

setOpenToEditions

public void setOpenToEditions(boolean enabled)
This method tells the menu that the open to editions option is enabled or not.
Parameters:
enabled - boolean

setParams

public void setParams(java.util.Hashtable params)
This method sets different parameters for the table row instance.
Parameters:
params - java.util.Hashtable

unregistryListener

public void unregistryListener(java.awt.event.ActionListener al)
This method unregisters the menu items from the given ActionListener.
Parameters:
al - java.awt.event.ActionListener