|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.calendar.CalendarViewContext
public class CalendarViewContext
User: Yohann Chastagnier Date: 17/04/13
Constructor Summary | |
---|---|
CalendarViewContext(String componentInstanceId,
String locale)
Default constructor. |
Method Summary | |
---|---|
protected static ResourceLocator |
getBundle(String language)
Gets the bundle |
String |
getComponentInstanceId()
|
int |
getFirstDayOfWeek()
Gets the first day of weeks of the calendar with 1 meaning for sunday, 2 meaning for monday, and so on. |
String |
getFormattedReferenceDay()
|
static String |
getPeriodLabel(CalendarPeriod period,
String language)
Compute a period label. |
CalendarDay |
getReferenceDay()
|
CalendarPeriod |
getReferencePeriod()
|
String |
getReferencePeriodLabel()
|
CalendarViewType |
getViewType()
|
boolean |
isWithWeekend()
Indicates if weekends have to be displayed. |
void |
next()
Change reference date to the next period according to the current view. |
void |
previous()
Change reference date to the previous period according to the current view. |
CalendarViewContext |
resetFilters()
Reset to null all filters. |
void |
setReferenceDay(Date date)
|
void |
setViewType(CalendarViewType viewType)
|
void |
setWithWeekend(boolean withWeekend)
Set if weekends have to be displayed. |
void |
today()
Set the reference date to the date of today. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarViewContext(String componentInstanceId, String locale)
componentInstanceId
- locale
- Method Detail |
---|
public CalendarViewContext resetFilters()
public String getComponentInstanceId()
public CalendarViewType getViewType()
public void setViewType(CalendarViewType viewType)
public CalendarPeriod getReferencePeriod()
public String getReferencePeriodLabel()
public CalendarDay getReferenceDay()
public String getFormattedReferenceDay()
public void setReferenceDay(Date date)
public void previous()
public void next()
public void today()
public boolean isWithWeekend()
public void setWithWeekend(boolean withWeekend)
withWeekend
- public int getFirstDayOfWeek()
protected static ResourceLocator getBundle(String language)
public static String getPeriodLabel(CalendarPeriod period, String language)
period
- language
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |