Class DateChooser
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class DateChooser
extends org.eclipse.swt.widgets.Composite
Calendar is composed of a header and a grid for date selection. The header display the current month and year, and the two buttons for navigation (previous and next month). An optional footer display the today date.
Features:
- Month names, weekday names and first day of week depend of the locale set on the calendar
- GUI (colors, font...) are customizable through themes (3 provided)
- Shows days from adjacent months
- Optionally shows weeks numbers
- Optional footer showing today date
- Multi selection and interval selection
- Keyboard support.
To know which dates have been selected in the calendar, there is two means :
- The
getSelectedDate()method returns the currently selected date (single selection). ThegetSelectedDates()returns a list of all selected dates (multi selection). - Add a
CalendarListenerto the calendar. This listener will be notified of selection.event.datacontain the selection if in single selection mode.
Keyboard navigation :
- Arrows: Change the focus cell.
- Page UP / DOWN: Next / previous month.
- Ctrl-Page UP / DOWN: Next / previous year.
- SPACE: Select the cell having the focus. If in multi selection mode, all previous selected dates are cleared.
- Ctrl-SPACE: Add the cell having the focus to the selection (multi selection mode).
- Shift-SPACE: Select all dates in the interval between the current focus and the last selected date.
- HOME: Set the focus on the today date, and select it if autoselectOnFooter is true.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDateChooser.CellDefines a grid cell.protected classDateChooser.DateChooserLayoutCalendar grid specific layout. -
Field Summary
Fields Modifier and Type Field Description protected booleanautoChangeOnAdjacentIf true, change the current month if an adjacent day is clickedprotected booleanautoSelectOnFooterIf true, the today date is automatically selected on footer selection eventprotected java.util.DatebeginIntervalBegin date of selection intervalstatic java.lang.StringBUNDLE_NAMEBundle name constantprotected org.eclipse.swt.widgets.LabelcurrentMonthLabel for the display of current month and year (corresponding to curDate)protected java.util.CalendarcurrentMonthCalDate of 1st day of the currently displayed monthprotected DateChooser.Cell[]daysDays numbers cellsprotected org.eclipse.swt.widgets.CompositedaysPanelPanel for display of day numbersprotected java.text.SimpleDateFormatdf1Format for the display of month and year in the headerprotected java.text.DateFormatdf2Format for the today date in the footerprotected java.util.DateendIntervalEnd date of selection intervalprotected org.eclipse.swt.widgets.ListenerfilterListener for external eventsprotected intfirstDayIndexIndex in the grid of the first day of displayed monthprotected intfirstDayOfWeekIndex of the first day of weekprotected intfocusIndexIndex of the focus in the days numbers gridprotected booleanfooterVisibleFlag to set footer visible or notstatic intGRID_FULLstatic intGRID_LINESstatic intGRID_NONEprotected DateChooser.DateChooserLayoutgridLayoutLayout of the gridprotected org.eclipse.swt.widgets.CompositegridPanelGrid panelprotected intgridVisibleFlag to set grid visible or notprotected booleanhasFocusFlag indicating if the calendar has the focusprotected static intHEADER_SPACINGHeader spacing constantprotected org.eclipse.swt.widgets.Label[]headersGrid headers, displaying weekday namesprotected org.eclipse.swt.widgets.CompositeheadersPanelPanel for display of weekday namesprotected org.eclipse.swt.widgets.ListenerlistenerListener for all internal eventsprotected java.util.LocalelocaleLocale used for localized names and formatsprotected intminimalDaysInFirstWeekMinimal number of days in the first weekprotected org.eclipse.swt.widgets.CompositemonthPanelMonth header panelprotected org.eclipse.swt.widgets.MenumonthsMenuPopup menu for month selectionprotected booleanmultiMulti selection flagprotected booleannavigationEnabledFlag to set navigation enabled or notprotected org.eclipse.swt.widgets.ButtonnextMonthNavigation button for next monthprotected static intNOFOCUSValue to use when there is none internal widget having the focusprotected org.eclipse.swt.widgets.ButtonprevMonthNavigation button for previous monthprotected java.util.ResourceBundleresourcesResources bundleprotected java.util.List<java.util.Date>selectionSelectionprotected DateChooserThemethemeCalendar themeprotected java.util.CalendartodayCalThe today dateprotected org.eclipse.swt.widgets.LabeltodayLabelToday label of the footerprotected DateChooser.Cell[]weeksWeeks numbers cellsprotected org.eclipse.swt.widgets.CompositeweeksPanelPanel for display of week numbersprotected booleanweeksVisibleFlag to set weeks numbers visible or not -
Constructor Summary
Constructors Constructor Description DateChooser(org.eclipse.swt.widgets.Composite parent, int style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. -
Method Summary
Modifier and Type Method Description voidaddSelectionListener(org.eclipse.swt.events.SelectionListener lsnr)Adds the listener to the collection of listeners who will be notified when the receiver's selection changes, by sending it one of the messages defined in theSelectionListenerinterface.protected voidbuttonsEvent(org.eclipse.swt.widgets.Event event)Manages navigation buttons events.protected voidcalendarEvent(org.eclipse.swt.widgets.Event event)Manages event at the calendar level.protected voidchangeCurrentMonth(int add)Displays a new month in the grid.voidclearSelection()Clears the selection.protected voidclearSelection(boolean refresh)Clears the selection.voiddispose()Disposes of the operating system resources associated with the receiver and all its descendants.protected voidfooterEvent(org.eclipse.swt.widgets.Event event)Manages events on the footer label.booleanforceFocus()Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it.java.util.DategetCurrentMonth()Returns the current displayed month.intgetFirstDayOfWeek()Gets what the first day of the week is.intgetGridVisible()Returns the grid visibility status.intgetMinimalDaysInFirstWeek()Gets what the minimal days required in the first week of the year are.java.util.DategetSelectedDate()Returns the selected date.java.util.Collection<java.util.Date>getSelectedDates()Returns all the selected dates.java.util.DategetTodayDate()Returns the today date.protected voidgridEvent(org.eclipse.swt.widgets.Event event)Manages events at the grid level.booleanisAutoChangeOnAdjacent()Returns the autoChangeOnAdjacent mode.booleanisAutoSelectOnFooter()Returns the autoSelectOnFooter mode.booleanisDateSelected(java.util.Date date)Returnstrueif the given date is selected, else returnsfalse.booleanisFocusControl()Returnstrueif the receiver has the user-interface focus, andfalseotherwise.booleanisFooterVisible()Returns true if footer is visible.booleanisGridVisible()Deprecated.booleanisNavigationEnabled()Returns true if navigation is enabled.booleanisWeeksVisible()Returns true if weeks numbers are visible.protected voidmenuEvent(org.eclipse.swt.widgets.Event event)Manages all events of the contextual menu on the month label of the header.protected voidnotifySelection()Sends selection event to the listeners.voidremoveSelectedDate(java.util.Date d)Removes the given date from the selection.voidremoveSelectionListener(org.eclipse.swt.events.SelectionListener lsnr)Removes the listener from the collection of listeners who will be notified when the receiver's selection changes.voidsetAutoChangeOnAdjacent(boolean autoChangeOnAdjacent)Sets totrueto enable the automatic change of current month when an adjacent day is clicked in the grid.voidsetAutoSelectOnFooter(boolean autoselectOnFooter)Set the autoSelectOnFooter mode.voidsetCurrentMonth(java.util.Date month)Sets a new month to display.voidsetFirstDayOfWeek(int firstDayOfWeek)Sets what the first day of the week is.booleansetFocus()Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it.voidsetFocusOnDate(java.util.Date date)Sets the focus on the given date.voidsetFocusOnToday(boolean autoselect)Sets the focus on the today date.voidsetFont(org.eclipse.swt.graphics.Font font)Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null.voidsetFooterVisible(boolean footerVisible)Sets the footer visible or not.voidsetGridVisible(boolean gridVisible)Deprecated.voidsetGridVisible(int gridVisible)Sets the grid visible or not.voidsetLayout(org.eclipse.swt.widgets.Layout layout)Sets the layout which is associated with the receiver to be the argument which may be null.voidsetLocale(java.util.Locale locale)Sets a new locale to use for calendar.voidsetMinimalDaysInFirstWeek(int minimalDaysInFirstWeek)Sets what the minimal days required in the first week of the year are; For example, if the first week is defined as one that contains the first day of the first month of a year, call this method with value 1.voidsetNavigationEnabled(boolean navigationEnabled)Sets the header's navigation buttons visible or not.voidsetSelectedDate(java.util.Date date)Sets the selected date.voidsetTheme(DateChooserTheme theme)Sets the theme to apply to the calendar.voidsetTodayDate(java.util.Date today)Sets the today date.voidsetWeeksVisible(boolean weeksVisible)Sets the weeks numbers visible or not.Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBarMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
-
Field Details
-
BUNDLE_NAME
public static final java.lang.String BUNDLE_NAMEBundle name constant- See Also:
- Constant Field Values
-
HEADER_SPACING
protected static final int HEADER_SPACINGHeader spacing constant- See Also:
- Constant Field Values
-
NOFOCUS
protected static final int NOFOCUSValue to use when there is none internal widget having the focus- See Also:
- Constant Field Values
-
GRID_NONE
public static final int GRID_NONE- See Also:
- Constant Field Values
-
GRID_LINES
public static final int GRID_LINES- See Also:
- Constant Field Values
-
GRID_FULL
public static final int GRID_FULL- See Also:
- Constant Field Values
-
multi
protected boolean multiMulti selection flag -
selection
protected java.util.List<java.util.Date> selectionSelection -
beginInterval
protected java.util.Date beginIntervalBegin date of selection interval -
endInterval
protected java.util.Date endIntervalEnd date of selection interval -
autoSelectOnFooter
protected boolean autoSelectOnFooterIf true, the today date is automatically selected on footer selection event -
monthPanel
protected org.eclipse.swt.widgets.Composite monthPanelMonth header panel -
prevMonth
protected org.eclipse.swt.widgets.Button prevMonthNavigation button for previous month -
currentMonth
protected org.eclipse.swt.widgets.Label currentMonthLabel for the display of current month and year (corresponding to curDate) -
nextMonth
protected org.eclipse.swt.widgets.Button nextMonthNavigation button for next month -
monthsMenu
protected org.eclipse.swt.widgets.Menu monthsMenuPopup menu for month selection -
gridPanel
protected org.eclipse.swt.widgets.Composite gridPanelGrid panel -
gridLayout
Layout of the grid -
headersPanel
protected org.eclipse.swt.widgets.Composite headersPanelPanel for display of weekday names -
headers
protected org.eclipse.swt.widgets.Label[] headersGrid headers, displaying weekday names -
daysPanel
protected org.eclipse.swt.widgets.Composite daysPanelPanel for display of day numbers -
days
Days numbers cells -
weeksPanel
protected org.eclipse.swt.widgets.Composite weeksPanelPanel for display of week numbers -
weeks
Weeks numbers cells -
firstDayIndex
protected int firstDayIndexIndex in the grid of the first day of displayed month -
todayLabel
protected org.eclipse.swt.widgets.Label todayLabelToday label of the footer -
locale
protected java.util.Locale localeLocale used for localized names and formats -
df1
protected java.text.SimpleDateFormat df1Format for the display of month and year in the header -
df2
protected java.text.DateFormat df2Format for the today date in the footer -
firstDayOfWeek
protected int firstDayOfWeekIndex of the first day of week -
minimalDaysInFirstWeek
protected int minimalDaysInFirstWeekMinimal number of days in the first week -
resources
protected java.util.ResourceBundle resourcesResources bundle -
currentMonthCal
protected java.util.Calendar currentMonthCalDate of 1st day of the currently displayed month -
todayCal
protected java.util.Calendar todayCalThe today date -
theme
Calendar theme -
gridVisible
protected int gridVisibleFlag to set grid visible or not -
weeksVisible
protected boolean weeksVisibleFlag to set weeks numbers visible or not -
footerVisible
protected boolean footerVisibleFlag to set footer visible or not -
navigationEnabled
protected boolean navigationEnabledFlag to set navigation enabled or not -
autoChangeOnAdjacent
protected boolean autoChangeOnAdjacentIf true, change the current month if an adjacent day is clicked -
listener
protected org.eclipse.swt.widgets.Listener listenerListener for all internal events -
filter
protected org.eclipse.swt.widgets.Listener filterListener for external events -
hasFocus
protected boolean hasFocusFlag indicating if the calendar has the focus -
focusIndex
protected int focusIndexIndex of the focus in the days numbers grid
-
-
Constructor Details
-
DateChooser
public DateChooser(org.eclipse.swt.widgets.Composite parent, int style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.The calendar is initialized by default with the default Locale, and the current date for today and selected date attributes.
- Parameters:
parent- a composite control which will be the parent of the new instance (cannot be null)style- the style of control to construct
-
-
Method Details
-
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener lsnr)Adds the listener to the collection of listeners who will be notified when the receiver's selection changes, by sending it one of the messages defined in theSelectionListenerinterface.widgetSelectedis called when the dates selection changes.- Parameters:
lsnr- the listener which should be notified- See Also:
SelectionListener,removeSelectionListener(org.eclipse.swt.events.SelectionListener)
-
buttonsEvent
protected void buttonsEvent(org.eclipse.swt.widgets.Event event)Manages navigation buttons events.- Parameters:
event- event
-
calendarEvent
protected void calendarEvent(org.eclipse.swt.widgets.Event event)Manages event at the calendar level.- Parameters:
event- event
-
changeCurrentMonth
protected void changeCurrentMonth(int add)Displays a new month in the grid. The new month is specified by delta from the currently displayed one.- Parameters:
add- delta from the current month
-
clearSelection
public void clearSelection()Clears the selection. -
clearSelection
protected void clearSelection(boolean refresh)Clears the selection. The refresh flag allows to indicate must be refreshed or not.- Parameters:
refresh- true to refresh display, else false
-
dispose
public void dispose()Disposes of the operating system resources associated with the receiver and all its descendants.- Overrides:
disposein classorg.eclipse.swt.widgets.Widget- See Also:
Widget.dispose()
-
footerEvent
protected void footerEvent(org.eclipse.swt.widgets.Event event)Manages events on the footer label.- Parameters:
event- event
-
forceFocus
public boolean forceFocus()Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it.- Overrides:
forceFocusin classorg.eclipse.swt.widgets.Control- Returns:
trueif the control got focus, andfalseif it was unable to.
-
getCurrentMonth
public java.util.Date getCurrentMonth()Returns the current displayed month.- Returns:
- Date representing current month.
-
getFirstDayOfWeek
public int getFirstDayOfWeek()Gets what the first day of the week is.- Returns:
- the first day of the week.
-
getGridVisible
public int getGridVisible()Returns the grid visibility status.- Returns:
- Returns the grid visible status.
-
getMinimalDaysInFirstWeek
public int getMinimalDaysInFirstWeek()Gets what the minimal days required in the first week of the year are.- Returns:
- the minimal days required in the first week of the year.
-
getSelectedDate
public java.util.Date getSelectedDate()Returns the selected date. If calendar is in multi selection mode, the first item of selection list is returned, with no guaranty of the selection order by the user. If no selection, returnnull.- Returns:
- selected date
-
getSelectedDates
public java.util.Collection<java.util.Date> getSelectedDates()Returns all the selected dates. The collection returned is a copy of the internal selection list.If the calendar is in single selection mode, it is preferable to use
getSelectedDatethat returns a Date value.- Returns:
- Collection of selected dates
-
getTodayDate
public java.util.Date getTodayDate()Returns the today date.- Returns:
- today date
-
gridEvent
protected void gridEvent(org.eclipse.swt.widgets.Event event)Manages events at the grid level.- Parameters:
event- event
-
isAutoChangeOnAdjacent
public boolean isAutoChangeOnAdjacent()Returns the autoChangeOnAdjacent mode.- Returns:
- true / false
-
isAutoSelectOnFooter
public boolean isAutoSelectOnFooter()Returns the autoSelectOnFooter mode.- Returns:
- true / false
-
isDateSelected
public boolean isDateSelected(java.util.Date date)Returnstrueif the given date is selected, else returnsfalse.- Parameters:
date-- Returns:
trueif selected, elsefalse.
-
isFocusControl
public boolean isFocusControl()Returnstrueif the receiver has the user-interface focus, andfalseotherwise.- Overrides:
isFocusControlin classorg.eclipse.swt.widgets.Control- Returns:
- the receiver's focus state
- See Also:
Control.isFocusControl()
-
isFooterVisible
public boolean isFooterVisible()Returns true if footer is visible.- Returns:
trueif footer visible, elsefalse
-
isGridVisible
@Deprecated public boolean isGridVisible()Deprecated.Returns true if grid is visible in the calendar popup.- Returns:
- Returns the grid visible status.
-
isNavigationEnabled
public boolean isNavigationEnabled()Returns true if navigation is enabled. If false, buttons are not visible.- Returns:
- Returns the navigation status.
-
isWeeksVisible
public boolean isWeeksVisible()Returns true if weeks numbers are visible.- Returns:
- Returns the weeks numbers visible status.
-
menuEvent
protected void menuEvent(org.eclipse.swt.widgets.Event event)Manages all events of the contextual menu on the month label of the header.- Parameters:
event- event
-
notifySelection
protected void notifySelection()Sends selection event to the listeners. -
removeSelectedDate
public void removeSelectedDate(java.util.Date d)Removes the given date from the selection.- Parameters:
d- date to remove
-
removeSelectionListener
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener lsnr)Removes the listener from the collection of listeners who will be notified when the receiver's selection changes.- Parameters:
lsnr- the listener which should no longer be notified- See Also:
SelectionListener,addSelectionListener(org.eclipse.swt.events.SelectionListener)
-
setAutoChangeOnAdjacent
public void setAutoChangeOnAdjacent(boolean autoChangeOnAdjacent)Sets totrueto enable the automatic change of current month when an adjacent day is clicked in the grid.This mode is
trueby default.- Parameters:
autoChangeOnAdjacent- true / false
-
setAutoSelectOnFooter
public void setAutoSelectOnFooter(boolean autoselectOnFooter)Set the autoSelectOnFooter mode. If true, the today date is automatically selected on the footer selection event. This mode isfalseby default.- Parameters:
autoselectOnFooter- true /false
-
setCurrentMonth
public void setCurrentMonth(java.util.Date month)Sets a new month to display.- Parameters:
month- New month
-
setFirstDayOfWeek
public void setFirstDayOfWeek(int firstDayOfWeek)Sets what the first day of the week is.This method allows to change the default first day of the week set from the locale. It must be called after
setLocale().- Parameters:
firstDayOfWeek- the given first day of the week.
-
setFocus
public boolean setFocus()Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it.- Overrides:
setFocusin classorg.eclipse.swt.widgets.Composite- Returns:
trueif the control got focus, andfalseif it was unable to.
-
setFocusOnDate
public void setFocusOnDate(java.util.Date date)Sets the focus on the given date. The current displayed month is changed if necessary.- Parameters:
date- date to set the focus on
-
setFocusOnToday
public void setFocusOnToday(boolean autoselect)Sets the focus on the today date. If autoselect is true, the today date is selected.- Parameters:
autoselect- true to select automatically the today date, else false
-
setFont
public void setFont(org.eclipse.swt.graphics.Font font)Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null.The new font is applied to all elements (labels) composing the calendar. The width of cells is adjusted.
- Overrides:
setFontin classorg.eclipse.swt.widgets.Control- Parameters:
font- the new font (or null)
-
setFooterVisible
public void setFooterVisible(boolean footerVisible)Sets the footer visible or not. The footer displays the today date. It is not visible by default.- Parameters:
footerVisible-trueto set footer visible, elsefalse
-
setGridVisible
@Deprecated public void setGridVisible(boolean gridVisible)Deprecated.Sets the grid visible or not in the calendar popup. By default, the grid is visible.- Parameters:
gridVisible-trueto set grid visible, elsefalse
-
setGridVisible
public void setGridVisible(int gridVisible)Sets the grid visible or not. By default, the grid is visible. The possible values are GRID_FULL, GRID_LINES and GRID_NONE.- Parameters:
gridVisible- grid visibility flag
-
setLayout
public void setLayout(org.eclipse.swt.widgets.Layout layout)Sets the layout which is associated with the receiver to be the argument which may be null.Note : No Layout can be set on this Control because it already manages the size and position of its children.
- Overrides:
setLayoutin classorg.eclipse.swt.widgets.Composite- Parameters:
layout- the receiver's new layout or null
-
setLocale
public void setLocale(java.util.Locale locale)Sets a new locale to use for calendar. Locale will define the names of months and days, and the first day of week.- Parameters:
locale- new locale (must not be null)
-
setMinimalDaysInFirstWeek
public void setMinimalDaysInFirstWeek(int minimalDaysInFirstWeek)Sets what the minimal days required in the first week of the year are; For example, if the first week is defined as one that contains the first day of the first month of a year, call this method with value 1. If it must be a full week, use value 7.This method allows to change the default value set from the locale. It must be called after
setLocale().- Parameters:
minimalDaysInFirstWeek- the given minimal days required in the first week of the year.
-
setNavigationEnabled
public void setNavigationEnabled(boolean navigationEnabled)Sets the header's navigation buttons visible or not.- Parameters:
navigationEnabled- true if enabled, false else
-
setSelectedDate
public void setSelectedDate(java.util.Date date)Sets the selected date. The grid is refreshed to display the corresponding month.- Parameters:
date- new selected date (must not be null)
-
setTheme
Sets the theme to apply to the calendar.- Parameters:
theme- new theme (must not be null)
-
setTodayDate
public void setTodayDate(java.util.Date today)Sets the today date.By default the today date is initialized to the current system date. But it can be needed to adjust it for specifics needs.
- Parameters:
today- today date (must not be null)
-
setWeeksVisible
public void setWeeksVisible(boolean weeksVisible)Sets the weeks numbers visible or not. By default, the weeks are NOT visible.- Parameters:
weeksVisible-trueto set weeks visible, elsefalse
-