Enterprise Information Portal APIs

com.ibm.mm.beans.gui
Class CMBVersionsViewer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.ibm.mm.beans.gui.CMBVersionsViewer
All Implemented Interfaces:
CMBViewVersionsListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class CMBVersionsViewer
extends javax.swing.JComponent
implements CMBViewVersionsListener

The CMBVersionsViewer displays all versions of a single item. For items which have only one version, and for datastores which do not support versioning, only the item itself will be shown.

Implements interfaces: CMBViewVersionsListener, so it may listen to requests to view all versions of an item.

Source of events:

Since:
8.1
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
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.mm.beans.gui.CMBViewVersionsListener
copyright
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CMBVersionsViewer()
          Constructor for the CMBVersionsViewer.
 
Method Summary
 void addEditItemAttributesListener(CMBEditItemAttributesListener listener)
          Adds the specified listener to receive Edit Item Attributes events.
 void addHelpListener(CMBHelpListener listener)
          Adds the specified listener to receive Help events.
 void addItemActionListener(CMBItemActionListener listener)
          Adds the specified listener to receive Item Action events.
 void addItemPopupListener(CMBItemPopupListener listener)
          Adds the specified listener to receive Item Popup events.
 void addItemSelectedListener(CMBItemSelectedListener listener)
          Adds the specified listener to receive Item Selected events.
 void addViewDocumentListener(CMBViewDocumentListener listener)
          Adds the specified listener to receive View Document events.
 void addViewVersionsCancelledListener(CMBViewVersionsCancelledListener listener)
          Adds the specified listener to receive View Versions cancelled events.
 void clear()
          Clear all items from the versions viewer
 int getCollationStrength()
          Gets the collation strength, which determines the exactness of comparisons when sorting items in the versions table
 CMBConnection getConnection()
          Get the connection object for the CMBVersionsViewer
 CMBItem getItem()
           
 boolean isCancelButtonVisible()
          Determine whether the Cancel button is displayed.
 boolean isDefaultPopupEnabled()
          Determines if the default popup menu will appear when the user clicks on items in the details pane.
 boolean isEditAttributesButtonVisible()
          Determine whether the Edit Attributes button is displayed.
 boolean isHelpButtonVisible()
          Determine whether the Help button is displayed.
 boolean isOpenButtonVisible()
          Determine whether the Open button is displayed.
 void onViewVersions(CMBViewVersionsEvent event)
          The CMBViewVersionsListener implementation
 void removeEditItemAttributesListener(CMBEditItemAttributesListener listener)
          Removes the specified listener so that it no longer receives Edit Item Attributes events.
 void removeHelpListener(CMBHelpListener listener)
          Removes the specified listener so that it no longer receives Help events.
 void removeItemActionListener(CMBItemActionListener listener)
          Removes the specified listener so that it no longer receives Item Action events.
 void removeItemPopupListener(CMBItemPopupListener listener)
          Removes the specified listener so that it no longer receives I tem Popup events.
 void removeItemSelectedListener(CMBItemSelectedListener listener)
          Removes the specified listener so that it no longer receives Item Selected events.
 void removeViewDocumentListener(CMBViewDocumentListener listener)
          Removes the specified listener so that it no longer receives View Document events.
 void removeViewVersionsCancelledListener(CMBViewVersionsCancelledListener listener)
          Removes the specified listener so that it no longer receives View Versions cancelled events.
 void setCancelButtonVisible(boolean newVal)
          Set whether the Cancel button should be displayed.
 void setCollationStrength(int newStrength)
          Sets the collation strength, which determines the exactness of comparisons when sorting items in the versions table
 void setConnection(CMBConnection newConn)
          Set the connection object for the CMBVersionsViewer
 void setDefaultPopupEnabled(boolean newValue)
          Sets if the default popup menu will appear when the user clicks on items in the details pane.
 void setEditAttributesButtonVisible(boolean newVal)
          Set whether the Edit Attributes button should be displayed.
 void setHelpButtonVisible(boolean newVal)
          Set whether the Help should be displayed.
 void setItem(CMBItem newItem)
           
 void setLayout(java.awt.LayoutManager mgr)
          Overridden to disable changing of the layout manager.
 void setLocale(java.util.Locale newLocale)
          Overrides the setLocale function
 void setOpenButtonVisible(boolean newVal)
          Set whether the Open button should be displayed.
 void updateUI()
          Override updateUI to ensure proper updating of components
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, 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, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, 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
 

Constructor Detail

CMBVersionsViewer

public CMBVersionsViewer()
Constructor for the CMBVersionsViewer.
Method Detail

getConnection

