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

E13403-07

oracle.jdeveloper.vcs.vop
Class BaseVersionOperationPanel

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.BaseVersionOperationPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
VersionOperationTablePanel, VersionOperationTreePanel

public abstract class BaseVersionOperationPanel
extends javax.swing.JPanel

Since:
11.1.2.0.0 (Shepherd)
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
protected BaseVersionOperationPanel()
           
 
Method Summary
 void addMouseListener(java.awt.event.MouseListener ml)
           
protected abstract  void addMouseListenerImpl(java.awt.event.MouseListener ml)
           
 void addSelectionListener(javax.swing.event.ChangeListener listener)
          Add a listener for changes in selection.
protected abstract  void attachSelectionListener()
           
 void autoSizeColumnsToFit()
          Deprecated. 
protected abstract  void createComponents()
           
 java.lang.Object depersistVisualSettings(java.lang.String persistenceKey)
           
 void fireCategoriesChanged()
           
protected  void fireSelectionChange()
           
 java.awt.Component getFocusComponent()
           
protected abstract  java.awt.Component getInternalComponent()
           
 VersionOperationModel getModel()
          Return the VersionOperationModel used for this panel
 java.awt.Component getOptionsComponent()
          Get the opetions component.
 int getOptionsDividerLocation()
           
protected abstract  javax.swing.JScrollPane getScrollPane()
           
abstract  Element[] getSelection()
          Get the current selection.
 NiceTable getTable()
          Deprecated. 
protected abstract  void initializePreferredSize()
           
 void installModel(VersionOperationModel model)
          Install a VersionOperationModel into this panel.
protected abstract  void installModelImpl(VersionOperationModel model)
           
abstract  boolean isItemAtPosition(java.awt.Point p)
           
 boolean isOptionsResizeable()
           
 boolean isOptionsVisible()
          Get whether the options component is visible.
 void persistVisualSettings(java.lang.String persistenceKey)
           
 void reapplySort()
          Deprecated. 
 void removeMouseListener(java.awt.event.MouseListener ml)
           
protected abstract  void removeMouseListenerImpl(java.awt.event.MouseListener ml)
           
 void removeSelectionListener(javax.swing.event.ChangeListener listener)
          Remove a listener
abstract  void selectAll()
           
protected abstract  void selectOnRightClick(java.awt.event.MouseEvent me)
           
 void setBorderLook(int look)
          Set whether the border is painted.
 void setCategorizer(VersionOperationCategorizer categorizer)
           
 void setCategoryCache(java.util.Map<VCSHashURL,java.lang.String> categoryCache)
           
 void setDefaultCategory(java.lang.String category)
           
 void setDefaultRenderer(java.lang.Class<?> columnClass, javax.swing.table.TableCellRenderer renderer)
          Deprecated. 
 void setOptionsComponent(java.awt.Component c)
          Set the component that contains option controls for this operation
 void setOptionsDividerLocation(int location)
           
 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

BaseVersionOperationPanel

protected BaseVersionOperationPanel()
Method Detail

autoSizeColumnsToFit

@Deprecated
public void autoSizeColumnsToFit()
Deprecated. 


reapplySort

@Deprecated
public void reapplySort()
Deprecated. 

Reapply the current sort.


getTable

@Deprecated
public NiceTable getTable()
Deprecated. 

Direct access to the table. Avoid using this unless absolutely necessary.


createComponents

protected abstract void createComponents()

getScrollPane

protected abstract javax.swing.JScrollPane getScrollPane()

initializePreferredSize

protected abstract void initializePreferredSize()

attachSelectionListener

protected abstract void attachSelectionListener()

addMouseListener

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

addMouseListenerImpl

protected abstract void addMouseListenerImpl(java.awt.event.MouseListener ml)

removeMouseListener

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

removeMouseListenerImpl

protected abstract void removeMouseListenerImpl(java.awt.event.MouseListener ml)

setOptionsResizeable

public void setOptionsResizeable(boolean optionsResizeable)

isOptionsResizeable

public boolean isOptionsResizeable()

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.


setOptionsLocation

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


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

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:
look - if true, the border will be painted.

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.

installModelImpl

protected abstract void installModelImpl(VersionOperationModel model)

addSelectionListener

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

Parameters:
listener - listener to add

removeSelectionListener

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

Parameters:
listener - listener to remove

getSelection

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

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

selectAll

public abstract void selectAll()

selectOnRightClick

protected abstract void selectOnRightClick(java.awt.event.MouseEvent me)

setSelectOnRightClick

public void setSelectOnRightClick(boolean isSet)

getOptionsDividerLocation

public final int getOptionsDividerLocation()

setOptionsDividerLocation

public final void setOptionsDividerLocation(int location)

getInternalComponent

protected abstract java.awt.Component getInternalComponent()

fireSelectionChange

protected final void fireSelectionChange()

getFocusComponent

public java.awt.Component getFocusComponent()

isItemAtPosition

public abstract boolean isItemAtPosition(java.awt.Point p)

setCategorizer

public void setCategorizer(VersionOperationCategorizer categorizer)

setCategoryCache

public void setCategoryCache(java.util.Map<VCSHashURL,java.lang.String> categoryCache)

fireCategoriesChanged

public void fireCategoriesChanged()

setDefaultCategory

public void setDefaultCategory(java.lang.String category)

depersistVisualSettings

public java.lang.Object depersistVisualSettings(java.lang.String persistenceKey)

persistVisualSettings

public void persistVisualSettings(java.lang.String persistenceKey)

setDefaultRenderer

@Deprecated
public void setDefaultRenderer(java.lang.Class<?> columnClass,
                                          javax.swing.table.TableCellRenderer renderer)
Deprecated. 


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

E13403-07

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