org.argouml.uml.cognitive
Class UMLToDoItem

java.lang.Object
  extended byorg.argouml.cognitive.ToDoItem
      extended byorg.argouml.uml.cognitive.UMLToDoItem
All Implemented Interfaces:
Serializable, WizardItem

public class UMLToDoItem
extends ToDoItem

UMLToDoItem is the preferred class for newly created ToDoItems within ArgoUML. It knows more about possible designmaterial and can for example highlight offenders when they are ModelElements by finding the according Fig in the current diagram for them.

Since:
0.15.3
See Also:
ToDoItem, Serialized Form

Field Summary
 
Fields inherited from class org.argouml.cognitive.ToDoItem
HIGH_PRIORITY, LOW_PRIORITY, MED_PRIORITY
 
Constructor Summary
UMLToDoItem(Critic c)
          The constructor.
UMLToDoItem(Critic c, Object dm, Designer dsgr)
          The constructor.
UMLToDoItem(Critic c, org.tigris.gef.util.VectorSet offs, Designer dsgr)
          The constructor.
UMLToDoItem(Poster poster, String h, int p, String d, String m)
          The constructor.
UMLToDoItem(Poster poster, String h, int p, String d, String m, org.tigris.gef.util.VectorSet offs)
          The constructor.
 
Method Summary
 void action()
          Action jumps to the diagram containing all or most of the offenders and calls deselect(), select() around the call to ProjectBrowser.jumpToDiagramShowing(VectorSet).
 void deselect()
          When a ToDoItem is deselected in the UiToDoList window, unhighlight the "offending" design material's.
 void select()
          When a ToDoItem is selected in the UiToDoList window, highlight the "offending" design material's.
 
Methods inherited from class org.argouml.cognitive.ToDoItem
canFixIt, changed, containsKnowledgeType, equals, fixIt, getClarifier, getDescription, getExpertEmail, getHeadline, getMoreInfoURL, getOffenders, getPoster, getPriority, getProgress, getWizard, hashCode, setDescription, setHeadline, setMoreInfoURL, setOffenders, setPriority, stillValid, supports, supports, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLToDoItem

public UMLToDoItem(Poster poster,
                   String h,
                   int p,
                   String d,
                   String m,
                   org.tigris.gef.util.VectorSet offs)
The constructor.

Parameters:
poster - the poster
h - the headline
p - the priority
d - the description
m - the more-info-url
offs - the offenders

UMLToDoItem

public UMLToDoItem(Poster poster,
                   String h,
                   int p,
                   String d,
                   String m)
The constructor.

Parameters:
poster - the poster
h - the headline
p - the priority
d - the description
m - the more-info-url

UMLToDoItem

public UMLToDoItem(Critic c,
                   Object dm,
                   Designer dsgr)
The constructor.

Parameters:
c - the poster (critic)
dm - the offenders
dsgr - the designer

UMLToDoItem

public UMLToDoItem(Critic c,
                   org.tigris.gef.util.VectorSet offs,
                   Designer dsgr)
The constructor.

Parameters:
c - the poster (critic)
offs - the offenders
dsgr - the designer

UMLToDoItem

public UMLToDoItem(Critic c)
The constructor.

Parameters:
c - the critic that created this todoitem
Method Detail

action

public void action()
Action jumps to the diagram containing all or most of the offenders and calls deselect(), select() around the call to ProjectBrowser.jumpToDiagramShowing(VectorSet).

Overrides:
action in class ToDoItem

deselect

public void deselect()
Description copied from class: ToDoItem
When a ToDoItem is deselected in the UiToDoList window, unhighlight the "offending" design material's.

Overrides:
deselect in class ToDoItem
See Also:
ToDoItem.deselect()

select

public void select()
Description copied from class: ToDoItem
When a ToDoItem is selected in the UiToDoList window, highlight the "offending" design material's.

Overrides:
select in class ToDoItem
See Also:
ToDoItem.select()


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