com.sage.orion.sdata.servlet.swtservice
Enum PortalLanguageResources.CalendarMonthContent

java.lang.Object
  extended by java.lang.Enum<PortalLanguageResources.CalendarMonthContent>
      extended by com.sage.orion.sdata.servlet.swtservice.PortalLanguageResources.CalendarMonthContent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PortalLanguageResources.CalendarMonthContent>
Enclosing class:
PortalLanguageResources

public static enum PortalLanguageResources.CalendarMonthContent
extends java.lang.Enum<PortalLanguageResources.CalendarMonthContent>

Stores the calendar month name content used by the date box widget's calendar and UI's that display months.


Enum Constant Summary
APR
           
AUGUST
           
DEC
           
FEB
           
JAN
           
JULY
           
JUNE
           
MAR
           
MAY
           
NOV
           
OCT
           
SEPT
           
 
Method Summary
static java.lang.String getLongMonth(java.lang.String language, int month)
          Returns the long version of the specified month (where month 0 is January).
 java.lang.String getLongMonthValue(java.lang.String language)
          Returns the user-facing text for this month.
 java.lang.Integer getMonth()
          Returns the numeric representation of the month (where 0 is January) for this content
static java.lang.String getShortMonth(java.lang.String language, int month)
          Returns the short version (typically just 3 letters) of the specified month (where month 0 is January).
 java.lang.String getShortMonthValue(java.lang.String language)
          Returns the abbreviated, user-facing text for this month.
static PortalLanguageResources.CalendarMonthContent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PortalLanguageResources.CalendarMonthContent[] 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

JAN

public static final PortalLanguageResources.CalendarMonthContent JAN

FEB

public static final PortalLanguageResources.CalendarMonthContent FEB

MAR

public static final PortalLanguageResources.CalendarMonthContent MAR

APR

public static final PortalLanguageResources.CalendarMonthContent APR

MAY

public static final PortalLanguageResources.CalendarMonthContent MAY

JUNE

public static final PortalLanguageResources.CalendarMonthContent JUNE

JULY

public static final PortalLanguageResources.CalendarMonthContent JULY

AUGUST

public static final PortalLanguageResources.CalendarMonthContent AUGUST

SEPT

public static final PortalLanguageResources.CalendarMonthContent SEPT

OCT

public static final PortalLanguageResources.CalendarMonthContent OCT

NOV

public static final PortalLanguageResources.CalendarMonthContent NOV

DEC

public static final PortalLanguageResources.CalendarMonthContent DEC
Method Detail

values

public static PortalLanguageResources.CalendarMonthContent[] 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 (PortalLanguageResources.CalendarMonthContent c : PortalLanguageResources.CalendarMonthContent.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PortalLanguageResources.CalendarMonthContent valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMonth

public java.lang.Integer getMonth()
Returns the numeric representation of the month (where 0 is January) for this content

Returns:
The numeric representation of the month (where 0 is January) for this content

getShortMonthValue

public java.lang.String getShortMonthValue(java.lang.String language)
Returns the abbreviated, user-facing text for this month.

Parameters:
language - the language code of the resource, e.g. "eng"
Returns:
The abbreviated, user-facing text for this month.

getLongMonthValue

public java.lang.String getLongMonthValue(java.lang.String language)
Returns the user-facing text for this month.

Parameters:
language - the language code of the resource, e.g. "eng"
Returns:
The user-facing text for this month.

getShortMonth

public static java.lang.String getShortMonth(java.lang.String language,
                                             int month)
Returns the short version (typically just 3 letters) of the specified month (where month 0 is January).

Parameters:
language - the language code of the resource, e.g. "eng"
month - The month - where 0 is January.
Returns:
The short version (typically just 3 letters) of the specified month.

getLongMonth

public static java.lang.String getLongMonth(java.lang.String language,
                                            int month)
Returns the long version of the specified month (where month 0 is January).

Parameters:
language - the language code of the resource, e.g. "eng"
month - The month - where 0 is January.
Returns:
The short version (typically just 3 letters) of the specified month.


Copyright © 2011 Sage Software, Inc. All rights reserved.