Enum DbMailFolder.SpecialType
- java.lang.Object
-
- java.lang.Enum<DbMailFolder.SpecialType>
-
- com.openindex.openestate.tool.mail.db.DbMailFolder.SpecialType
-
- All Implemented Interfaces:
Translatable
,Serializable
,Comparable<DbMailFolder.SpecialType>
- Enclosing class:
- DbMailFolder
public static enum DbMailFolder.SpecialType extends Enum<DbMailFolder.SpecialType> implements Translatable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Icon
getIcon()
Icon
getIcon(boolean disabled)
Icon
getSmallIcon()
Icon
getSmallIcon(boolean disabled)
String
getTranslation()
String
getTranslation(Locale locale)
static DbMailFolder.SpecialType
guessFromFolderName(String folderName)
String
translate()
Deprecated.static DbMailFolder.SpecialType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DbMailFolder.SpecialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.String
write()
Deprecated.
-
-
-
Enum Constant Detail
-
INBOX
public static final DbMailFolder.SpecialType INBOX
-
OUTBOX
public static final DbMailFolder.SpecialType OUTBOX
-
DRAFTS
public static final DbMailFolder.SpecialType DRAFTS
-
TEMPLATES
public static final DbMailFolder.SpecialType TEMPLATES
-
SPAM
public static final DbMailFolder.SpecialType SPAM
-
TRASH
public static final DbMailFolder.SpecialType TRASH
-
-
Method Detail
-
values
public static DbMailFolder.SpecialType[] 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 (DbMailFolder.SpecialType c : DbMailFolder.SpecialType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbMailFolder.SpecialType 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 nameNullPointerException
- if the argument is null
-
getIcon
public Icon getIcon()
-
getIcon
public Icon getIcon(boolean disabled)
-
getSmallIcon
public Icon getSmallIcon()
-
getSmallIcon
public Icon getSmallIcon(boolean disabled)
-
getTranslation
public String getTranslation()
- Specified by:
getTranslation
in interfaceTranslatable
-
getTranslation
public String getTranslation(Locale locale)
- Specified by:
getTranslation
in interfaceTranslatable
-
guessFromFolderName
public static DbMailFolder.SpecialType guessFromFolderName(String folderName)
-
translate
@Deprecated public String translate()
Deprecated.
-
write
@Deprecated public String write()
Deprecated.
-
-