Package VASSAL.build.module
Class Inventory.CounterInventory
java.lang.Object
VASSAL.build.module.Inventory.CounterInventory
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Map
<String, Inventory.CounterNode> protected String
protected Inventory.CounterNode
protected boolean
protected List
<TreeModelListener> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fireNodesRemoved
(Object[] path, int[] childIndices, Object[] children) int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) Deliver information of the tree as text.String[]
Compatibility for DisplayResults class.getRoot()
void
insert
(Inventory.Counter counter) insert counter into the tree.boolean
void
void
valueForPathChanged
(TreePath path, Object newValue)
-
Field Details
-
treeModelListeners
-
inventory
-
root
-
resultString
-
path
-
changed
protected boolean changed -
sort
protected boolean sort
-
-
Constructor Details
-
CounterInventory
-
-
Method Details
-
insert
insert counter into the tree. It is not sorted in any way.- Parameters:
counter
-
-
getResultString
-
getResultStringArray
-
getRoot
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
isLeaf
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
fireNodesRemoved
-
getChild
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-