Panel used to show many months at once.
DOWN
public static final int DOWN
Down Position.
HORIZONTAL
public static final int HORIZONTAL
Horizontal orientation.
LEFT
public static final int LEFT
Left Position.
RIGHT
public static final int RIGHT
Right Position.
UP
public static final int UP
Up Position.
VERTICAL
public static final int VERTICAL
Vertical orientation.
eternalScroll
protected boolean eternalScroll
CalendarPanel
public CalendarPanel()
Default constructor, constructs a vertical panel with 3 months.
CalendarPanel
public CalendarPanel(boolean showWeekNumbers)
Constructrs a panel with 3 months, Vertical.
CalendarPanel
public CalendarPanel(int quantity)
Constructs a panel with 3 months and the provided orientation.
quantity
- quantity of months to show at once
CalendarPanel
public CalendarPanel(int quantity,
int orientation)
Constructs a panel with the provided quantity and orientation.
quantity
- months to show at onceorientation
- orientation
CalendarPanel
public CalendarPanel(int quantity,
int orientation,
boolean showWeekNumber)
CalendarPanel
public CalendarPanel(int quantity,
int orientation,
boolean showWeekNumber,
boolean eternalScroll)
Creates a new instance of CalendarPanel.
quantity
- months to show at onceorientation
- the orientationshowWeekNumber
- true to show the week numbers
addChangeListener
public void addChangeListener(ChangeListener listener)
Registers ChangeListener to receive events.
listener
- The listener to register.
addKeyListener
public void addKeyListener(KeyListener listener)
Registers KeyListener to receive events.
listener
- The listener to register.
getDate
public Date getDate()
Getter for property date.
getDateSelectionModel
public DateSelectionModel getDateSelectionModel()
- Returns the dateSelectionModel.
getFirstDayOfWeek
public int getFirstDayOfWeek()
Getter for property firstDayOfWeek.
- Value of property firstDayOfWeek.
getHeaderRenderer
public HeaderRenderer getHeaderRenderer()
Getter for property headerRenderer.
- Value of property headerRenderer.
getMinimalDaysInFirstWeek
public int getMinimalDaysInFirstWeek()
- how many weekdays does the first week of the year have
getModel
public DataModel getModel()
Getter for property model.
getOrientation
public int getOrientation()
Getter for property orientation.
- Value of property orientation.
getQuantity
public int getQuantity()
Getter for property quantity.
- Value of property quantity.
getRenderer
public DayRenderer getRenderer()
Getter for property renderer.
- Value of property renderer.
getScrollPosition
public int getScrollPosition()
Getter for property scrollPosition.
- Value of property scrollPosition.
getSelectionMode
public int getSelectionMode()
- Returns the selectionMode.
getValue
public Object getValue()
Returns the selected date.
getValues
public Object[] getValues()
Return the selected dates as an Array.
getWorkingdays
public boolean[] getWorkingdays()
Getter for property workingdays.
- Value of property workingdays.
getYearPosition
public int getYearPosition()
Getter for property yearPosition.
- Value of property yearPosition.
isAntiAliased
public boolean isAntiAliased()
isEnabled
public boolean isEnabled()
Getter for enabled property
isEternalScroll
public boolean isEternalScroll()
- Returns the eternalScroll.
isPrintMoon
public boolean isPrintMoon()
isShowToday
public boolean isShowToday()
refresh
public void refresh()
Refreshes the display of this month.
removeChangeListener
public void removeChangeListener(ChangeListener listener)
Removes ChangeListener from the list of listeners.
listener
- The listener to remove.
removeKeyListener
public void removeKeyListener(KeyListener listener)
Removes KeyListener from the list of listeners.
listener
- The listener to remove.
setAntiAliased
public void setAntiAliased(boolean antiAliased)
antiAliased
- The antiAliased to set.
setDate
public void setDate(Date date)
Setter for property date.
date
- New value of property date.
setDateSelectionModel
public void setDateSelectionModel(DateSelectionModel dateSelectionModel)
dateSelectionModel
- The dateSelectionModel to set.
setEnabled
public void setEnabled(boolean enabled)
Enables or disables the component
enabled
- true for enabling
setEternalScroll
public void setEternalScroll(boolean eternalScroll)
eternalScroll
- The eternalScroll to set.
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.
setOrientation
public void setOrientation(int orientation)
Changes the orientation (horizontal or vertical).
orientation
- the new orientation
setPrintMoon
public void setPrintMoon(boolean printMoon)
printMoon
- The printMoon to set.
setQuantity
public void setQuantity(int quantity)
Setter for property quantity.
quantity
- New value of property quantity.
setRenderer
public void setRenderer(DayRenderer renderer)
Setter for property renderer.
renderer
- New value of property renderer.
setScrollPosition
public void setScrollPosition(int scrollPosition)
Setter for property scrollPosition.
scrollPosition
- New value of property scrollPosition.
setSelectionMode
public void setSelectionMode(int selectionMode)
selectionMode
- The selectionMode to set.
setShowToday
public void setShowToday(boolean showToday)
showToday
- The showToday to set.
setTodayCaption
public void setTodayCaption(String caption)
setValue
public void setValue(Object date)
Sets the selected date.
setValues
public void setValues(Object[] dates)
Set the selected dates.
dates
- Array with the Dates
setWorkingdays
public void setWorkingdays(boolean[] workingdays)
Setter for property workingdays.
workingdays
- New value of property workingdays.
setYearPosition
public void setYearPosition(int yearPosition)
Setter for property yearPosition.
yearPosition
- New value of property yearPosition.
stateChanged
public void stateChanged(ChangeEvent e)
Event fired when the selected day changes.