Class Month
java.lang.Object
com.independentsoft.office.odf.styles.Month
Represents a month in a date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the calendar system used to extract parts of a date.Gets the display format.booleanSpecifies whether the month is displayed as a noun or using the possessive form.booleanSpecifies whether the name or number of a month is displayed in the month element of a date.voidsetCalendar(String calendar)Sets the calendar system used to extract parts of a date.voidsetDisplayFormat(DisplayFormat format)Sets the display format.voidsetPossessiveForm(boolean isPossessiveForm)Specifies whether the month is displayed as a noun or using the possessive form.voidsetTextual(boolean isTextual)Specifies whether the name or number of a month is displayed in the month element of a date.toString()Converts the value of the current Month object to its equivalent string representation.
-
Constructor Details
-
Month
public Month()Initializes a new instance of the Month class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Month object to its equivalent string representation. -
getDisplayFormat
Gets the display format.- Returns:
- the display format
-
setDisplayFormat
Sets the display format.- Parameters:
format- the new display format
-
getCalendar
Gets the calendar system used to extract parts of a date.- Returns:
- the calendar
-
setCalendar
Sets the calendar system used to extract parts of a date.- Parameters:
calendar- the new calendar
-
isTextual
public boolean isTextual()Specifies whether the name or number of a month is displayed in the month element of a date.- Returns:
- true, if is textual
-
setTextual
public void setTextual(boolean isTextual)Specifies whether the name or number of a month is displayed in the month element of a date.- Parameters:
isTextual- the new textual
-
isPossessiveForm
public boolean isPossessiveForm()Specifies whether the month is displayed as a noun or using the possessive form.- Returns:
- true, if is possessive form
-
setPossessiveForm
public void setPossessiveForm(boolean isPossessiveForm)Specifies whether the month is displayed as a noun or using the possessive form.- Parameters:
isPossessiveForm- the new possessive form
-