Package com.simplicite.util
Class Timesheet.GanttNode
- java.lang.Object
-
- com.simplicite.util.Timesheet.GanttNode
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Timesheet
public class Timesheet.GanttNode extends java.lang.Object implements java.io.Serializable
Node of resource with blocks- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Timesheet.GanttBlock>
blocks
java.util.List<Timesheet.GanttNode>
children
java.lang.String
fk
java.lang.String
id
java.lang.String
label
ObjectDB
object
Timesheet.GanttNode
parent
int
type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlock(Timesheet.GanttBlock block)
void
addChild(Timesheet.GanttNode child)
Timesheet.GanttNode
findChild(java.lang.String object, java.lang.String id, boolean recur)
void
setMainBlock(Timesheet.GanttBlock block)
void
storeFilter()
java.lang.String
toJSON()
java.lang.String
toString()
java.util.List<java.lang.String>
update(double offset, double size)
Resize and move all sub-blocks
-
-
-
Field Detail
-
type
public int type
-
object
public ObjectDB object
-
id
public java.lang.String id
-
label
public java.lang.String label
-
fk
public java.lang.String fk
-
parent
public Timesheet.GanttNode parent
-
children
public java.util.List<Timesheet.GanttNode> children
-
blocks
public java.util.List<Timesheet.GanttBlock> blocks
-
-
Constructor Detail
-
GanttNode
public GanttNode(ObjectDB object, java.lang.String id, java.lang.String label, int type, java.lang.String fk)
-
-
Method Detail
-
addChild
public void addChild(Timesheet.GanttNode child)
-
findChild
public Timesheet.GanttNode findChild(java.lang.String object, java.lang.String id, boolean recur)
-
storeFilter
public void storeFilter()
-
setMainBlock
public void setMainBlock(Timesheet.GanttBlock block)
-
addBlock
public void addBlock(Timesheet.GanttBlock block)
-
update
public java.util.List<java.lang.String> update(double offset, double size)
Resize and move all sub-blocks- Parameters:
offset
- Distance from the first day of current periodsize
- New size of main block- Returns:
- Messages or null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toJSON
public java.lang.String toJSON()
-
-