|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.DateNavigator
The DateNavigator class is used to render calendars.
Calendars consist of one or more complete months
including year, month name, week numbers, weekdays
and days of months. A month is rendered using locales
to get the month names, weekday names and the day
that begins a week in the browsers locale or an
explicitely specified locale.
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 String |
UI_ID
|
| Constructor Summary | |
DateNavigator()
Create DateNavigatorModel. |
|
DateNavigator(IPageContext pc)
Create DateNavigator. |
|
| Method Summary | |
String |
getAccessibilityDescription()
|
Calendar |
getCalendar()
Get Calendar instance used by DateNavigator. |
Integer |
getCenteredMonth()
Get centered month. |
Integer |
getCenteredYear()
Get centered year. |
Locale |
getLocale()
Get locale. |
DateNavigatorModel |
getModel()
Get model. |
int |
getMonthsPerColumn()
Get number of months to be rendered one upon the other. |
int |
getMonthsPerRow()
Get number of months to be rendered next to each other. |
String |
getOnDayClick()
Get event String for DayClick events. |
String |
getOnMonthClick()
Get event String for MonthClick events. |
String |
getOnNavigate()
Get event String for Navigate events. |
String |
getOnWeekClick()
Get event String for WeekClick events. |
DayRanges |
getSelectedDays()
Get the DayRanges instance. |
Date |
getToday()
Get the day that should be rendered as the current date. |
String |
getUI()
Get String specifier for this component. |
String |
setAccessibilityDescription(String accessibilityDescription)
|
void |
setCenteredMonth(int centeredMonth)
Set Month that should be centered on rendering. |
void |
setCenteredYear(int centeredYear)
Set year of month that should be centered on rendering. |
void |
setLocale(Locale l)
Set fixed locale to use for Date calculations and rendering. |
void |
setModel(DateNavigatorModel model)
Set Model. |
void |
setMonthsPerColumn(int monthsPerColumn)
Set number of months to be rendered one upon the other. |
void |
setMonthsPerRow(int monthsPerRow)
Set number of months to be rendered next to each other. |
void |
setOnDayClick(String onDayClick)
Set event String for DayClick events. |
void |
setOnMonthClick(String onMonthClick)
Set event String for MonthClick events. |
void |
setOnNavigate(String onNavigate)
Set event String for Navigate events. |
void |
setOnWeekClick(String onWeekClick)
Set event String for WeekClick events. |
void |
setSelectedDays(DayRanges selectedDays)
Set the DayRanges instance. |
void |
setToday(Date today)
Set the day that should be rendered as the current date. |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public DateNavigator(IPageContext pc)
pc - IPageContext used to look up localepublic DateNavigator()
| Method Detail |
public void setLocale(Locale l)
l - Locale to be used for date calculations and renderingpublic DateNavigatorModel getModel()
public void setModel(DateNavigatorModel model)
model - model to be setpublic int getMonthsPerColumn()
public void setMonthsPerColumn(int monthsPerColumn)
monthsPerColumn - int specifying number of months per column (defaults to 1 if never set)public int getMonthsPerRow()
public void setMonthsPerRow(int monthsPerRow)
monthsPerRow - int specifying number of months per row (defaults to 1 if never set)public Integer getCenteredMonth()
public void setCenteredMonth(int centeredMonth)
centeredMonth - int defining the month to be centered (see java.util.Calendar)public Integer getCenteredYear()
public void setCenteredYear(int centeredYear)
centeredYear - int specifying the year of the centered monthpublic Date getToday()
public void setToday(Date today)
today - Date specifying the current datepublic DayRanges getSelectedDays()
public void setSelectedDays(DayRanges selectedDays)
selectedDays - DayRanges instancepublic String getUI()
getUI in class Componentpublic Calendar getCalendar()
public Locale getLocale()
public String getOnNavigate()
public void setOnNavigate(String onNavigate)
onNavigate - String that will be set for Navigate eventspublic String getOnDayClick()
public void setOnDayClick(String onDayClick)
onDayClick - String that will be set for DayClick eventspublic String getOnWeekClick()
public void setOnWeekClick(String onWeekClick)
onWeekClick - String that will be set for WeekClick eventspublic String getOnMonthClick()
public void setOnMonthClick(String onMonthClick)
onMonthClick - String that will be set for MonthClick eventspublic String getAccessibilityDescription()
public String setAccessibilityDescription(String accessibilityDescription)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||