oracle.adf.view.faces.bi.component.gantt
Class GanttCalendar
java.lang.Object
oracle.adf.view.faces.bi.component.gantt.GanttCalendar
- All Implemented Interfaces:
- GanttConstants
public class GanttCalendar
- extends java.lang.Object
- implements GanttConstants
This class is designed for navigating and manipulating dates/time
in Gantt charts. Application developers should never need to use
this class directly.
Fields inherited from interface oracle.adf.view.faces.bi.component.gantt.GanttConstants |
ACTUAL_END_TIME, ACTUAL_START_TIME, APRIL, AUGUST, BOTTOM, CENTER, COMPLETED_THROUGH, CRITICAL, DAYS, DECEMBER, DEPENDENCIES, DEPENDENCY_TYPE, END_TIME, FEBRUARY, FINISH_FINISH, FINISH_START, FRIDAY, FROM_ID, HALFHOURS, HALFYEARS, HOURS, ICON_ALIGN, ICON1, ICON2, ICON3, INSIDE, IS_CONTAINER, JANUARY, JULY, JUNE, LABEL, LABEL_ALIGN, LABELS, LEFT, MARCH, MAY, MILESTONE, MONDAY, MONTHS, NORMAL, NOVEMBER, NUMSCALES, OCTOBER, PERCENT_COMPLETE, QUARTERHOURS, QUARTERS, RECURRING_TASK_ID, RECURRING_TASKS, RESOURCE_ID, RESOURCE_NAME, RIGHT, SATURDAY, SEPTEMBER, SHUTDOWN_TIME, SIXHOURS, SPLIT_TASK_ID, SPLIT_TASKS, START_FINISH, START_START, START_TIME, STARTUP_TIME, SUBRESOURCES, SUBTASKS, SUBTYPE, SUMMARY, SUNDAY, TASK_ID, TASK_TYPE, TASKS, THREEHOURS, THURSDAY, TIME, TIMEBUCKETS, TO_ID, TOP, TUESDAY, TWOMONTHS, TWOWEEKS, TWOYEARS, UNDEFINED_SCALE, VALUES, WEDNESDAY, WEEKS, WORKING_DAYS_OF_THE_WEEK, WORKING_END_TIME, WORKING_START_TIME, YEARS |
Constructor Summary |
GanttCalendar(java.util.Locale locale,
java.util.TimeZone timezone,
boolean isThaiGregorian)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GanttCalendar
public GanttCalendar(java.util.Locale locale,
java.util.TimeZone timezone,
boolean isThaiGregorian)
- Parameters:
isThaiGregorian
- true if Thai locale should always use a Gregorian
calendar, false if a default JDK Calendar for Thai locale should be used- For internal use only. Application developers should not use this
- Constructor
getCalendar
public java.util.Calendar getCalendar()
- For internal use only. Application developers should not use this
setFirstMonthOfYear
public void setFirstMonthOfYear(int month)
- Parameters:
month
- an integer constant defined in java.util.Calendar,
for example, Calendar.SEPTEMBER- For internal use only. Application developers should not use this
- Sets the first month of year.
getFirstMonthOfYear
public int getFirstMonthOfYear()
- Returns:
- an integer constant defined in java.util.Calendar,
for example, Calendar.SEPTEMBER
- For internal use only. Application developers should not use this
- Gets the first month of year.
setFirstDayOfWeek
public void setFirstDayOfWeek(int day)
- Parameters:
day
- an integer constant defined in java.util.Calendar,
for example, Calendar.SUNDAY- For internal use only. Application developers should not use this
- Sets the first day of week.
getFirstDayOfWeek
public int getFirstDayOfWeek()
- Returns:
- day an integer constant defined in java.util.Calendar,
for example, Calendar.SUNDAY
- For internal use only. Application developers should not use this
- Gets the first day of week.
adjustDate
public java.util.Date adjustDate(java.util.Date date,
int scale,
boolean up)
- Parameters:
date
- the time to be adjustedscale
- adjustment scale.up
- true if date should be adjusted forward to the end of a scale
period, false if the date should be adjusted to the beginning of
a scale period
- Returns:
- the adjusted date
- For internal use only. Application developers should not use this
- Adjusts a date to the beginning or the end of a time period
specified by the scale (day, week, month, etc.)
getNextDate
public java.util.Date getNextDate(java.util.Date date,
int scale,
boolean up)
- Parameters:
date
- the input datescale
- a step for determining the next dateup
- true if the next date should be found after the input date,
false if it should be found before
- Returns:
- the next date
- For internal use only. Application developers should not use this
- Gets the next date according to the scale (day, week, month, etc.)
getNextDayOfWeek
public java.util.Date getNextDayOfWeek(java.util.Date date,
int dayOfWeek)
- Parameters:
date
- start datedayOfWeek
- day of week
- Returns:
- the next date with the same day of week
- For internal use only. Application developers should not use this
- Gets the first date corresponding to a given day of week
starting with a given date. For example, this
method could be used to find the next Sunday.
getCount
public int getCount(java.util.Date date,
int scale)
- Parameters:
date
- the input datescale
- scale for determining date count- For internal use only. Application developers should not use this
- Gets the date "count" for a given scale.
For "days" it will be the day of week, 0-6 starting with
the first day of the week, which is based on locale if not
explicitly set; for "weeks" it will be
the week of month, 0-4; for ?months? it will be the month of year, 0-11;
for "quarters" it is the quarter of year, 0-3;
for "half years" it is the half of year, 0-1; and for "years" it is always 0
convertScale
public static int convertScale(java.lang.String scale)
throws InvalidScaleException
- Parameters:
string
- scale
- Returns:
- integer scale
- Throws:
InvalidScaleException
- For internal use only. Application developers should not use this
- Converts a string scale to integer constant
convertScale
public static java.lang.String convertScale(int scale)
throws InvalidScaleException
- Parameters:
integer
- scale
- Returns:
- string scale
- Throws:
InvalidScaleException
- For internal use only. Application developers should not use this
- Converts an integer scale to string constant
convertMonth
public static int convertMonth(java.lang.String month)
- Parameters:
string
- month
- Returns:
- int month
- For internal use only. Application developers should not use this
- Converts a string month constant to integer
convertDay
public static int convertDay(java.lang.String day)
- Parameters:
string
- day of week
- Returns:
- int day of week
- For internal use only. Application developers should not use this
- Converts a string day constant to integer
Copyright © 1997, 2009, Oracle. All rights reserved.