Class ConflictPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ScrollingListChoicesPanel, VariousChoicesPanel, VerticalChoicesPanel

public abstract class ConflictPanel extends ChoiceComponent
Abstract class that should be implemented by the conflict panel that appears below the 4 listings in the merge window.
See Also:
  • Constructor Details

    • ConflictPanel

      public ConflictPanel()
    • ConflictPanel

      public ConflictPanel(boolean isDoubleBuffered)
    • ConflictPanel

      public ConflictPanel(LayoutManager layout, boolean isDoubleBuffered)
    • ConflictPanel

      public ConflictPanel(LayoutManager layout)
  • Method Details

    • getUseForAllChoice

      public abstract int getUseForAllChoice()
      Returns an int value that indicates the choices currently selected for the Use For All choice in the conflict resolution table. If there are multiple rows of choices, then all selected choices must be the same for each row or 0 is returned. Each button or check box has an associated value that can be bitwise 'OR'ed together to get the entire choice for the row.
      Returns:
      the choice(s) currently selected.
    • hasChoice

      public abstract boolean hasChoice()
      Returns true if the conflict panel currently provides at least one choice to the user.
      Returns:
      true if the panel has a choice the user can select.
    • removeAllListeners

      public abstract void removeAllListeners()
      Removes all listeners that were set on this panel for indicating user choices were being made or changed.
    • clear

      public abstract void clear()
      Called to reset the panel back to an empty state so it can be reused.
    • createUseForAllCheckBox

      protected JCheckBox createUseForAllCheckBox()