Class ListPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ListPanel

class ListPanel
extends Panel
Creates and handles the continuations only checkbox, the list and the predecessor button. A linked list of the items that are currently in the list is kept in this class.

Version:
1.00
Author:
Bill Lorton

Constructor Index

 o ListPanel(Othello)
Creates the interface components.

Method Index

 o _addContinuationItems(OTNode)
Recursively adds all of the continations under the given node.
 o addContinuationItems(OTNode)
Adds the continuations of the given node's opening to the list.
 o addItem(OTNode)
Adds the given node's opening to the list.
 o removeAll()
Removes all items from the list.
 o selectItem(OTNode)
Makes the given node's opening selected in the list.

Constructors

 o ListPanel
 public ListPanel(Othello app)
Creates the interface components.

Methods

 o _addContinuationItems
 protected void _addContinuationItems(OTNode node)
Recursively adds all of the continations under the given node.

Parameters:
node - where to begin the search for openings
 o addItem
 public void addItem(OTNode node)
Adds the given node's opening to the list. The node must contain an opening.

Parameters:
node - the node to add to the list
 o selectItem
 public void selectItem(OTNode node)
Makes the given node's opening selected in the list.

Parameters:
node - the node to select
 o addContinuationItems
 public void addContinuationItems(OTNode node)
Adds the continuations of the given node's opening to the list. The node must contain an opening.

Parameters:
node - the node that will have its continuations added
 o removeAll
 public void removeAll()
Removes all items from the list.

Overrides:
removeAll in class Container