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>
m_blocks
java.util.List<Timesheet.GanttNode>
m_children
java.lang.String
m_fk
java.lang.String
m_id
java.lang.String
m_label
ObjectDB
m_object
Timesheet.GanttNode
m_parent
int
m_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
findChildren(java.lang.String object, java.lang.String id, boolean recur)
void
setMainBlock(Timesheet.GanttBlock block)
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
-
m_type
public int m_type
-
m_object
public ObjectDB m_object
-
m_id
public java.lang.String m_id
-
m_label
public java.lang.String m_label
-
m_fk
public java.lang.String m_fk
-
m_parent
public Timesheet.GanttNode m_parent
-
m_children
public java.util.List<Timesheet.GanttNode> m_children
-
m_blocks
public java.util.List<Timesheet.GanttBlock> m_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)
-
findChildren
public Timesheet.GanttNode findChildren(java.lang.String object, java.lang.String id, boolean recur)
-
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()
-
-