Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.compare.view.list
Class ListCompareView

java.lang.Object
  extended by oracle.javatools.compare.view.BaseCompareView
      extended by oracle.javatools.compare.view.SequenceCompareView
          extended by oracle.javatools.compare.view.list.ListCompareView
All Implemented Interfaces:
CompareView, ActionMenuView, CustomHorizontalScrollView, EditableView, NavigableConflictsView, NavigableView, SplitPanelView, StatusView, ToolTipView

public class ListCompareView
extends SequenceCompareView

Since:
11.0

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.javatools.compare.view.SequenceCompareView
SequenceCompareView.OverviewComponent, SequenceCompareView.OverviewComponentMouseHandler
 
Nested classes/interfaces inherited from class oracle.javatools.compare.view.BaseCompareView
BaseCompareView.CentralGutterMouseHandler, BaseCompareView.ContributorBias, BaseCompareView.CustomFocusTraversalPolicy, BaseCompareView.PositionListener
 
Field Summary
 
Fields inherited from class oracle.javatools.compare.view.BaseCompareView
_centerScrollPane, _centerTitle, _leftDiffGutter, _leftOverview, _leftScrollPane, _leftTitle, _rightDiffGutter, _rightOverview, _rightScrollPane, _rightTitle, GUI_VERTICAL_SCROLLBAR, GUI_VERTICAL_SPACER
 
Constructor Summary
ListCompareView()
           
ListCompareView(CompareMode compareMode)
           
 
Method Summary
 void addDefaultActionListener(java.awt.event.ActionListener l)
           
 void addPopupManager(ComparePopupManager popupManager)
          Add a popup manager to this view.
protected  boolean canReadElement(CompareDifference difference, ContributorKind contributorKind)
           
protected  boolean canWriteElement(CompareDifference difference, ContributorKind contributorKind)
           
protected  javax.swing.JScrollPane createHorizontalScrollPane(java.awt.Component view)
           
protected  javax.swing.Action createInsertBlockAction(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind contributor, ContributorKind adjacentContributor)
           
protected  void createOverviews()
           
protected  void deleteBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind contributorKind)
          Remove the specified difference block from the specified contributor.
protected  ContributorKind getCurrentContributorKind()
           
protected  CompareDifference getCurrentDifference()
           
protected  java.util.Iterator getDiffBlockIterator()
          Get an iterator over the diff blocks in the model.
protected  java.awt.Component getFocusableCenterEditor()
           
 java.awt.Component getFocusComponent()
           
protected  CompareDifference getNextConflict()
           
protected  CompareDifference getNextDifference()
           
protected  java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock, boolean isLeft, ContributorKind firstContributorKind, ContributorKind secondContributorKind)
           
protected  java.awt.Component getOverviewLeftEditor()
           
protected  java.awt.Component getOverviewRightEditor()
           
protected  CompareDifference getPreviousConflict()
           
protected  CompareDifference getPreviousDifference()
           
 java.lang.Object[] getSelectionForCompare()
           
protected  int getVirtualHeightLines(ContributorKind contributor)
          Get the virtual height of the compare view in lines.
protected  void goToDifference(CompareDifference difference, boolean requestFocus)
           
protected  void initializeView(CompareModel compareModel)
           
protected  void insertBlockCopy(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind fromContributorKind, ContributorKind toContributorKind)
          Take a copy of the block from the specified contributor and insert it into the other contributor after the change.
 boolean isSelectionComparable()
           
protected  boolean isViewFocusOwner()
           
 void removeDefaultActionListener(java.awt.event.ActionListener l)
           
 void removePopupManager(ComparePopupManager popupManager)
          Remove a popup manager from this view.
protected  void replaceBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind fromContributorKind, ContributorKind toContributorKind)
          Take a copy of the block from the specified contributor and replace the text of the adjacent contributor with the text.
protected  void updateModelImpl()
          Reapplies the specified model to the view.
protected  void verticalScrollTo(int virtualLine)
           
 
Methods inherited from class oracle.javatools.compare.view.SequenceCompareView
createModel, getVirtualLineForReal, initializeOverview
 
