it.amattioli.encapsulate.browsers
Enum CalendarBrowser.IntervalType

Show UML class diagram
java.lang.Object
  extended by java.lang.Enum<CalendarBrowser.IntervalType>
      extended by 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


Enum Constant Summary
DAY
           
HOUR
           
MONTH
           
QUARTER_OF_DAY
           
WEEK
           
 
Method Summary
 ConventionalTimeInterval fromDate(Date d)
           
 ConventionalTimeInterval fromInterval(TimeInterval i)
           
 String getDescription()
           
 boolean hasPrevious()
           
 CalendarBrowser.IntervalType previous()
           
static CalendarBrowser.IntervalType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CalendarBrowser.IntervalType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.