it.amattioli.encapsulate.browsers
Enum CalendarBrowser.IntervalType
java.lang.Object
java.lang.Enum<CalendarBrowser.IntervalType>
it.amattioli.encapsulate.browsers.CalendarBrowser.IntervalType
- All Implemented Interfaces:
- it.amattioli.dominate.Described, Serializable, Comparable<CalendarBrowser.IntervalType>
- Enclosing interface:
- CalendarBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>
public static enum CalendarBrowser.IntervalType
- extends Enum<CalendarBrowser.IntervalType>
- implements it.amattioli.dominate.Described
HOUR
public static final CalendarBrowser.IntervalType HOUR
QUARTER_OF_DAY
public static final CalendarBrowser.IntervalType QUARTER_OF_DAY
DAY
public static final CalendarBrowser.IntervalType DAY
WEEK
public static final CalendarBrowser.IntervalType WEEK
MONTH
public static final CalendarBrowser.IntervalType MONTH
values
public static CalendarBrowser.IntervalType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CalendarBrowser.IntervalType c : CalendarBrowser.IntervalType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CalendarBrowser.IntervalType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getDescription
public String getDescription()
- Specified by:
getDescription in interface it.amattioli.dominate.Described
fromDate
public ConventionalTimeInterval fromDate(Date d)
fromInterval
public ConventionalTimeInterval fromInterval(TimeInterval i)
hasPrevious
public boolean hasPrevious()
previous
public CalendarBrowser.IntervalType previous()
Copyright © 2011. All Rights Reserved.