- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QCalendar extends QtObject implements Cloneable
Describes calendar systems
Java wrapper for Qt class QCalendar
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QCalendar.System
Java wrapper for Qt enum QCalendar::Systemstatic class
QCalendar.YearMonthDay
Java wrapper for Qt class QCalendar::YearMonthDay -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.static int
Unspecified
-
Constructor Summary
Constructors Modifier Constructor Description QCalendar()
QCalendar(QCalendar.System system)
protected
QCalendar(QtObject.QPrivateConstructor p)
Constructor for internal use only.QCalendar(String name)
-
Method Summary
Modifier and Type Method Description static QStringList
availableCalendars()
QCalendar
clone()
QDate
dateFromParts(int year, int month, int day)
QDate
dateFromParts(QCalendar.YearMonthDay parts)
String
dateTimeToString(String format, QDateTime datetime, QDate dateOnly, QTime timeOnly, QLocale locale)
int
dayOfWeek(QDate date)
int
daysInMonth(int month)
Overloaded function fordaysInMonth(int, int)
withyear = Unspecified
.int
daysInMonth(int month, int year)
int
daysInYear(int year)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
boolean
hasYearZero()
boolean
isDateValid(int year, int month, int day)
boolean
isGregorian()
boolean
isLeapYear(int year)
boolean
isLunar()
boolean
isLuniSolar()
boolean
isProleptic()
boolean
isSolar()
boolean
isValid()
int
maximumDaysInMonth()
int
maximumMonthsInYear()
int
minimumDaysInMonth()
String
monthName(QLocale locale, int month)
Overloaded function formonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
String
monthName(QLocale locale, int month, int year)
Overloaded function formonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.String
monthName(QLocale locale, int month, int year, QLocale.FormatType format)
int
monthsInYear(int year)
String
name()
QCalendar.YearMonthDay
partsFromDate(QDate date)
String
standaloneMonthName(QLocale locale, int month)
Overloaded function forstandaloneMonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
String
standaloneMonthName(QLocale locale, int month, int year)
Overloaded function forstandaloneMonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.String
standaloneMonthName(QLocale locale, int month, int year, QLocale.FormatType format)
String
standaloneWeekDayName(QLocale locale, int day)
Overloaded function forstandaloneWeekDayName(io.qt.core.QLocale, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.String
standaloneWeekDayName(QLocale locale, int day, QLocale.FormatType format)
String
weekDayName(QLocale locale, int day)
Overloaded function forweekDayName(io.qt.core.QLocale, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.String
weekDayName(QLocale locale, int day, QLocale.FormatType format)
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
Unspecified
public static final int Unspecified
-
-
Constructor Details
-
Method Details
-
dateFromParts
-
dateFromParts
-
dateTimeToString
-
dayOfWeek
-
daysInMonth
Overloaded function for
daysInMonth(int, int)
withyear = Unspecified
. -
daysInMonth
-
daysInYear
-
hasYearZero
-
isDateValid
-
isGregorian
-
isLeapYear
-
isLunar
-
isLuniSolar
-
isProleptic
-
isSolar
-
isValid
-
maximumDaysInMonth
-
maximumMonthsInYear
-
minimumDaysInMonth
-
monthName
Overloaded function for
monthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
monthName
Overloaded function for
monthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
with:
year = Unspecified
format = io.qt.core.QLocale.FormatType.LongFormat
-
monthName
@QtUninvokable public final String monthName(QLocale locale, int month, int year, QLocale.FormatType format) -
monthsInYear
-
name
-
partsFromDate
-
standaloneMonthName
Overloaded function for
standaloneMonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneMonthName
Overloaded function for
standaloneMonthName(io.qt.core.QLocale, int, int, io.qt.core.QLocale.FormatType)
with:
year = Unspecified
format = io.qt.core.QLocale.FormatType.LongFormat
-
standaloneMonthName
@QtUninvokable public final String standaloneMonthName(QLocale locale, int month, int year, QLocale.FormatType format) -
standaloneWeekDayName
Overloaded function for
standaloneWeekDayName(io.qt.core.QLocale, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneWeekDayName
@QtUninvokable public final String standaloneWeekDayName(QLocale locale, int day, QLocale.FormatType format) -
weekDayName
Overloaded function for
weekDayName(io.qt.core.QLocale, int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
weekDayName
-
availableCalendars
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-