|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.am.snitch.otherparty.CalendarBean
public class CalendarBean
JCalendar is a bean for entering a date by choosing the year, month and day.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 com.toedter.calendar.JDayChooser |
dayChooser
the day chooser |
protected Locale |
locale
the locale |
protected com.toedter.calendar.JMonthChooser |
monthChooser
the month chooser |
protected boolean |
weekOfYearVisible
indicates if weeks of year shall be visible |
protected com.toedter.calendar.JYearChooser |
yearChooser
the year chhoser |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CalendarBean(JTextField textField,
JFrame parent)
Default JCalendar constructor. |
|
| Method Summary | |
|---|---|
Calendar |
getCalendar()
Returns the calendar property. |
String |
getDate()
Returns a Date object. |
com.toedter.calendar.JDayChooser |
getDayChooser()
Gets the dayChooser attribute of the JCalendar object |
Color |
getDecorationBackgroundColor()
Returns the color of the decoration (day names and weeks). |
Locale |
getLocale()
Returns the locale. |
com.toedter.calendar.JMonthChooser |
getMonthChooser()
Gets the monthChooser attribute of the JCalendar object |
String |
getName()
Returns "JCalendar". |
Color |
getSundayForeground()
Returns the Sunday foreground. |
Color |
getWeekdayForeground()
Returns the weekday foreground. |
com.toedter.calendar.JYearChooser |
getYearChooser()
Gets the yearChooser attribute of the JCalendar object |
boolean |
isDecorationBackgroundVisible()
Gets the visibility of the decoration background. |
boolean |
isDecorationBordersVisible()
Gets the visibility of the decoration border. |
boolean |
isEnabled()
Returns true, if enabled. |
boolean |
isWeekOfYearVisible()
Indicates if the weeks of year are visible.. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
propertyChange(PropertyChangeEvent evt)
JCalendar is a PropertyChangeListener, for its day, month and year chooser. |
void |
setBackground(Color bg)
Sets the background color. |
void |
setCalendar(Calendar c)
Sets the calendar property. |
void |
setDate(Date date)
Sets the date. |
void |
setDecorationBackgroundColor(Color decorationBackgroundColor)
Sets the background of days and weeks of year buttons. |
void |
setDecorationBackgroundVisible(boolean decorationBackgroundVisible)
Sets the decoration background visible. |
void |
setDecorationBordersVisible(boolean decorationBordersVisible)
Sets the decoration borders visible. |
void |
setEnabled(boolean enabled)
Enable or disable the JCalendar. |
void |
setFont(Font font)
Sets the font property. |
void |
setForeground(Color fg)
Sets the foreground color. |
void |
setLocale(Locale l)
Sets the locale property. |
void |
setSundayForeground(Color sundayForeground)
Sets the Sunday foreground. |
void |
setWeekdayForeground(Color weekdayForeground)
Sets the weekday foreground. |
void |
setWeekOfYearVisible(boolean isweekOfYearVisible)
Sets the week of year visible. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected com.toedter.calendar.JDayChooser dayChooser
protected boolean weekOfYearVisible
protected Locale locale
protected com.toedter.calendar.JMonthChooser monthChooser
protected com.toedter.calendar.JYearChooser yearChooser
| Constructor Detail |
|---|
public CalendarBean(JTextField textField,
JFrame parent)
textField - JTextField The place where the result Date will be attached| Method Detail |
|---|
public Calendar getCalendar()
public com.toedter.calendar.JDayChooser getDayChooser()
public Locale getLocale()
getLocale in class WindowsetLocale(java.util.Locale)public com.toedter.calendar.JMonthChooser getMonthChooser()
public String getName()
getName in class Componentpublic com.toedter.calendar.JYearChooser getYearChooser()
public boolean isWeekOfYearVisible()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - the property change eventpublic void setBackground(Color bg)
setBackground in class Componentbg - the new backgroundpublic void setCalendar(Calendar c)
c - the new calendargetCalendar()public void setEnabled(boolean enabled)
setEnabled in class Componentenabled - the new enabled valuepublic boolean isEnabled()
isEnabled in class Componentpublic void setFont(Font font)
setFont in class Containerfont - the new fontpublic void setForeground(Color fg)
setForeground in class Componentfg - the new foregroundpublic void setLocale(Locale l)
setLocale in class Componentl - the new locale valuegetLocale()public void setWeekOfYearVisible(boolean isweekOfYearVisible)
isweekOfYearVisible - true, if weeks of year shall be visiblepublic boolean isDecorationBackgroundVisible()
public void setDecorationBackgroundVisible(boolean decorationBackgroundVisible)
decorationBackgroundVisible - true, if the decoration background
should be visible.public boolean isDecorationBordersVisible()
public void setDecorationBordersVisible(boolean decorationBordersVisible)
decorationBordersVisible - true, if the decoration borders should
be visible.public Color getDecorationBackgroundColor()
public void setDecorationBackgroundColor(Color decorationBackgroundColor)
decorationBackgroundColor - the background colorpublic Color getSundayForeground()
public Color getWeekdayForeground()
public void setSundayForeground(Color sundayForeground)
sundayForeground - the sundayForeground to setpublic void setWeekdayForeground(Color weekdayForeground)
weekdayForeground - the weekdayForeground to setpublic String getDate()
public void setDate(Date date)
date - the new date.public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||