Skip navigation links 
 
oracle.javatools.compare.view.list
Class ListCompareView
java.lang.Object
   oracle.javatools.compare.view.BaseCompareView
oracle.javatools.compare.view.BaseCompareView
       oracle.javatools.compare.view.SequenceCompareView
oracle.javatools.compare.view.SequenceCompareView
           oracle.javatools.compare.view.list.ListCompareView
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
 
 
  
  
 
 
| 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 | 
  
 
  
 
| 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.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, 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, 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 | 
 
 
ListCompareView
public ListCompareView()
ListCompareView
public ListCompareView(CompareMode compareMode)
getFocusComponent
public java.awt.Component getFocusComponent()
- 
- Overrides:
- getFocusComponentin class- BaseCompareView
 
initializeView
protected void initializeView(CompareModel compareModel)
- 
- Overrides:
- initializeViewin 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:
- updateModelImplin class- BaseCompareView
 
getOverviewLeftEditor
protected java.awt.Component getOverviewLeftEditor()
- 
- Overrides:
- getOverviewLeftEditorin class- BaseCompareView
 
getOverviewRightEditor
protected java.awt.Component getOverviewRightEditor()
- 
- Overrides:
- getOverviewRightEditorin class- BaseCompareView
 
getFocusableCenterEditor
protected java.awt.Component getFocusableCenterEditor()
- 
- Overrides:
- getFocusableCenterEditorin class- BaseCompareView
 
createHorizontalScrollPane
protected javax.swing.JScrollPane createHorizontalScrollPane(java.awt.Component view)
- 
- Overrides:
- createHorizontalScrollPanein class- BaseCompareView
 
getOverviewDifferenceColor
protected java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock,
                                                    boolean isLeft,
                                                    ContributorKind firstContributorKind,
                                                    ContributorKind secondContributorKind)
- 
- Specified by:
- getOverviewDifferenceColorin 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:
- getVirtualHeightLinesin class- SequenceCompareView
 
- 
- Returns:
- the virtual height in lines.
 
verticalScrollTo
protected void verticalScrollTo(int virtualLine)
- 
- Specified by:
- verticalScrollToin 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:
- getDiffBlockIteratorin class- SequenceCompareView
 
- 
- Returns:
- an Iterator of DifferenceBlocks
 
getPreviousDifference
protected CompareDifference getPreviousDifference()
- 
- Specified by:
- getPreviousDifferencein class- BaseCompareView
 
getNextDifference
protected CompareDifference getNextDifference()
- 
- Specified by:
- getNextDifferencein class- BaseCompareView
 
getPreviousConflict
protected CompareDifference getPreviousConflict()
- 
- Specified by:
- getPreviousConflictin class- BaseCompareView
 
getNextConflict
protected CompareDifference getNextConflict()
- 
- Specified by:
- getNextConflictin class- BaseCompareView
 
getCurrentDifference
protected CompareDifference getCurrentDifference()
- 
- Specified by:
- getCurrentDifferencein class- BaseCompareView
 
getCurrentContributorKind
protected ContributorKind getCurrentContributorKind()
- 
- Specified by:
- getCurrentContributorKindin class- BaseCompareView
 
goToDifference
protected void goToDifference(CompareDifference difference,
                              boolean requestFocus)
- 
- Specified by:
- goToDifferencein class- BaseCompareView
 
isViewFocusOwner
protected boolean isViewFocusOwner()
- 
- Overrides:
- isViewFocusOwnerin class- BaseCompareView
 
createInsertBlockAction
protected javax.swing.Action createInsertBlockAction(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                                                     ContributorKind contributor,
                                                     ContributorKind adjacentContributor)
- 
- Overrides:
- createInsertBlockActionin 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:
- replaceBlockin 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:
- insertBlockCopyin 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:
- deleteBlockin 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:
- addPopupManagerin interface- ActionMenuView
- Overrides:
- addPopupManagerin 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:
- removePopupManagerin interface- ActionMenuView
- Overrides:
- removePopupManagerin class- BaseCompareView
 
- 
- Parameters:
- popupManager- the popup manager to remove
 
canReadElement
protected boolean canReadElement(CompareDifference difference,
                                 ContributorKind contributorKind)
- 
- Overrides:
- canReadElementin class- BaseCompareView
 
canWriteElement
protected boolean canWriteElement(CompareDifference difference,
                                  ContributorKind contributorKind)
- 
- Overrides:
- canWriteElementin 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:
- createOverviewsin class- SequenceCompareView
 
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.