Class DateHeaderCustomizer
java.lang.Object
com.smartgwt.client.widgets.calendar.DateHeaderCustomizer
Called to determine the HTML to be displayed in the header for a given date column in a CalendarView
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getHeaderTitle
(Date date, int dayOfWeek, String defaultValue, CalendarView calendarView) getHeaderTitle() should be implemented and return the HTML string to display in the header for the passed date or dayOfWeek.
-
Constructor Details
-
DateHeaderCustomizer
public DateHeaderCustomizer()
-
-
Method Details
-
getHeaderTitle
public abstract String getHeaderTitle(Date date, int dayOfWeek, String defaultValue, CalendarView calendarView) getHeaderTitle() should be implemented and return the HTML string to display in the header for the passed date or dayOfWeek. To access the Calendar itself, use calendarView.getCalendar().- Parameters:
date
- the date to return the header-title for - note that the month view passes a dayOfWeek value but not a date, because a single column represents multiple datesdayOfWeek
- the week-day number of the passed datedefaultValue
- the default header title - returning null will also use this valuecalendarView
- the view in which the date header is being rendered- Returns:
- HTML string to display in the header for the passed date or dayNum in the passed view
-