Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.jdeveloper.vcs.vop
Class VersionOperationPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by oracle.jdeveloper.vcs.vop.VersionOperationPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class VersionOperationPanel
extends javax.swing.JPanel

The version operation panel displays a summary list of Displayables for a version operation.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
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
static int BORDER_LOOK_FLAT_CHANGELIST
           
static int BORDER_LOOK_FLAT_HISTORY
           
static int BORDER_LOOK_NOT_FLAT
           
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
VersionOperationPanel()
          Construct the version operation panel.
 
Method Summary
 void addMouseListener(java.awt.event.MouseListener ml)
           
 void addSelectionListener(javax.swing.event.ListSelectionListener listener)
          Add a listener for changes in selection.
 void autoSizeColumnsToFit()
           
 VersionOperationModel getModel()
          Return the VersionOperationModel used for this panel
 java.awt.Component getOptionsComponent()
          Get the opetions component.
 Element[] getSelection()
          Get the current selection.
 NiceTable getTable()
          Direct access to the table.
 void installModel(VersionOperationModel model)
          Install a VersionOperationModel into this panel.
 boolean isOptionsVisible()
          Get whether the options component is visible.
 void reapplySort()
          Reapply the current sort.
 void removeMouseListener(java.awt.event.MouseListener ml)
           
 void removeSelectionListener(javax.swing.event.ListSelectionListener listener)
          Remove a listener
 void selectAll()
           
 void setBorderLook(int look)
          Set whether the border is painted.
 void setOptionsComponent(java.awt.Component c)
          Set the component that contains option controls for this operation
 void setOptionsLocation(int location)
          Set the location of the options component.
 void setOptionsResizeable(boolean optionsResizeable)
           
 void setOptionsVisible(boolean isVisible)
          Set whether the options component is visible.
 void setSelectOnRightClick(boolean isSet)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, 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, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, imageUpdate, 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, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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

BORDER_LOOK_NOT_FLAT

public static final int BORDER_LOOK_NOT_FLAT
See Also:
Constant Field Values

BORDER_LOOK_FLAT_CHANGELIST

public static final int BORDER_LOOK_FLAT_CHANGELIST
See Also:
Constant Field Values

BORDER_LOOK_FLAT_HISTORY

public static final int BORDER_LOOK_FLAT_HISTORY
See Also:
Constant Field Values
Constructor Detail

VersionOperationPanel

public VersionOperationPanel()
Construct the version operation panel.

Method Detail

addMouseListener

public void addMouseListener(java.awt.event.MouseListener ml)
Overrides:
addMouseListener in class java.awt.Component

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener ml)
Overrides:
removeMouseListener in class java.awt.Component

setSelectOnRightClick

public void setSelectOnRightClick(boolean isSet)

getTable

public NiceTable getTable()
Direct access to the table. Avoid using this unless absolutely necessary.


getModel

public VersionOperationModel getModel()
Return the VersionOperationModel used for this panel

Returns:
the VersionOperationModel used for this panel

setBorderLook

public void setBorderLook(int look)
Set whether the border is painted. When the VOP is displayed in a dockable, it's better not to paint the border.

Parameters:
isBorderPainted - if true, the border will be painted.

reapplySort

public void reapplySort()
Reapply the current sort.


setOptionsLocation

public void setOptionsLocation(int location)
Set the location of the options component. This can be either SwingConstants.TOP or SwingConstants.BOTTOM


setOptionsResizeable

public void setOptionsResizeable(boolean optionsResizeable)

setOptionsComponent

public void setOptionsComponent(java.awt.Component c)
Set the component that contains option controls for this operation

Parameters:
c - a component containing option controls. May be null to clear the current control.

getOptionsComponent

public java.awt.Component getOptionsComponent()
Get the opetions component.


setOptionsVisible

public final void setOptionsVisible(boolean isVisible)
Set whether the options component is visible.

Parameters:
isVisible - if true, the options component will be displayed, if false it will be hidden.

isOptionsVisible

public final boolean isOptionsVisible()
Get whether the options component is visible.

Returns:
true if the options component is currently visible, false otherwise

installModel

public void installModel(VersionOperationModel model)
Install a VersionOperationModel into this panel. It's recommended that models which are expensive to populate are populated asynchronously, and the isComplete() method is used to indicate whether the model is fully constructed.

Parameters:
model - the model to install.

autoSizeColumnsToFit

public void autoSizeColumnsToFit()

addSelectionListener

public void addSelectionListener(javax.swing.event.ListSelectionListener listener)
Add a listener for changes in selection.

Parameters:
listener - listener to add

removeSelectionListener

public void removeSelectionListener(javax.swing.event.ListSelectionListener listener)
Remove a listener

Parameters:
listener - listener to remove

getSelection

public Element[] getSelection()
Get the current selection.

Returns:
an array of Elements selected in the version operation panel

selectAll

public void selectAll()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

Copyright © 1997, 2009, Oracle. All rights reserved.