|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.type.DayRanges
The DayRanges class is used in association with the DateNavigator class to specify any number of days that should be rendered in a selected state and can be accompanied with tooltips. WARNING: All month values used here are conformant to java.util.Calendar. This means January has a month value of Calendar.JANUARY which equals to 0 and not 1 as could be suspected!
Copyright 2004 SAP AG
Locale,
Calendar| Field Summary | |
static int |
SELECTION_MODE_IT1EMP
Selection mode It1Emp. |
static int |
SELECTION_MODE_IT2EMP
Default selection mode It2Emp. |
static int |
SELECTION_MODE_IT3EMP
Selection mode It3Emp. |
static int |
SELECTION_MODE_IT4EMP
Selection mode It4Emp. |
static int |
SELECTION_MODE_NONE
Selection mode for indication that no mode is selected at all. |
static int |
SELECTION_MODE_SELNOT
Selection mode SelNot. |
| Constructor Summary | |
DayRanges()
Create DayRanges. |
|
DayRanges(IPageContext pc)
Create DayRanges. |
|
| Method Summary | |
void |
add(Date day)
Add Date to this instance of DayRanges |
void |
add(Date begin,
Date end)
Add a range of Dates to this instance of DayRanges. |
void |
add(Date begin,
Date end,
int selection)
Add a range of Dates to this instance of DayRanges. |
void |
add(Date begin,
Date end,
String tooltip)
Add a range of Dates to this instance of DayRanges. |
void |
add(Date begin,
Date end,
String tooltip,
int selection)
Add a range of Dates to this instance of DayRanges. |
void |
add(Date day,
int selection)
Add Date to this instance of DayRanges |
void |
add(Date day,
String tooltip)
Add Date to this instance of DayRanges |
void |
add(Date day,
String tooltip,
int selection)
Add Date to this instance of DayRanges |
void |
addMonth(int month,
int year)
Add all days of a month to this instance of DayRanges. |
void |
addMonth(int month,
int year,
int selection)
Add all days of a month to this instance of DayRanges. |
void |
addMonth(int month,
int year,
String tooltip)
Add all days of a month to this instance of DayRanges. |
void |
addMonth(int month,
int year,
String tooltip,
int selection)
Add all days of a month to this instance of DayRanges. |
void |
addWeek(int week,
int year)
Add all days of a week to this instance of DayRanges. |
void |
addWeek(int week,
int year,
int selection)
Add all days of a week to this instance of DayRanges. |
void |
addWeek(int week,
int year,
String tooltip)
Add all days of a week to this instance of DayRanges. |
void |
addWeek(int week,
int year,
String tooltip,
int selection)
Add all days of a week to this instance of DayRanges. |
static void |
deleteTimeInfo(Calendar calendar)
Utility method to delete all time info in a calendar. |
Calendar |
getCalendar()
Get Calendar instance associated with this DayRanges instance. |
Date |
getDate(int day,
int month,
int year)
Utility method to construct a java.util.Date from day/month/year. |
int |
getSelectionMode(Date date)
Get selection mode that has been set for a Date. |
String |
getTooltip(Date date)
Get the tooltip that has been set for a Date. |
boolean |
isInRange(Date date)
Check if some Date had been added to this DayRanges. |
boolean |
isInRange(int day,
int month,
int year)
Check if some Date had been added to this DayRanges. |
boolean |
isLocaleUnknown()
Indicate if the locale has not been explicitely set and should switch to browsers default locale during rendering. |
static Date |
normalizeDate(Calendar calendar,
Date date)
Utility method to delete all time info in a Date. |
void |
setLocale(Locale l)
Set fixed locale to use for Date calculations. |
protected void |
setLocaleUnknown(boolean localeUnknown)
specify whether locale has not been explicitely set and should switch to browsers default locale during rendering. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SELECTION_MODE_NONE
public static final int SELECTION_MODE_SELNOT
public static final int SELECTION_MODE_IT1EMP
public static final int SELECTION_MODE_IT2EMP
public static final int SELECTION_MODE_IT3EMP
public static final int SELECTION_MODE_IT4EMP
| Constructor Detail |
public DayRanges(IPageContext pc)
pc - IPageContext used to look up localepublic DayRanges()
| Method Detail |
public void setLocale(Locale l)
l - Locale to be used for date calculations and rendering
public boolean isInRange(int day,
int month,
int year)
day - int specifying the day of monthmonth - int specifying the month (as defined by java.util.Calendar)year - int specifying the year
public boolean isInRange(Date date)
date - Date too look for
public Date getDate(int day,
int month,
int year)
day - int specifying the day of monthmonth - int specifying the month (as defined by java.util.Calendar)year - int specifying the year
public void add(Date day)
day - java.util.Date specifying the date to be added
public void add(Date day,
String tooltip)
day - java.util.Date specifying the date to be addedtooltip - String specifying the tooltip to be rendered for the added Date
public void add(Date day,
int selection)
day - java.util.Date specifying the date to be addedselection - selection mode
public void add(Date day,
String tooltip,
int selection)
day - java.util.Date specifying the date to be addedtooltip - String specifying the tooltip to be rendered for the added Dateselection - selection mode
public void add(Date begin,
Date end)
begin - java.util.Date specifying the start of the range to be addedend - java.util.Date specifying the end of the range to be added
public void add(Date begin,
Date end,
String tooltip)
begin - java.util.Date specifying the start of the range to be addedend - java.util.Date specifying the end of the range to be addedtooltip - String specifying the tooltip to be rendered for the added Date
public void add(Date begin,
Date end,
int selection)
begin - java.util.Date specifying the start of the range to be addedend - java.util.Date specifying the end of the range to be addedselection - selection mode
public void add(Date begin,
Date end,
String tooltip,
int selection)
begin - java.util.Date specifying the start of the range to be addedend - java.util.Date specifying the end of the range to be addedtooltip - String specifying the tooltip to be rendered for the added Date
public void addMonth(int month,
int year)
month - int specifying the month (as defined by java.util.Calendar)year - int specifying the year
public void addMonth(int month,
int year,
String tooltip)
month - int specifying the month (as defined by java.util.Calendar)year - int specifying the yeartooltip - String specifying the tooltip to be rendered for the added Date
public void addMonth(int month,
int year,
int selection)
month - int specifying the month (as defined by java.util.Calendar)year - int specifying the yearselection - selection mode
public void addMonth(int month,
int year,
String tooltip,
int selection)
month - int specifying the month (as defined by java.util.Calendar)year - int specifying the yeartooltip - String specifying the tooltip to be rendered for the added Dateselection - selection mode
public void addWeek(int week,
int year)
week - int specifying the week of yearyear - int specifying the year
public void addWeek(int week,
int year,
int selection)
week - int specifying the week of yearyear - int specifying the yearselection - selection mode
public void addWeek(int week,
int year,
String tooltip)
week - int specifying the week of yearyear - int specifying the yeartooltip - String specifying the tooltip to be rendered for the added Date
public void addWeek(int week,
int year,
String tooltip,
int selection)
week - int specifying the week of yearyear - int specifying the yeartooltip - String specifying the tooltip to be rendered for the added Datepublic static void deleteTimeInfo(Calendar calendar)
calendar - Calendar whose time info should be cleared
public static Date normalizeDate(Calendar calendar,
Date date)
calendar - Calendar used for generating the new Datedate - Date whose time info should be cleared
public int getSelectionMode(Date date)
date - get the tooltip of this Date
public String getTooltip(Date date)
date - get the tooltip of this Date
public Calendar getCalendar()
public boolean isLocaleUnknown()
protected void setLocaleUnknown(boolean localeUnknown)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||