Methods inherited from class oracle.javatools.compare.view.BaseCompareView
addPositionListener, addStatusListener, addViewEditListener, attachContributorChangeListeners, calculateRightEditorInset, createDeleteBlockAction, createFocusTraversalPolicy, createMarkAllResolvedAction, createMarkResolvedAction, createMemento, createModel, createMutableModel, createReplaceBlockAction, detachContributorChangeListeners, dispose, firePositionChanged, fireStatusChanged, fireViewEditEvent, getAdjacentContributorKind, getAdjacentContributorKind, getBias, getBundle, getCenterScrollPane, getCenterTitle, getCompareMode, getCompareModel, getContributor, getDecorations, getDefaultEditAction, getDefaultEditActionIcon, getEditActions, getEditActions, getGUI, getHorizontalScrollBars, getHorizontalScrollComponent, getLeftDiffGutter, getLeftOrCenterSplitter, getLeftOverview, getLeftScrollPane, getLeftTitle, getModel, getPopupManager, getRightDiffGutter, getRightOverview, getRightScrollPane, getRightSplitter, getRightTitle, getSplitPanel, getSplitterLocation, getToolTipProvider, getUndoableEditListeners, getVerticalScrollbar, getVerticalScrollBar, getVerticalScrollCardLayout, getVerticalScrollPanel, getViewEditListeners, goToDifference, goToFirstConflict, goToFirstDifference, goToInitialDifference, goToLastConflict, goToLastDifference, goToNextConflict, goToNextDifference, goToPreviousConflict, goToPreviousDifference, hasDefaultEditAction, hasNavigableConflicts, hasNavigableDifferences, hasNextConflict, hasNextDifference, hasPreviousConflict, hasPreviousDifference, horizontalScrollTo, initScrollPane, isAddition, isEditable, isEditLocked, isOverviewFocusOwner, isRemoval, markAllResolved, markResolved, registerViewDecoration, registerViewDecoration, removePositionListener, removeStatusListener, removeViewEditListener, repaintDiffGutters, resetGUI, setCenterScrollPane, setCompareModel, setEditLocked, setLeftDiffGutter, setLeftScrollPane, setMemento, setModel, setRightDiffGutter, setRightScrollPane, setSplitPanel, setSplitterLocation, setSplitterLocation, setToolTipProvider, updateModel, updateOnEdit, updateTitles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListCompareView

public ListCompareView()

ListCompareView

public ListCompareView(CompareMode compareMode)
Method Detail

getFocusComponent

public java.awt.Component getFocusComponent()
Overrides:
getFocusComponent in class BaseCompareView

initializeView

protected void initializeView(CompareModel compareModel)
Overrides:
initializeView in class BaseCompareView

updateModelImpl

protected void updateModelImpl()
Description copied from class: BaseCompareView
Reapplies the specified model to the view. This is used when the contributors are the same but the model has changed, mainly for performance (it does less work than setModel( model )).

Specified by:
updateModelImpl in class BaseCompareView

getOverviewLeftEditor

protected java.awt.Component getOverviewLeftEditor()
Overrides:
getOverviewLeftEditor in class BaseCompareView

getOverviewRightEditor

protected java.awt.Component getOverviewRightEditor()
Overrides:
getOverviewRightEditor in class BaseCompareView

getFocusableCenterEditor

protected java.awt.Component getFocusableCenterEditor()
Overrides:
getFocusableCenterEditor in class BaseCompareView

createHorizontalScrollPane

protected javax.swing.JScrollPane createHorizontalScrollPane(java.awt.Component view)
Overrides:
createHorizontalScrollPane in class BaseCompareView

getOverviewDifferenceColor

protected java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock,
                                                    boolean isLeft,
                                                    ContributorKind firstContributorKind,
                                                    ContributorKind secondContributorKind)
Specified by:
getOverviewDifferenceColor in class SequenceCompareView

getVirtualHeightLines

protected int getVirtualHeightLines(ContributorKind contributor)
Description copied from class: SequenceCompareView
Get the virtual height of the compare view in lines. The virtual height is the sum of the maximum height of all difference blocks and the gaps between them.

Overrides:
getVirtualHeightLines in class SequenceCompareView
Returns:
the virtual height in lines.

verticalScrollTo

protected void verticalScrollTo(int virtualLine)
Specified by:
verticalScrollTo in class BaseCompareView

getDiffBlockIterator

