Overview | Package | Class | Tree | Index
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class lotus.calendar.datepicker.DatePicker

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--lotus.calendar.datepicker.util.TipPanel
                                |
                                +--lotus.calendar.datepicker.DatePicker

public class DatePicker
extends lotus.calendar.datepicker.util.TipPanel
implements java.util.Observer, lotus.calendar.datepicker.util.Subscriber, SelectionListener, TodayListener, java.io.Externalizable, java.lang.Runnable
Official public class for the lotus.calendar.datepicker package.


Method Summary
void addSelectionListener(SelectionListener l)
           register interest in date selection changes
void addTodayListener(TodayListener l)
           register interest in today change
boolean getAllowUI()
           returns the status of Universal Calendar Control display
boolean getAutoDateSyncUp()
           returns the status of communications between instances of Universal Calendar Control
boolean getAutoUpdateToday()
           returns the status of today date change notification
java.awt.Color getBannerBackgroundColor()
           get current top banner background color
boolean getBannerVisible()
           returns the status of the top banner display
java.awt.Color getButtonBackgroundColor()
           get current background color for all buttons on the contol
java.awt.Color getCalendarBackgroundColor()
           get current background color for calendar
java.lang.String getCalendar()
           get current calendar name
boolean getCalendarSelectorVisible()
           returns the status of the calendar selector
java.awt.Color getCalendarTextColor()
           get current text color for calendar
boolean getDayMenuVisible()
           returns the status of the day menu
java.awt.Color getHolidayTextColor()
           get current holiday date color
java.lang.String getLocalSelectedDateAsString()
           get currently selected date in selected calendar
java.lang.String getLocalTodayDateAsString()
           get currently today date in selected calendar
java.lang.String getReferenceCalendar()
           get current reference calendar reference calendar is only visible in the Two Calendar view
java.util.Date getSelectedDate()
           get currently selected date as a Gregorian date
int getSelectedDay()
           get currently selected day
java.awt.Color getSelectedDayTextColor()
           get current selected date color
int getSelectedMonth()
           get currently selected month
int getSelectedYear()
           get currently selected year
int getStartOfWeek()
           get primary calendars start of week
java.util.Date getTodayDate()
           get today date as a Gregorian date
int getTodayDay()
           get today's day
java.awt.Color getTodayDayTextColor()
           get current today date color
int getTodayMonth()
           get today's month
int getTodayYear()
           get today's year
java.awt.Color getTooltipBackgroundColor()
           get current background color for Tooltip panel
java.lang.String getUserInterfaceLanguage()
           get currently active Locale
java.lang.String getView()
           get type of view currently being displayed
boolean getViewSelectorVisible()
           returns the status of the view selector
java.lang.String getWeekend()
           get primary calendars weekend days
void removeSelectionListener(SelectionListener l)
           deregister interest in date selection changes
void removeTodayListener(TodayListener l)
           deregister interest in today change
void setAllowUI(boolean visible)
           Specify whether to allow a UI representation of the DatePicker
void setAutoDateSyncUp(boolean autoDateSyncUp)
           enable/disable auto date sync up between multiple instances of this control within a single JVM
void setAutoUpdateToday(boolean enable)
           enable/disable auto today update via background thread
void setBannerBackgroundColor(java.awt.Color c)
           Specify the color for the top banner background
void setBannerVisible(boolean enabled)
           enable/disbale display of top banner
void setButtonBackgroundColor(java.awt.Color c)
           Specify the background color for all buttons on Universal Calendar Control
void setCalendarBackgroundColor(java.awt.Color c)
           Specify the background color for the calendar
void setCalendar(java.lang.String name)
           Specify calendar to be displayed
void setCalendarSelectorVisible(boolean enabled)
           enable/disbale display of calendar selector
void setCalendarTextColor(java.awt.Color c)
           Specify the text color for the calendar
void setDayMenuVisible(boolean enabled)
           enable/disbale display of day menu
void setHolidayTextColor(java.awt.Color c)
           Specify the color for the holiday date text
void setReferenceCalendar(java.lang.String name)
           Specify reference calendar to be displayed reference calendar is only visible in the Two Calendar view
void setSelectedDate(java.util.Date jdkDate)
           Set currently selected date, specified in gregorian terms
void setSelectedDay(int selectedDay)
           Set currently selected day, specified in gregorian terms
void setSelectedDayTextColor(java.awt.Color c)
           Specify the color for the currently selected day
void setSelectedMonth(int selectedMonth)
           Set currently selected month, specified in gregorian terms
void setSelectedYear(int selectedYear)
           Set currently selected year, specified in gregorian terms
void setStartOfWeek(int startOfWeek)
           Specify view's start of week
