|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--CalendarBean.CalendarBn
Field Summary | |
static int |
dd_mm_yyyy
|
static int |
dd_mmm_yyyy
|
static int |
dd_mmmm_yyyy
|
static int |
ldow_dd_mmm_yyyy
|
static int |
ldow_dd_mmmm_yyyy
|
static int |
ldow_mmm_dd_yyyy
|
static int |
ldow_mmmm_dd_yyyy
|
static int |
mm_dd_yyyy
|
static int |
mmm_dd_yyyy
|
static int |
mmmm_dd_yyyy
|
static int |
sdow_dd_mmm_yyyy
|
static int |
sdow_dd_mmmm_yyyy
|
static int |
sdow_mmm_dd_yyyy
Default Date Format |
static int |
sdow_mmmm_dd_yyyy
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
CalendarBn()
Default Date is Today. Default Min Date is 'Previous years 1st January' and Default Max Date is 'Next years 31st December' | |
CalendarBn(java.sql.Date date)
|
|
CalendarBn(java.sql.Date date,
java.sql.Date mindate,
java.sql.Date maxdate)
|
|
CalendarBn(java.util.GregorianCalendar date)
|
|
CalendarBn(java.util.GregorianCalendar date,
java.util.GregorianCalendar mindate,
java.util.GregorianCalendar maxdate)
|
|
CalendarBn(int yyyy,
int mm,
int dd)
|
Method Summary | |
int |
addCalendarBnListener(CalendarBnListener dpl)
|
static int |
CompareDates(java.util.GregorianCalendar date1,
java.util.GregorianCalendar date2)
Returns -1 if date1 < date2 Returns 0 if date1 = date2 Returns +1 if date1 > date2 This method ignores the Time Factor while comparing |
static int |
CompareDates(int dy1,
int dm1,
int dd1,
int dy2,
int dm2,
int dd2)
Returns -1 if date1 < date2 Returns 0 if date1 = date2 Returns +1 if date1 > date2 This method ignores the Time Factor while comparing |
java.awt.Color |
getArrowColor()
|
java.awt.Color |
getBackground()
|
java.awt.Color |
getBorderColor()
|
java.util.GregorianCalendar |
getDate()
Returns the Currently Selected Date. |
int |
getDateFormat()
|
CalendarBn |
getDateValues()
|
int |
getDay()
|
int |
getDayFrom(java.util.GregorianCalendar date)
|
java.awt.Color |
getDaysColor()
|
java.lang.String |
getDOW(java.util.GregorianCalendar date)
Returns the Day Of Week in String Format for the given GregorianCalendar Object. eg."Sunday". |
boolean |
getEditableYearVisible()
|
java.lang.String |
getFormat()
|
java.lang.String |
getFormattedDate()
This method returns the current date in the current format of your datepicker object. |
java.lang.String |
getFormattedDate(java.util.GregorianCalendar dt,
int dtformat)
Returns a Date in String Format for the given GregorianCalendar Object with the specified Date Format Constant. String str=yourCalendarBnObj.getFormattedDate(new GregorianCalendar(),CalendarBn.dd_mm_yyyy); str will contain "31/12/2000". |
java.util.GregorianCalendar |
getMaxDate()
|
java.util.GregorianCalendar |
getMinDate()
|
int |
getMonth()
|
java.awt.Color |
getMonthColor()
|
java.awt.Color |
getMouseOverYear_Color()
|
int |
getMonthFrom(java.util.GregorianCalendar date)
|
java.lang.String |
getMonthStr(java.util.GregorianCalendar date)
Returns the Month in String Format for the given GregorianCalendar Object. eg."January". |
java.awt.Color |
getSelectionColor()
|
boolean |
getShowDateRange()
|
boolean |
getShowToday()
|
java.lang.String |
getTitle()
|
java.awt.Color |
getTitleBackground()
|
java.awt.Color |
getTitleColor()
|
java.awt.Color |
getWeekdaysColor()
|
int |
getYear()
|
java.awt.Color |
getYearColor()
|
int |
getYearFrom(java.util.GregorianCalendar date)
|
int |
removeCalendarBnListener(CalendarBnListener dpl)
|
void |
setArrowColor(java.awt.Color color)
|
void |
setBackground(java.awt.Color color)
|
void |
setBorderColor(java.awt.Color color)
|
void |
setDate(java.sql.Date date)
Check if the CalendarBnException is an instance of InvalidDateException, GreaterThanMaxDateException or LessThanMinDateException. |
void |
setDate(java.util.GregorianCalendar date)
Check if the CalendarBnException is an instance of InvalidDateException, GreaterThanMaxDateException or LessThanMinDateException. |
void |
setDate(int yyyy,
int mm,
int dd)
Check if the CalendarBnException is an instance of InvalidDateException, GreaterThanMaxDateException or LessThanMinDateException. |
void |
setDateFormat(int dateformat)
Sets the Date Format to as specified in Use one of the above formats. eg. |
void |
setDateValues(CalendarBn dp)
Sets the Date, Minimum Date and Maximum date of your CalendarBn Object with the specified CalendarBn Object's Date, MinDate and MaxDate respectively. |
void |
setDateValues(int cury,
int curm,
int curd,
int miny,
int minm,
int mind,
int maxy,
int maxm,
int maxd)
Please Do not use this method. This method will be used by your IDE to Generate JAVA Code. Use setDateValues(CalendarBn dp) instead. This method Will be Deprecated in future versions. |
void |
setDaysColor(java.awt.Color color)
|
void |
setEditableYearVisible(boolean flag)
|
void |
setFormat(java.lang.String dateformat)
Please Do not use this method. This method will be used by your IDE to Generate JAVA Code. Use setFormat(int) instead. This method Will be Deprecated in future versions. |
void |
setMaxDate(java.sql.Date date)
|
void |
setMaxDate(java.util.GregorianCalendar date)
|
void |
setMaxDate(int yyyy,
int mm,
int dd)
Check if the CalendarBnException is an instance of InvalidDateException or LessThanMinDateException |
void |
setMinDate(java.sql.Date date)
|
void |
setMinDate(java.util.GregorianCalendar date)
|
void |
setMinDate(int yyyy,
int mm,
int dd)
Check if the CalendarBnException is an instance of InvalidDateException or GreaterThanMaxDateException. |
void |
setMonthColor(java.awt.Color color)
|
void |
setMouseOverYear_Color(java.awt.Color color)
|
void |
setSelectionColor(java.awt.Color color)
|
void |
setShowDateRange(boolean flag)
|
void |
setShowToday(boolean flag)
|
void |
setTitle(java.lang.String title)
|
void |
setTitleBackground(java.awt.Color color)
|
void |
setTitleColor(java.awt.Color color)
|
void |
setWeekdaysColor(java.awt.Color color)
|
void |
setYearColor(java.awt.Color color)
|
void |
showDateRange(boolean flag)
|
void |
showToday(boolean flag)
|
java.lang.String |
toString()
Returns current contents of you object as Current Date :Thursday, April 19, 2001 Min Date :Wednesday, May 12, 1999 Max Date :Wednesday, April 21, 2010 |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
disable,
dispatchEvent,
enable,
enable,
enableInputMethods,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
transferFocus |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int dd_mm_yyyy
public static final int mm_dd_yyyy
public static final int dd_mmm_yyyy
public static final int dd_mmmm_yyyy
public static final int mmm_dd_yyyy
public static final int mmmm_dd_yyyy
public static final int ldow_dd_mmm_yyyy
public static final int ldow_dd_mmmm_yyyy
public static final int ldow_mmm_dd_yyyy
public static final int ldow_mmmm_dd_yyyy
public static final int sdow_dd_mmm_yyyy
public static final int sdow_dd_mmmm_yyyy
public static final int sdow_mmm_dd_yyyy
public static final int sdow_mmmm_dd_yyyy
Constructor Detail |
public CalendarBn()
Default Date is Today.
Default Min Date is 'Previous years 1st January' and
Default Max Date is 'Next years 31st December'
public CalendarBn(java.sql.Date date) throws CalendarBnException
public CalendarBn(java.util.GregorianCalendar date) throws CalendarBnException
public CalendarBn(int yyyy, int mm, int dd) throws CalendarBnException
public CalendarBn(java.sql.Date date, java.sql.Date mindate, java.sql.Date maxdate) throws CalendarBnException
public CalendarBn(java.util.GregorianCalendar date, java.util.GregorianCalendar mindate, java.util.GregorianCalendar maxdate) throws CalendarBnException
Method Detail |
public int addCalendarBnListener(CalendarBnListener dpl)
public int removeCalendarBnListener(CalendarBnListener dpl)
public void setEditableYearVisible(boolean flag)
public boolean getEditableYearVisible()
public void showToday(boolean flag)
public void setShowToday(boolean flag)
public boolean getShowToday()
public void showDateRange(boolean flag)
public void setShowDateRange(boolean flag)
public boolean getShowDateRange()
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setTitleBackground(java.awt.Color color)
public java.awt.Color getTitleBackground()
public void setTitleColor(java.awt.Color color)
public java.awt.Color getTitleColor()
public void setBorderColor(java.awt.Color color)
public java.awt.Color getBorderColor()
public void setBackground(java.awt.Color color)
public java.awt.Color getBackground()
public void setArrowColor(java.awt.Color color)
public java.awt.Color getArrowColor()
public void setWeekdaysColor(java.awt.Color color)
public java.awt.Color getWeekdaysColor()
public void setDaysColor(java.awt.Color color)
public java.awt.Color getDaysColor()
public void setMonthColor(java.awt.Color color)
public void setMouseOverYear_Color(java.awt.Color color)
public java.awt.Color getMouseOverYear_Color()
public java.awt.Color getMonthColor()
public void setYearColor(java.awt.Color color)
public java.awt.Color getYearColor()
public void setSelectionColor(java.awt.Color color)
public java.awt.Color getSelectionColor()
public void setDateFormat(int dateformat)
public java.lang.String getFormat()
public void setFormat(java.lang.String dateformat)
public void setDate(java.sql.Date date) throws CalendarBnException
public void setDate(java.util.GregorianCalendar date) throws CalendarBnException
public void setDate(int yyyy, int mm, int dd) throws CalendarBnException
public void setMinDate(java.sql.Date date) throws GreaterThanMaxDateException
public void setMinDate(int yyyy, int mm, int dd) throws CalendarBnException
public void setMinDate(java.util.GregorianCalendar date) throws GreaterThanMaxDateException
public void setMaxDate(java.sql.Date date) throws LessThanMinDateException
public void setMaxDate(int yyyy, int mm, int dd) throws CalendarBnException
public void setMaxDate(java.util.GregorianCalendar date) throws LessThanMinDateException
public java.lang.String toString()
public int getDateFormat()
public java.util.GregorianCalendar getDate()
public int getYear()
public int getMonth()
public int getDay()
public java.util.GregorianCalendar getMinDate()
public java.util.GregorianCalendar getMaxDate()
public int getYearFrom(java.util.GregorianCalendar date)
public int getMonthFrom(java.util.GregorianCalendar date)
public int getDayFrom(java.util.GregorianCalendar date)
public java.lang.String getMonthStr(java.util.GregorianCalendar date)
public java.lang.String getDOW(java.util.GregorianCalendar date)
public java.lang.String getFormattedDate(java.util.GregorianCalendar dt, int dtformat)
public java.lang.String getFormattedDate()
public void setDateValues(CalendarBn dp)
public void setDateValues(int cury, int curm, int curd, int miny, int minm, int mind, int maxy, int maxm, int maxd)
public CalendarBn getDateValues()
public static int CompareDates(java.util.GregorianCalendar date1, java.util.GregorianCalendar date2)
public static int CompareDates(int dy1, int dm1, int dd1, int dy2, int dm2, int dd2)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |