Class Timesheet.Period

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

    public static class Timesheet.Period
    extends java.lang.Object
    implements java.io.Serializable
    Timesheet period = day or week or month
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Period​(java.lang.String date, java.lang.String key)  
      Period​(java.lang.String date, java.lang.String key, boolean openDay, boolean readOnly)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDate()
      Period start date YYYY-MM-DD
      java.lang.String getKey()
      Period key: type day = YYYY-MM-DD, week = YYYY-WW or month = YYYY-MM
      boolean isOpenDay()
      Is the date an open day to show inputs?
      boolean isReadOnly()
      Are inputs in read only for this period?
      void setOpenDay​(boolean open)
      Set the date an open day for inputs?
      void setReadOnly​(boolean read)
      Set the read only for this period
      java.lang.String toJSON()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Period

        public Period​(java.lang.String date,
                      java.lang.String key)
      • Period

        public Period​(java.lang.String date,
                      java.lang.String key,
                      boolean openDay,
                      boolean readOnly)
    • Method Detail

      • isOpenDay

        public boolean isOpenDay()
        Is the date an open day to show inputs?
      • setOpenDay

        public void setOpenDay​(boolean open)
        Set the date an open day for inputs?
      • isReadOnly

        public boolean isReadOnly()
        Are inputs in read only for this period?
      • setReadOnly

        public void setReadOnly​(boolean read)
        Set the read only for this period
      • getDate

        public java.lang.String getDate()
        Period start date YYYY-MM-DD
      • getKey

        public java.lang.String getKey()
        Period key: type day = YYYY-MM-DD, week = YYYY-WW or month = YYYY-MM
      • toJSON

        public java.lang.String toJSON()
        Returns:
        JSON { day, key, open, read }