|
org.netbeans.modules.diff/1 1.18.0 42 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.diff.DiffControllerImpl
public abstract class DiffControllerImpl
Provider class for DiffController, encapsulates a single Diff panel that displays differences between two files (sources).
| Field Summary | |
|---|---|
protected PropertyChangeSupport |
support
A PropertyChangeSupport instance. |
| Constructor Summary | |
|---|---|
protected |
DiffControllerImpl()
Default constructor, does nothing. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener. |
abstract int |
getDifferenceCount()
Gets total number of Differences between sources currently displayed in the Diff view. |
int |
getDifferenceIndex()
Gets the current (highlighted) difference in the Diff view. |
abstract JComponent |
getJComponent()
Retrieves visual presenter of the Diff. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener. |
protected void |
setDifferenceIndex(int idx)
Implementors use this method to set the current (highlighted) difference. |
void |
setLocation(DiffController.DiffPane pane,
DiffController.LocationType type,
int location)
Ensure the requested location in the Diff view is visible on screen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PropertyChangeSupport support
| Constructor Detail |
|---|
protected DiffControllerImpl()
| Method Detail |
|---|
public void setLocation(DiffController.DiffPane pane, DiffController.LocationType type, int location)
pane - defines which pane the location parameter refers totype - defines the location parameter, see belowlocation - depending on the type parameter this defines either a line number or a Difference index, both 0-based
IllegalArgumentException - if location parameter is out of range for the given pane and location typepublic abstract JComponent getJComponent()
public abstract int getDifferenceCount()
public final int getDifferenceIndex()
protected final void setDifferenceIndex(int idx)
idx - a new current difference indoxpublic final void addPropertyChangeListener(PropertyChangeListener listener)
listener - property change listenerpublic final void removePropertyChangeListener(PropertyChangeListener listener)
listener - property change listener
|
org.netbeans.modules.diff/1 1.18.0 42 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||