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
-
ListPanel(Othello)
-
Creates the interface components.
-
_addContinuationItems(OTNode)
-
Recursively adds all of the continations under the given node.
-
addContinuationItems(OTNode)
-
Adds the continuations of the given node's opening to the list.
-
addItem(OTNode)
-
Adds the given node's opening to the list.
-
removeAll()
-
Removes all items from the list.
-
selectItem(OTNode)
-
Makes the given node's opening selected in the list.
ListPanel
public ListPanel(Othello app)
- Creates the interface components.
_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
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
selectItem
public void selectItem(OTNode node)
- Makes the given node's opening selected in the list.
- Parameters:
- node - the node to select
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
removeAll
public void removeAll()
- Removes all items from the list.
- Overrides:
- removeAll in class Container