ix.ip2
Class AgendaItem

java.lang.Object
  |
  +--ix.icore.process.PNode
        |
        +--ix.ip2.AgendaItem
Direct Known Subclasses:
ActivityItem, IssueItem

public abstract class AgendaItem
extends PNode

An entry in an Agenda.


Inner classes inherited from class ix.icore.process.PNode
PNode.MakeVarIfUnbound
 
Field Summary
protected  TaskItem about
           
protected  java.util.List actions
           
protected  java.lang.String comments
           
protected  java.util.List listeners
           
protected  java.util.List reports
           
 
Fields inherited from class ix.icore.process.PNode
children, level, modelManager, nameToChildMap, parent, postNodes, preNodes, refinement, varTable
 
Constructor Summary
AgendaItem(AgendaItem parent, TaskItem about)
           
AgendaItem(TaskItem about)
           
 
Method Summary
(package private)  boolean actionCanBeTakenNow(HandlerAction act)
           
 void addAction(HandlerAction act)
          Add an action to this issue.
(package private)  void addItemListener(ix.ip2.event.AgendaItemListener listener)
           
(package private)  void addReport(Report report)
           
(package private)  void expandOneLevel(Refinement refinement, MatchEnv env)
           
(package private)  HandlerAction findAction(java.lang.String actionDescription)
           
(package private)  void fireAgendaItemEdited()
           
(package private)  void fireHandlerActionsChanged()
           
(package private)  void fireNewHandlerAction(HandlerAction act)
           
(package private)  void fireNewReport(Report report)
           
(package private)  void firePriorityChanged()
           
(package private)  void fireStatusChanged()
           
 TaskItem getAbout()
           
 java.util.List getActions()
           
 java.util.List getChildren()
           
 java.lang.String getComments()
           
 int getLevel()
           
 AgendaItem getParent()
           
 LList getPattern()
           
 java.util.Set getPatternVars()
           
 Priority getPriority()
           
(package private)  java.util.List getReports()
           
 java.lang.String getShortDescription()
           
 Status getStatus()
           
 java.util.Set getUnboundVars()
           
(package private)  void handleReportBack(Status newStatus)
           
(package private)  boolean hasAction(HandlerAction act)
           
 void setComments(java.lang.String comments)
           
 void setPattern(LList pattern)
           
 void setPriority(Priority priority)
           
 void setStatus(Status status)
          Changes the node's status and then that of related nodes.
(package private)  void setStatusBasedOn(Report report)
           
 java.lang.String toString()
           
 boolean wantsActionsFrom(ItemHandler handler)
          Gives this item its say in whether an item-handler should be able to give it handler actions.
(package private)  boolean wantsReport(Report report)
           
 
Methods inherited from class ix.icore.process.PNode
allComputeStatus, allHaveStatus, computeStatus, expandOneLevel, getChild, isAncestorOf, isDescendentOf, linkBefore, processOrderings
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

about

protected TaskItem about

comments

protected java.lang.String comments

actions

protected java.util.List actions

reports

protected java.util.List reports

listeners

protected java.util.List listeners
Constructor Detail

AgendaItem

public AgendaItem(TaskItem about)

AgendaItem

public AgendaItem(AgendaItem parent,
                  TaskItem about)
Method Detail

getAbout

public TaskItem getAbout()

getPattern

public LList getPattern()

getPatternVars

public java.util.Set getPatternVars()

getUnboundVars

public java.util.Set getUnboundVars()

setPattern

public void setPattern(LList pattern)

getShortDescription

public java.lang.String getShortDescription()

getLevel

public int getLevel()

getParent

public AgendaItem getParent()

getChildren

public java.util.List getChildren()

getStatus

public Status getStatus()
Overrides:
getStatus in class PNode

setStatus

public void setStatus(Status status)
Description copied from class: PNode
Changes the node's status and then that of related nodes.
Overrides:
setStatus in class PNode

getPriority

public Priority getPriority()

setPriority

public void setPriority(Priority priority)

getComments

public java.lang.String getComments()

setComments

public void setComments(java.lang.String comments)

getActions

public java.util.List getActions()

wantsActionsFrom

public boolean wantsActionsFrom(ItemHandler handler)
Gives this item its say in whether an item-handler should be able to give it handler actions.
See Also:
ItemHandler.appliesTo(AgendaItem item)

addAction

public void addAction(HandlerAction act)
Add an action to this issue. Note that an action with the same description may already exist. We regard that as a problem for the AgendaItemListeners. For example, a user interface might use the description as a way to identify the action and may not want any ambiguity.

hasAction

boolean hasAction(HandlerAction act)

findAction

HandlerAction findAction(java.lang.String actionDescription)

actionCanBeTakenNow

boolean actionCanBeTakenNow(HandlerAction act)

wantsReport

boolean wantsReport(Report report)

addReport

void addReport(Report report)

setStatusBasedOn

void setStatusBasedOn(Report report)

getReports

java.util.List getReports()

handleReportBack

void handleReportBack(Status newStatus)

expandOneLevel

void expandOneLevel(Refinement refinement,
                    MatchEnv env)

addItemListener

void addItemListener(ix.ip2.event.AgendaItemListener listener)

fireStatusChanged

void fireStatusChanged()

firePriorityChanged

void firePriorityChanged()

fireHandlerActionsChanged

void fireHandlerActionsChanged()

fireNewHandlerAction

void fireNewHandlerAction(HandlerAction act)

fireNewReport

void fireNewReport(Report report)

fireAgendaItemEdited

void fireAgendaItemEdited()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object