void setTodayDayTextColor(java.awt.Color c)
           Specify the color for day digit representing Today
void setTooltipBackgroundColor(java.awt.Color c)
           Specify the background color for the Tooltip panel
void setUserInterfaceLanguage(java.lang.String locale)
           Specify userInterfaceLanguage for user-visible text display
void setView(java.lang.String value)
           Specify the view to display
void setViewSelectorVisible(boolean enabled)
           enable/disbale display of view selector
void setWeekend(java.lang.String weekendDays)
           Specify view's weekend days
 

Method Detail

addSelectionListener

public void addSelectionListener(SelectionListener l)
register interest in date selection changes
Parameters:
SelectionListener -  

removeSelectionListener

public void removeSelectionListener(SelectionListener l)
deregister interest in date selection changes
Parameters:
SelectionListener -  

addTodayListener

public void addTodayListener(TodayListener l)
register interest in today change
Parameters:
TodayListener -  

removeTodayListener

public void removeTodayListener(TodayListener l)
deregister interest in today change
Parameters:
TodayListener -  

getUserInterfaceLanguage

public java.lang.String getUserInterfaceLanguage()
get currently active Locale
Returns:
Locale string representation of Locale currently in use by DatePicker

getView

public java.lang.String getView()
get type of view currently being displayed
Returns:
String "One Month" "Two Calendar" or "Three Months"

getCalendarTextColor

public java.awt.Color getCalendarTextColor()
get current text color for calendar
Returns:
Color calendar text color

getCalendarBackgroundColor

public java.awt.Color getCalendarBackgroundColor()
get current background color for calendar
Returns:
Color calendar background color

getButtonBackgroundColor

public java.awt.Color getButtonBackgroundColor()
get current background color for all buttons on the contol
Returns:
Color buttons background color

getTooltipBackgroundColor

public java.awt.Color getTooltipBackgroundColor()
get current background color for Tooltip panel
Returns:
Color Tooltip panel background color

getHolidayTextColor

public java.awt.Color getHolidayTextColor()
get current holiday date color
Returns:
Color holiday date color

getBannerBackgroundColor

public java.awt.Color getBannerBackgroundColor()
get current top banner background color
Returns:
Color top banner background color

getSelectedDayTextColor

public java.awt.Color getSelectedDayTextColor()
get current selected date color
Returns:
Color selected date color

getTodayDayTextColor

public java.awt.Color getTodayDayTextColor()
get current today date color
Returns:
Color today date color

getCalendar

public java.lang.String getCalendar()
get current calendar name
Returns:
calendar name of calendar

getReferenceCalendar

public java.lang.String getReferenceCalendar()
get current reference calendar reference calendar is only visible in the Two Calendar view
Returns:
calendar name of reference calendar

getStartOfWeek

public int getStartOfWeek()
get primary calendars start of week
Returns:
startOfWeek

getWeekend

public java.lang.String getWeekend()
get primary calendars weekend days
Returns:
string array of day status (true signifying isWeekendDay)

getSelectedDay

public int getSelectedDay()
get currently selected day
Returns:
selectedDay currently selected day in gregorian calendar

getSelectedMonth

public int getSelectedMonth()
get currently selected month
Returns:
selectedMonth currently selected month in gregorian calendar

getSelectedYear

public int getSelectedYear()
get currently selected year
Returns:
selectedYear currently selected day in gregorian calendar

getTodayDay

public int getTodayDay()
get today's day
Returns:
todayDay today's day in gregorian calendar

getTodayMonth

public int getTodayMonth()
get today's month
Returns:
todayMonth today's month in gregorian calendar

getTodayYear

public int getTodayYear()
get today's year
Returns:
todayYear today's year in gregorian calendar

getSelectedDate

public java.util.Date getSelectedDate()
get currently selected date as a Gregorian date
Returns:
java.util.Date selected date in Gregorian calendar

getLocalSelectedDateAsString

public java.lang.String getLocalSelectedDateAsString()
get currently selected date in selected calendar
Returns:
java.lang.String selected date in selected calendar as a string "10/5/98"

getTodayDate

public java.util.Date getTodayDate()
get today date as a Gregorian date
Returns:
java.util.Date today date in Gregorian calendar

getLocalTodayDateAsString

public java.lang.String getLocalTodayDateAsString()
get currently today date in selected calendar
Returns:
java.lang.String today date in selected calendar as a string "10/5/98"

getAllowUI

public boolean getAllowUI()
returns the status of Universal Calendar Control display
Returns:
visible false if contols is hidden else retrun false

getAutoDateSyncUp

public boolean getAutoDateSyncUp()
returns the status of communications between instances of Universal Calendar Control
Returns:
isEnabled true if instances of control will communicate date changed else returns false

