Class for displaying a month. It allows to select a day, can be combined
with another month.
fireChangeEvent
protected void fireChangeEvent(ChangeEvent e)
Event fired every date selection change.
getDay
public Date getDay()
Returns the currently selected day.
getDaypanels
protected DayPanel[] getDaypanels()
getDefaultWorking
public static boolean[] getDefaultWorking()
- Returns the defaultWorking.
getFirstDayOfWeek
public int getFirstDayOfWeek()
Getter for property firstDayOfWeek.
- Value of property firstDayOfWeek.
getHeaderRenderer
public HeaderRenderer getHeaderRenderer()
Getter for property headerRenderer.
- Value of property headerRenderer.
getMaxDate
public Date getMaxDate()
getMinDate
public Date getMinDate()
getMinimalDaysInFirstWeek
public int getMinimalDaysInFirstWeek()
- how many weekdays does the first week of the year have
getModel
public DataModel getModel()
Getter for property model.
getMonth
public Date getMonth()
Returns the currently selected month.
getRenderer
public DayRenderer getRenderer()
Getter for property renderer.
- Value of property renderer.
getWorkingdays
public boolean[] getWorkingdays()
Getter for property workingdays.
- Value of property workingdays.
isAntiAliased
public boolean isAntiAliased()
isEnabled
public boolean isEnabled()
Getter for enabled property
isPrintMoon
public boolean isPrintMoon()
refresh
public void refresh()
Refreshes the showing of this component.
setAntiAliased
public void setAntiAliased(boolean antiAliased)
antiAliased
- The antiAliased to set.
setDay
public void setDay(Date d)
Sets the current selected day. If the component is showing another
month, the showing month is changed
setDaypanels
protected void setDaypanels(DayPanel[] daypanels)
daypanels
- The daypanels to set.
setEnabled
public void setEnabled(boolean b)
Enables or disables the component
setFirstDayOfWeek
public void setFirstDayOfWeek(int firstDayOfWeek)
Setter for property firstDayOfWeek.
firstDayOfWeek
- New value of property firstDayOfWeek.
setHeaderRenderer
public void setHeaderRenderer(HeaderRenderer headerRenderer)
Setter for property headerRenderer.
headerRenderer
- New value of property headerRenderer.
setMinimalDaysInFirstWeek
public void setMinimalDaysInFirstWeek(int number)
Specifies how many days should the first week of the year contain
If not specified, i.e. 0, then no changes from the defaults are done
setModel
public void setModel(DataModel model)
Setter for property model.
model
- New value of property model.
setMonth
public void setMonth(Date d)
Sets the current showing month.
d
- new Date to get the month
setPrintMoon
public void setPrintMoon(boolean printMoon)
printMoon
- The printMoon to set.
setRenderer
public void setRenderer(DayRenderer renderer)
Setter for property renderer.
renderer
- New value of property renderer.
setWorkingdays
public void setWorkingdays(boolean[] workingdays)
Setter for property workingdays.
workingdays
- New value of property workingdays.
showTitle
public void showTitle(boolean show)
Sets the showing of the title.
show
- true for showing the title