Package com.simplicite.util
Class Timesheet.Period
- java.lang.Object
-
- com.simplicite.util.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDate()
Period start date YYYY-MM-DDjava.lang.String
getKey()
Period key: type day = YYYY-MM-DD, week = YYYY-WW or month = YYYY-MMboolean
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 periodjava.lang.String
toJSON()
-
-
-
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 }
-
-