public CMBConnection getConnection()
Get the connection object for the CMBVersionsViewer

setConnection

public void setConnection(CMBConnection newConn)
Set the connection object for the CMBVersionsViewer

getCollationStrength

public int getCollationStrength()
Gets the collation strength, which determines the exactness of comparisons when sorting items in the versions table

setCollationStrength

public void setCollationStrength(int newStrength)
Sets the collation strength, which determines the exactness of comparisons when sorting items in the versions table

getItem

public CMBItem getItem()

setItem

public void setItem(CMBItem newItem)

isDefaultPopupEnabled

public boolean isDefaultPopupEnabled()
Determines if the default popup menu will appear when the user clicks on items in the details pane.

setDefaultPopupEnabled

public void setDefaultPopupEnabled(boolean newValue)
Sets if the default popup menu will appear when the user clicks on items in the details pane.

isOpenButtonVisible

public boolean isOpenButtonVisible()
Determine whether the Open button is displayed.

setOpenButtonVisible

public void setOpenButtonVisible(boolean newVal)
Set whether the Open button should be displayed.

isEditAttributesButtonVisible

public boolean isEditAttributesButtonVisible()
Determine whether the Edit Attributes button is displayed.

setEditAttributesButtonVisible

public void setEditAttributesButtonVisible(boolean newVal)
Set whether the Edit Attributes button should be displayed.

isCancelButtonVisible

public boolean isCancelButtonVisible()
Determine whether the Cancel button is displayed.

setCancelButtonVisible

public void setCancelButtonVisible(boolean newVal)
Set whether the Cancel button should be displayed.

isHelpButtonVisible

public boolean isHelpButtonVisible()
Determine whether the Help button is displayed.

setHelpButtonVisible

public void setHelpButtonVisible(boolean newVal)
Set whether the Help should be displayed.

clear

public void clear()
Clear all items from the versions viewer

setLayout

public void setLayout(java.awt.LayoutManager mgr)
Overridden to disable changing of the layout manager.
Overrides:
setLayout in class java.awt.Container

setLocale

public void setLocale(java.util.Locale newLocale)
Overrides the setLocale function
Overrides:
setLocale in class java.awt.Component

updateUI

public void updateUI()
Override updateUI to ensure proper updating of components
Overrides:
updateUI in class javax.swing.JComponent

onViewVersions

public void onViewVersions(CMBViewVersionsEvent event)
The CMBViewVersionsListener implementation
Specified by:
onViewVersions in interface CMBViewVersionsListener

addItemSelectedListener

public void addItemSelectedListener(CMBItemSelectedListener listener)
Adds the specified listener to receive Item Selected events.

removeItemSelectedListener

public void removeItemSelectedListener(CMBItemSelectedListener listener)
Removes the specified listener so that it no longer receives Item Selected events.

addItemPopupListener

public void addItemPopupListener(CMBItemPopupListener listener)
Adds the specified listener to receive Item Popup events.

removeItemPopupListener

public void removeItemPopupListener(CMBItemPopupListener listener)
Removes the specified listener so that it no longer receives I tem Popup events.

addItemActionListener

public void addItemActionListener(CMBItemActionListener listener)
Adds the specified listener to receive Item Action events.

removeItemActionListener

public void removeItemActionListener(CMBItemActionListener listener)
Removes the specified listener so that it no longer receives Item Action events.

addViewDocumentListener

public void addViewDocumentListener(CMBViewDocumentListener listener)
Adds the specified listener to receive View Document events.

removeViewDocumentListener

public void removeViewDocumentListener(CMBViewDocumentListener listener)
Removes the specified listener so that it no longer receives View Document events.

addViewVersionsCancelledListener

public void addViewVersionsCancelledListener(CMBViewVersionsCancelledListener listener)
Adds the specified listener to receive View Versions cancelled events.

removeViewVersionsCancelledListener

public void removeViewVersionsCancelledListener(CMBViewVersionsCancelledListener listener)
Removes the specified listener so that it no longer receives View Versions cancelled events.

addEditItemAttributesListener

public void addEditItemAttributesListener(CMBEditItemAttributesListener listener)
Adds the specified listener to receive Edit Item Attributes events.

removeEditItemAttributesListener

public void removeEditItemAttributesListener(CMBEditItemAttributesListener listener)
Removes the specified listener so that it no longer receives Edit Item Attributes events.

addHelpListener

public void addHelpListener(CMBHelpListener listener)
Adds the specified listener to receive Help events.

removeHelpListener

public void removeHelpListener(CMBHelpListener listener)
Removes the specified listener so that it no longer receives Help events.

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.