org.argouml.cognitive.checklist
Class Checklist

java.lang.Object
  extended byorg.argouml.cognitive.checklist.Checklist
All Implemented Interfaces:
Serializable

public class Checklist
extends Object
implements Serializable

A Checklist is basically a list of CheckItems. It also provides some convience functions for adding trivial CheckItems (ones that have no predicate). In ArgoUML, Checklists are shown in the TabChecklist panel.

See Also:
TabChecklist, Serialized Form

Field Summary
private  Vector items
          Pending CheckItems for the designer to consider.
private  String nextCategory
           
 
Constructor Summary
Checklist()
          The constructor.
 
Method Summary
 void addAll(Checklist list)
          Replace the list by the given new list.
 void addItem(CheckItem item)
           
 void addItem(String description)
           
 CheckItem elementAt(int index)
           
 Enumeration elements()
           
 Vector getCheckItems()
           
 void removeItem(CheckItem item)
           
 void setNextCategory(String cat)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

private Vector items
Pending CheckItems for the designer to consider.


nextCategory

private String nextCategory
Constructor Detail

Checklist

public Checklist()
The constructor.

Method Detail

getCheckItems

public Vector getCheckItems()
Returns:
the items

addItem

public void addItem(CheckItem item)
Parameters:
item - the item to be added to the list

removeItem

public void removeItem(CheckItem item)
Parameters:
item - the item to be removed

addItem

public void addItem(String description)
Parameters:
description - the description for a new item

addAll

public void addAll(Checklist list)
Replace the list by the given new list.

Parameters:
list - the given new list

elements

public Enumeration elements()
Returns:
the list in enumeration format

size

public int size()
Returns:
the number of items in the list

elementAt

public CheckItem elementAt(int index)
Parameters:
index - the position of the item to retrieve
Returns:
the item

setNextCategory

public void setNextCategory(String cat)
Parameters:
cat - the category

toString

public String toString()
See Also:
Object.toString()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook