|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jidesoft.combobox.CalendarViewer
public class CalendarViewer
CalendarViewer is a component that can display multiple months and allow you to choose multiple dates across all month viewers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
PROPERTY_CALENDAR_DIMENSION
|
static String |
PROPERTY_ENABLED
|
static String |
PROPERTY_VIEWONLY
|
static String |
VIEWONLY_PROPERTY
Property of view only. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CalendarViewer()
|
|
CalendarViewer(DateModel model)
|
|
CalendarViewer(DateModel model,
Dimension calendarDimensions)
|
|
CalendarViewer(Dimension calendarDimensions)
|
|
| Method Summary | |
|---|---|
protected DateChooserPanel |
createDateChooserPanel(DateModel dateModel,
DateSelectionModel selectionModel)
Creates a new DateChooserPanel. |
protected void |
customizeDateChooserPanel(DateChooserPanel dateChooserPanel,
int row,
int column)
Customizes the DateChooserPanel. |
Dimension |
getCalendarDimension()
Gets the number of rows and columns of months in the DateChooserPanel. |
DateChooserPanel[] |
getDateChooserPanels()
Gets the array of DateChooserPanels used by this CalendarViewer. |
DateModel |
getDateModel()
|
int |
getFirstDayOfWeek()
Gets the first day of the week is; e.g., Sunday in US, Monday in France. |
Calendar |
getMaxDisplayCalendar()
|
Calendar |
getMinDisplayCalendar()
|
Dimension |
getMinimumSize()
|
DateSelectionModel |
getSelectionModel()
|
boolean |
isAutoChangeDimension()
Checks if autoChangeDimension is true. |
boolean |
isEnabled()
If the DateChooserPanel is view-only. |
boolean |
isViewOnly()
If the DateChooserPanel is view-only. |
void |
recalculateCalendarDimension()
Recalculates the number of rows and columns based on the CalendarViewer's size. |
void |
setAutoChangeDimension(boolean autoChangeDimension)
Sets the autoChangeDimension flag. |
void |
setCalendarDimension(Dimension calendarDimension)
Sets the number of rows and columns of months in the DateChooserPanel. |
void |
setDateModel(DateModel dateModel)
|
boolean |
setDisplayedMonth(int year,
int month)
Sets the displayed month. |
boolean |
setDisplayedMonth(int year,
int month,
int index)
Sets the displayed month. |
void |
setEnabled(boolean enabled)
Sets the view only attribute. |
void |
setFirstDayOfWeek(int firstDayOfWeek)
Sets the first day of the week is; e.g., Sunday in US, Monday in France. |
void |
setSelectionModel(DateSelectionModel selectionModel)
|
void |
setViewOnly(boolean viewOnly)
Sets the view only attribute. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VIEWONLY_PROPERTY
public static final String PROPERTY_VIEWONLY
public static final String PROPERTY_ENABLED
public static final String PROPERTY_CALENDAR_DIMENSION
| Constructor Detail |
|---|
public CalendarViewer()
public CalendarViewer(Dimension calendarDimensions)
public CalendarViewer(DateModel model)
public CalendarViewer(DateModel model,
Dimension calendarDimensions)
| Method Detail |
|---|
public void recalculateCalendarDimension()
protected void customizeDateChooserPanel(DateChooserPanel dateChooserPanel,
int row,
int column)
dateChooserPanel - DateChooserPanel to be customizedrow - the row index of this DateChooserPanelcolumn - the column index of this DateChooserPanel
protected DateChooserPanel createDateChooserPanel(DateModel dateModel,
DateSelectionModel selectionModel)
dateModel - the data modelselectionModel - the selection model
public DateChooserPanel[] getDateChooserPanels()
public Dimension getCalendarDimension()
public void setCalendarDimension(Dimension calendarDimension)
calendarDimension - the calendar dimensionpublic boolean isAutoChangeDimension()
public void setAutoChangeDimension(boolean autoChangeDimension)
autoChangeDimension - the flagpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic Calendar getMaxDisplayCalendar()
public Calendar getMinDisplayCalendar()
public DateSelectionModel getSelectionModel()
public void setSelectionModel(DateSelectionModel selectionModel)
public DateModel getDateModel()
public void setDateModel(DateModel dateModel)
public boolean setDisplayedMonth(int year,
int month)
year - the year to be displayedmonth - the month to be displayed.
public boolean setDisplayedMonth(int year,
int month,
int index)
year - the year to be displayedmonth - the month to be displayed.index - the index of the DateChooserPanel to display the specified month.
public boolean isViewOnly()
public void setViewOnly(boolean viewOnly)
viewOnly - the flagpublic boolean isEnabled()
isEnabled in class Componentpublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - the flagpublic int getFirstDayOfWeek()
public void setFirstDayOfWeek(int firstDayOfWeek)
Calendar.SUNDAY, Calendar.MONDAY etc.
firstDayOfWeek - the first day of the week
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||