Class Timesheet.GanttBlock

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Timesheet

    public class Timesheet.GanttBlock
    extends java.lang.Object
    implements java.io.Serializable
    Assignment element as a floating block
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GanttBlock()  
      GanttBlock​(java.lang.String assignId, java.lang.String beginDate, java.lang.String endDate, double workload, double unit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init()  
      java.lang.String toJSON()  
      java.lang.String toString()  
      java.util.List<java.lang.String> update​(double offset, double size, java.lang.String resId1, java.lang.String resId2)
      Move and resize the assignment
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • assignId

        public java.lang.String assignId
      • beginKey

        public java.lang.String beginKey
      • endKey

        public java.lang.String endKey
      • beginDate

        public java.lang.String beginDate
      • endDate

        public java.lang.String endDate
      • label

        public java.lang.String label
      • title

        public java.lang.String title
      • workload

        public double workload
      • size

        public double size
      • ratio

        public double ratio
      • unit

        public double unit
      • beginOffset

        public double beginOffset
      • endOffset

        public double endOffset
    • Constructor Detail

      • GanttBlock

        public GanttBlock()
      • GanttBlock

        public GanttBlock​(java.lang.String assignId,
                          java.lang.String beginDate,
                          java.lang.String endDate,
                          double workload,
                          double unit)
    • Method Detail

      • init

        public void init()
      • update

        public java.util.List<java.lang.String> update​(double offset,
                                                       double size,
                                                       java.lang.String resId1,
                                                       java.lang.String resId2)
        Move and resize the assignment
        Parameters:
        offset - Distance from the first day of the current period
        size - New size
        resId1 - Resource 1 id
        resId2 - Resource 2 id
        Returns:
        Messages
      • toString

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

        public java.lang.String toJSON()