protected java.util.Iterator getDiffBlockIterator()
Description copied from class: SequenceCompareView
Get an iterator over the diff blocks in the model. This iterator returns both "real" blocks and imaginary blocks for segments that match. This makes it easier to make virtual space calculations.

Overrides:
getDiffBlockIterator in class SequenceCompareView
Returns:
an Iterator of DifferenceBlocks

getPreviousDifference

protected CompareDifference getPreviousDifference()
Specified by:
getPreviousDifference in class BaseCompareView

getNextDifference

protected CompareDifference getNextDifference()
Specified by:
getNextDifference in class BaseCompareView

getPreviousConflict

protected CompareDifference getPreviousConflict()
Specified by:
getPreviousConflict in class BaseCompareView

getNextConflict

protected CompareDifference getNextConflict()
Specified by:
getNextConflict in class BaseCompareView

getCurrentDifference

protected CompareDifference getCurrentDifference()
Specified by:
getCurrentDifference in class BaseCompareView

getCurrentContributorKind

protected ContributorKind getCurrentContributorKind()
Specified by:
getCurrentContributorKind in class BaseCompareView

goToDifference

protected void goToDifference(CompareDifference difference,
                              boolean requestFocus)
Specified by:
goToDifference in class BaseCompareView

isViewFocusOwner

protected boolean isViewFocusOwner()
Overrides:
isViewFocusOwner in class BaseCompareView

createInsertBlockAction

protected javax.swing.Action createInsertBlockAction(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                                                     ContributorKind contributor,
                                                     ContributorKind adjacentContributor)
Overrides:
createInsertBlockAction in class BaseCompareView

replaceBlock

protected void replaceBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                            ContributorKind fromContributorKind,
                            ContributorKind toContributorKind)
Description copied from class: BaseCompareView
Take a copy of the block from the specified contributor and replace the text of the adjacent contributor with the text. It only really makes sense to do this if the block is a change on both sides, i.e. block.getLength() for both contributors > 0.

Specified by:
replaceBlock in class BaseCompareView
Parameters:
difference - the block to change
fromContributorKind - the contributor to copy from
toContributorKind - the contributor whose block will be replaced.

insertBlockCopy

protected void insertBlockCopy(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                               ContributorKind fromContributorKind,
                               ContributorKind toContributorKind)
Description copied from class: BaseCompareView
Take a copy of the block from the specified contributor and insert it into the other contributor after the change.

Specified by:
insertBlockCopy in class BaseCompareView
Parameters:
difference - the block to copy
fromContributorKind - the contributor to copy from
toContributorKind - the contributor to copy to

deleteBlock

protected void deleteBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                           ContributorKind contributorKind)
Description copied from class: BaseCompareView
Remove the specified difference block from the specified contributor.

Specified by:
deleteBlock in class BaseCompareView
Parameters:
difference - the block to remove
contributorKind - the contributor to remove the block from

addPopupManager

public void addPopupManager(ComparePopupManager popupManager)
Description copied from interface: ActionMenuView
Add a popup manager to this view. The popup manager will be attached to all editor panes that make up the view.

Specified by:
addPopupManager in interface ActionMenuView
Overrides:
addPopupManager in class BaseCompareView
Parameters:
popupManager - the popup manager to attach

removePopupManager

public void removePopupManager(ComparePopupManager popupManager)
Description copied from interface: ActionMenuView
Remove a popup manager from this view. The popup manager will be removed from all editor panes that make up this view.

Specified by:
removePopupManager in interface ActionMenuView
Overrides:
removePopupManager in class BaseCompareView
Parameters:
popupManager - the popup manager to remove

canReadElement

protected boolean canReadElement(CompareDifference difference,
                                 ContributorKind contributorKind)
Overrides:
canReadElement in class BaseCompareView

canWriteElement

protected boolean canWriteElement(CompareDifference difference,
                                  ContributorKind contributorKind)
Overrides:
canWriteElement in class BaseCompareView

isSelectionComparable

public boolean isSelectionComparable()

getSelectionForCompare

public java.lang.Object[] getSelectionForCompare()

addDefaultActionListener

public void addDefaultActionListener(java.awt.event.ActionListener l)

removeDefaultActionListener

public void removeDefaultActionListener(java.awt.event.ActionListener l)

createOverviews

protected void createOverviews()
Overrides:
createOverviews in class SequenceCompareView

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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