Interface DiffView


public interface DiffView
Controller interface that allows external code to control the DIFF component.
  • Field Details

    • PROP_DIFF_COUNT

      static final String PROP_DIFF_COUNT
      This property is fired when the difference count has changed.
      See Also:
  • Method Details

    • getComponent

      Component getComponent()
      Gets the visual DIFF component that modules can include in their GUI.
      Returns:
      Component
    • getDifferenceCount

      int getDifferenceCount()
      Gets the number of differences found in sources.
      Returns:
      int
    • canSetCurrentDifference

      boolean canSetCurrentDifference()
      Test whether this view can change the current difference. This is expected to be true when the view has a visual indication of the current difference.
    • setCurrentDifference

      void setCurrentDifference(int diffNo) throws UnsupportedOperationException
      Instructs the DIFF view to navigate to the n-th difference.
      Parameters:
      diffNo - The difference number (-1 means hide current difference visualization)
      Throws:
      UnsupportedOperationException - iff canSetCurrentDifference() returns false.
    • getCurrentDifference

      int getCurrentDifference() throws UnsupportedOperationException
      Get the current difference that is displayed in the view.
      Returns:
      The current difference number
      Throws:
      UnsupportedOperationException - iff canSetCurrentDifference() returns false.
    • getToolBar

      JToolBar getToolBar()
      Get a toolbar, that is adviced to be displayed together with the component obtained from getComponent().
      Returns:
      the toolbar or null when no toolbar is provided by this view.
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener l)
      Add a property change listener.
      Parameters:
      l - The property change listener
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener l)
      Remove a property change listener.
      Parameters:
      l - The property change listener