Class ChoiceComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ConflictPanel

public abstract class ChoiceComponent extends JPanel
Abstract class for a GUI panel that allows the user to select choices for resolving conflicts.
See Also:
  • Constructor Details

    • ChoiceComponent

      public ChoiceComponent()
    • ChoiceComponent

      public ChoiceComponent(boolean isDoubleBuffered)
    • ChoiceComponent

      public ChoiceComponent(LayoutManager layout, boolean isDoubleBuffered)
    • ChoiceComponent

      public ChoiceComponent(LayoutManager layout)
  • Method Details

    • allChoicesAreResolved

      public abstract boolean allChoicesAreResolved()
      Returns whether or not all of the choices (conflicts) have been resolved by the user making selections.
      Returns:
      true if all conflicts are resolved.
    • getNumConflictsResolved

      public abstract int getNumConflictsResolved()
      Returns the number of conflicts that have currently been resolved in this GUI component.
      Returns:
      the number resolved.
    • allChoicesAreSame

      public abstract boolean allChoicesAreSame()
      Returns whether or not all of the choices (conflicts) have been resolved by the user making selections and the user made the same choice for all the conflicts.
      Returns:
      true if all conflicts are resolved the same.