getAutoUpdateToday

public boolean getAutoUpdateToday()
returns the status of today date change notification
Returns:
enabled true if contol will notify if todays date has changed

getBannerVisible

public boolean getBannerVisible()
returns the status of the top banner display
Returns:
visible true if it is dispalying false if hidden

getCalendarSelectorVisible

public boolean getCalendarSelectorVisible()
returns the status of the calendar selector
Returns:
visible true if it is dispalying false if hidden

getViewSelectorVisible

public boolean getViewSelectorVisible()
returns the status of the view selector
Returns:
visible true if it is dispalying false if hidden

getDayMenuVisible

public boolean getDayMenuVisible()
returns the status of the day menu
Returns:
visible true if it is dispalying false if hidden

setAllowUI

public void setAllowUI(boolean visible)
Specify whether to allow a UI representation of the DatePicker
Parameters:
visible -  

setUserInterfaceLanguage

public void setUserInterfaceLanguage(java.lang.String locale)
Specify userInterfaceLanguage for user-visible text display
Parameters:
Locale - string representation of Locale

setView

public void setView(java.lang.String value)
Specify the view to display
Parameters:
String - "One Month" "Two Calendar" or "Three Months"

setCalendarTextColor

public void setCalendarTextColor(java.awt.Color c)
Specify the text color for the calendar
Parameters:
Color -  

setCalendarBackgroundColor

public void setCalendarBackgroundColor(java.awt.Color c)
Specify the background color for the calendar
Parameters:
Color -  

setButtonBackgroundColor

public void setButtonBackgroundColor(java.awt.Color c)
Specify the background color for all buttons on Universal Calendar Control
Parameters:
Color -  

setTooltipBackgroundColor

public void setTooltipBackgroundColor(java.awt.Color c)
Specify the background color for the Tooltip panel
Parameters:
Color -  

setHolidayTextColor

public void setHolidayTextColor(java.awt.Color c)
Specify the color for the holiday date text
Parameters:
Color -  

setBannerBackgroundColor

public void setBannerBackgroundColor(java.awt.Color c)
Specify the color for the top banner background
Parameters:
Color -  

setSelectedDayTextColor

public void setSelectedDayTextColor(java.awt.Color c)
Specify the color for the currently selected day
Parameters:
Color -  

setTodayDayTextColor

public void setTodayDayTextColor(java.awt.Color c)
Specify the color for day digit representing Today
Parameters:
Color -  

setCalendar

public void setCalendar(java.lang.String name)
Specify calendar to be displayed
Parameters:
name - calendar name

setReferenceCalendar

public void setReferenceCalendar(java.lang.String name)
Specify reference calendar to be displayed reference calendar is only visible in the Two Calendar view
Parameters:
name - reference calendar name

setStartOfWeek

public void setStartOfWeek(int startOfWeek)
Specify view's start of week
Parameters:
numeral - representing startOfWeek e.g. (Sunday) 1 <= day <= 7 (Saturday)

setWeekend

public void setWeekend(java.lang.String weekendDays)
Specify view's weekend days
Parameters:
array - of boolean - true representing isWeekend day

setSelectedDay

public void setSelectedDay(int selectedDay)
Set currently selected day, specified in gregorian terms
Parameters:
selectedDay -  

setSelectedMonth

public void setSelectedMonth(int selectedMonth)
Set currently selected month, specified in gregorian terms
Parameters:
selectedMonth -  

setSelectedYear

public void setSelectedYear(int selectedYear)
Set currently selected year, specified in gregorian terms
Parameters:
selectedYear -  

setSelectedDate

public void setSelectedDate(java.util.Date jdkDate)
Set currently selected date, specified in gregorian terms
Parameters:
java.util.Date -  

setAutoDateSyncUp

public void setAutoDateSyncUp(boolean autoDateSyncUp)
enable/disable auto date sync up between multiple instances of this control within a single JVM
Parameters:
autoDateSyncUp - true or false

setAutoUpdateToday

public void setAutoUpdateToday(boolean enable)
enable/disable auto today update via background thread
Parameters:
enable - - enable/disable thread midnight thread support

setBannerVisible

public void setBannerVisible(boolean enabled)
enable/disbale display of top banner
Parameters:
enabled - true or false

setCalendarSelectorVisible

public void setCalendarSelectorVisible(boolean enabled)
enable/disbale display of calendar selector
Parameters:
enabled - true or false

setViewSelectorVisible

public void setViewSelectorVisible(boolean enabled)
enable/disbale display of view selector
Parameters:
enabled - true or false

setDayMenuVisible

public void setDayMenuVisible(boolean enabled)
enable/disbale display of day menu
Parameters:
enabled - true or false

Overview | Package | Class | Tree | Index
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD