org.sandev.TaskHeap.structs
Class DisplayParamsStruct

java.lang.Object
  extended byorg.sandev.TaskHeap.structs.DisplayParamsStruct
Direct Known Subclasses:
DisplayParams

public class DisplayParamsStruct
extends java.lang.Object

Holds parameters used to tailor the display.

summary fields: currPlan displayMode viewMode
This message has the following verb forms: update

Field Summary
protected  long currPlan
          The Plan we are currently working with.
protected  int displayMode
          What should be displayed in the tree overview.
protected  long previousRoot
          Used to distinguish between a new root being set, and a new root being cancelled.
protected  long rootPlan
          The uniqueID of the Plan to be used as the current root.
protected  int viewMode
          Whether we are working from the point of view of projected completion or deadline.
 
Constructor Summary
DisplayParamsStruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currPlan

protected long currPlan
The Plan we are currently working with. May be null.

reference to class: org.sandev.TaskHeap.structs.PlanStruct

displayMode

protected int displayMode
What should be displayed in the tree overview.

declared default value: NORMAL

enumerated constant values:

  • _ALL = 0
  • _NORMAL = 1
  • _HIDEDONE = 2
  • _TIMEONLY = 3
  • _LEVEL2 = 4
  • _LEVEL3 = 5
  • _LEVEL4 = 6
  • _SUBROOT = 7
declared invalid value: -1

rootPlan

protected long rootPlan
The uniqueID of the Plan to be used as the current root. If zero then we use the top level display.

reference to class: org.sandev.TaskHeap.structs.PlanStruct

previousRoot

protected long previousRoot
Used to distinguish between a new root being set, and a new root being cancelled. We shift from displayMode X to SUBROOT based on the presence of the "root" URL parameter. When we want to switch back to mode X, the URL parameter is still there. We use this field to tell if we are shifting into SUBROOT mode or if we have cancelled out of it.

So if the user clicks for a new SUBROOT, then switches back to NORMAL, then they will have to switch back to SUBROOT manually or click a different item.

reference to class: org.sandev.TaskHeap.structs.PlanStruct

viewMode

protected int viewMode
Whether we are working from the point of view of projected completion or deadline. And what columns should be displayed.

declared default value: 0

enumerated constant values:

  • _PROJALL = 0
  • _PROJREM = 1
  • _PROJTTL = 2
  • _PROJECTED = 3
  • _DEADALL = 4
  • _DEADREM = 5
  • _DEADTTL = 6
  • _DEADLINE = 7
declared invalid value: -1
Constructor Detail

DisplayParamsStruct

public DisplayParamsStruct()