public interface DiffView
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DIFF_COUNT
This property is fired when the difference count has changed.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener.
|
boolean |
canSetCurrentDifference()
Test whether this view can change the current difference.
|
Component |
getComponent()
Gets the visual DIFF component that modules can include in their GUI.
|
int |
getCurrentDifference()
Get the current difference that is displayed in the view.
|
int |
getDifferenceCount()
Gets the number of differences found in sources.
|
JToolBar |
getToolBar()
Get a toolbar, that is adviced to be displayed together with the component
obtained from
DiffView.getComponent() . |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener.
|
void |
setCurrentDifference(int diffNo)
Instructs the DIFF view to navigate to the n-th difference.
|
static final String PROP_DIFF_COUNT
Component getComponent()
int getDifferenceCount()
boolean canSetCurrentDifference()
void setCurrentDifference(int diffNo) throws UnsupportedOperationException
diffNo
- The difference number (-1 means hide current difference visualization)UnsupportedOperationException
- iff DiffView.canSetCurrentDifference()
returns false
.int getCurrentDifference() throws UnsupportedOperationException
UnsupportedOperationException
- iff DiffView.canSetCurrentDifference()
returns false
.JToolBar getToolBar()
DiffView.getComponent()
.null
when no toolbar is provided by
this view.void addPropertyChangeListener(PropertyChangeListener l)
l
- The property change listenervoid removePropertyChangeListener(PropertyChangeListener l)
l
- The property change listener