示例#1
0
 /// <summary>
 /// Sets the new calendar type to be used from now on in locale dependent functionality (for example, formatting, translation texts, etc.).
 /// </summary>
 /// <param name="sCalendarType">the new calendar type. Set it with null to clear the calendar type and the calendar type is calculated based on the format settings and current locale.</param>
 /// <returns><code>this</code> to allow method chaining</returns>
 public extern virtual sap.ui.core.Configuration setCalendarType(sap.ui.core.CalendarType sCalendarType);
示例#2
0
 /// <summary>
 /// Sets a new value for property {@link #getPrimaryCalendarType primaryCalendarType}.
 ///
 /// If set, the calendar type is used for display. If not set, the calendar type of the global configuration is used.
 ///
 /// When called with a value of <code>null</code> or <code>undefined</code>, the default value of the property will be restored.
 /// </summary>
 /// <param name="sPrimaryCalendarType">New value for property <code>primaryCalendarType</code></param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.ui.unified.calendar.MonthPicker setPrimaryCalendarType(sap.ui.core.CalendarType sPrimaryCalendarType);
示例#3
0
 /// <summary>
 /// Get combined interval pattern using a given pattern and the fallback interval pattern.
 ///
 /// If a skeleton based pattern is not available or not wanted, this method can be used to create an interval pattern based on a given pattern, using the fallback interval pattern.
 /// </summary>
 /// <param name="sPattern">the single date pattern to use within the interval pattern</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>the calculated interval pattern</returns>
 public extern virtual string getCombinedIntervalPattern(string sPattern, sap.ui.core.CalendarType sCalendarType);
示例#4
0
 /// <summary>
 /// Sets a new value for property {@link #getSecondaryCalendarType secondaryCalendarType}.
 ///
 /// If set, the days in the calendar popup are also displayed in this calendar type If not set, the dates are only displayed in the primary calendar type
 ///
 /// When called with a value of <code>null</code> or <code>undefined</code>, the default value of the property will be restored.
 /// </summary>
 /// <param name="sSecondaryCalendarType">New value for property <code>secondaryCalendarType</code></param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.m.DatePicker setSecondaryCalendarType(sap.ui.core.CalendarType sSecondaryCalendarType);
示例#5
0
 /// <summary>
 /// Get time pattern in style "short", "medium", "long" or "full".
 /// </summary>
 /// <param name="sStyle">the required style for the date pattern</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>the selected time pattern</returns>
 public extern virtual string getTimePattern(string sStyle, sap.ui.core.CalendarType sCalendarType);
示例#6
0
 /// <summary>
 /// Get combined datetime pattern with given date and and time style.
 /// </summary>
 /// <param name="sDateStyle">the required style for the date part</param>
 /// <param name="sTimeStyle">the required style for the time part</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>the combined datetime pattern</returns>
 public extern virtual string getCombinedDateTimePattern(string sDateStyle, string sTimeStyle, sap.ui.core.CalendarType sCalendarType);
示例#7
0
 /// <summary>
 /// Get month names in width "narrow", "abbreviated" or "wide".
 /// </summary>
 /// <param name="sWidth">the required width for the month names</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>array of month names (starting with January)</returns>
 public extern virtual object[] getMonths(string sWidth, sap.ui.core.CalendarType sCalendarType);
示例#8
0
 /// <summary>
 /// Get stand alone quarter names in width "narrow", "abbreviated" or "wide".
 /// </summary>
 /// <param name="sWidth">the required width for the quarter names</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>array of quarters</returns>
 public extern virtual object[] getQuartersStandAlone(string sWidth, sap.ui.core.CalendarType sCalendarType);
示例#9
0
 /// <summary>
 /// Returns the interval format with the given Id (see CLDR documentation for valid Ids) or the fallback format if no interval format with that Id is known.
 ///
 /// The empty Id ("") might be used to retrieve the interval format fallback.
 /// </summary>
 /// <param name="sId">Id of the interval format, e.g. "d-d"</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>interval format string with placeholders {0} and {1}</returns>
 public extern virtual string getIntervalPattern(string sId, sap.ui.core.CalendarType sCalendarType);
示例#10
0
 /// <summary>
 /// Returns the map of era IDs to era dates.
 /// </summary>
 /// <param name="sCalendarType">the type of calendar</param>
 /// <returns>the array of eras containing objects with either an _end or _start property with a date</returns>
 public extern virtual object[] getEraDates(sap.ui.core.CalendarType sCalendarType);
示例#11
0
 /// <summary>
 /// Get day periods in width "narrow", "abbreviated" or "wide".
 /// </summary>
 /// <param name="sWidth">the required width for the day period names</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>array of day periods (AM, PM)</returns>
 public extern virtual object[] getDayPeriods(string sWidth, sap.ui.core.CalendarType sCalendarType);
示例#12
0
 /// <summary>
 /// Get interval pattern for a given skeleton format.
 ///
 /// The format string does contain pattern symbols (e.g. "yMMMd" or "Hms") and will be converted into the pattern in the used locale, which matches the wanted symbols best. The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w/W), Day-Of-Week (E/e/c), Day (d/D), Hour (h/H/k/K/), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
 ///
 /// See http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
 /// </summary>
 /// <param name="sSkeleton">the wanted skeleton format for the datetime pattern</param>
 /// <param name="vGreatestDiff">is either a string which represents the symbol matching the greatest difference in the two dates to format or an object which contains key-value pairs. The value is always true. The key is one of the date field symbol groups whose value are different between the two dates. The key can only be set with 'Year', 'Quarter', 'Month', 'Week', 'Day', 'DayPeriod', 'Hour', 'Minute', or 'Second'.</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>the best matching interval pattern if interval difference is given otherwise an array with all possible interval patterns which match the given skeleton format</returns>
 public extern virtual Union <string, string[]> getCustomIntervalPattern(string sSkeleton, Union <object, string> vGreatestDiff, sap.ui.core.CalendarType sCalendarType);
示例#13
0
 /// <summary>
 /// Get custom datetime pattern for a given skeleton format.
 ///
 /// The format string does contain pattern symbols (e.g. "yMMMd" or "Hms") and will be converted into the pattern in the used locale, which matches the wanted symbols best. The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w/W), Day-Of-Week (E/e/c), Day (d/D), Hour (h/H/k/K/), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
 ///
 /// See http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
 /// </summary>
 /// <param name="sSkeleton">the wanted skeleton format for the datetime pattern</param>
 /// <param name="sCalendarType">the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale.</param>
 /// <returns>the best matching datetime pattern</returns>
 public extern virtual string getCustomDateTimePattern(string sSkeleton, sap.ui.core.CalendarType sCalendarType);