|
||||||||
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
org.rapla.components.calendar.RaplaComboBox
org.rapla.components.calendar.RaplaCalendar
public final class RaplaCalendar
This is another ComboBox-like calendar component. It is localizable and it uses swing-components.
The combobox editor is a DateField
. If the ComboBox-Button
is pressed, a CalendarMenu will drop down.
CalendarMenu
,
DateField
,
Serialized FormNested 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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected CalendarMenu |
m_calendarMenu
|
protected DateField |
m_dateField
|
protected org.rapla.components.calendar.DateModel |
m_model
|
Fields inherited from class org.rapla.components.calendar.RaplaComboBox |
---|
jLabel, m_editorComponent, m_popupButton |
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 | |
---|---|
RaplaCalendar()
Create a new Calendar with the default locale. |
|
RaplaCalendar(Locale locale)
Create a new Calendar with the specified locale and the default timeZone. |
|
RaplaCalendar(Locale locale,
boolean isDropDown)
Deprecated. replaced with #RaplaCalendar(Locale,TimeZone,boolean) |
|
RaplaCalendar(Locale locale,
TimeZone timeZone)
Create a new Calendar with the specified locale and timezone. |
|
RaplaCalendar(Locale locale,
TimeZone timeZone,
boolean isDropDown)
Create a new Calendar with the specified locale and timezone. |
Method Summary | |
---|---|
void |
addDateChangeListener(DateChangeListener listener)
registers new DateChangeListener for this component. |
protected void |
fireDateChange(Date date)
A DateChangeEvent will be fired to every registered DateChangeListener when the a different date is selected. |
Date |
getDate()
Parse the returned date with a calendar-object set to the correct time-zone to get the date,month and year. |
DateChangeListener[] |
getDateChangeListeners()
|
int |
getDay()
|
int |
getMonth()
|
JComponent |
getPopupComponent()
the component that should apear in the popup menu |
TimeZone |
getTimeZone()
|
int |
getYear()
|
void |
removeDateChangeListener(DateChangeListener listener)
removes a listener from this component. |
void |
select(int day,
int month,
int year)
selects the specified day, month and year. |
void |
setDate(Date date)
Selects the date relative to the given timezone. |
void |
setDateRenderer(DateRenderer dateRenderer)
sets the DateRenderer for the calendar |
void |
setFont(Font font)
|
void |
setHighlightWeekend(boolean bHighlight)
Deprecated. use setDateRenderer(new WeekendHighlightRenderer()) instead. |
void |
setTimeZone(TimeZone timeZone)
|
void |
setWeekdaysVisibleInDateField(boolean bVisible)
you can choose, if weekdays should be displayed in the right corner of the DateField. |
protected void |
showPopup()
|
protected void |
validateEditor()
|
Methods inherited from class org.rapla.components.calendar.RaplaComboBox |
---|
closePopup, getLabel, setEnabled |
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 |
---|
protected DateField m_dateField
protected CalendarMenu m_calendarMenu
protected org.rapla.components.calendar.DateModel m_model
Constructor Detail |
---|
public RaplaCalendar()
public RaplaCalendar(Locale locale)
public RaplaCalendar(Locale locale, boolean isDropDown)
public RaplaCalendar(Locale locale, TimeZone timeZone)
public RaplaCalendar(Locale locale, TimeZone timeZone, boolean isDropDown)
Method Detail |
---|
public void setTimeZone(TimeZone timeZone)
public TimeZone getTimeZone()
public JComponent getPopupComponent()
RaplaComboBox
getPopupComponent
in class RaplaComboBox
public void setFont(Font font)
setFont
in class RaplaComboBox
public void setDate(Date date)
public Date getDate()
getYear()
,
getMonth()
,
getDay()
public void select(int day, int month, int year)
setDate(Date date)
public void setHighlightWeekend(boolean bHighlight)
public void setDateRenderer(DateRenderer dateRenderer)
public void setWeekdaysVisibleInDateField(boolean bVisible)
DateField
public int getYear()
getDate()
,
getMonth()
,
getDay()
public int getMonth()
getDate()
,
getYear()
,
getDay()
public int getDay()
getDate()
,
getYear()
,
getMonth()
public void addDateChangeListener(DateChangeListener listener)
DateChangeListener
,
DateChangeEvent
public void removeDateChangeListener(DateChangeListener listener)
public DateChangeListener[] getDateChangeListeners()
protected void fireDateChange(Date date)
protected void showPopup()
showPopup
in class RaplaComboBox
protected void validateEditor()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |