public enum Field extends Enum<Field>
The Field enum represents common email message fields in the GroupDocs.Viewer component. It provides a set of predefined fields that can be used to identify and access specific information in email messages, such as the sender, recipient, subject, and more.
For details, see the documentation.
Example usage:
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources();
EmailOptions emailOptions = htmlViewOptions.getEmailOptions();
emailOptions.getFieldTextMap().put(Field.FROM, "Sender");
try (Viewer viewer = new Viewer("document.docx")) {
viewer.view(htmlViewOptions);
// Use the viewer object for further operations
}
HtmlViewOptions,
EmailOptions,
Viewer| Enum Constant and Description |
|---|
ANNIVERSARY
Represents the "Anniversary" field.
|
ATTACHMENTS
Represents the "Attachments" field.
|
BCC
Represents the "Bcc" field.
|
BIRTHDAY
Represents the "Birthday" field.
|
BUSINESS
Represents the "Business" field.
|
BUSINESS_ADDRESS
Represents the "Business Address" field.
|
BUSINESS_FAX
Represents the "Business Fax" field.
|
BUSINESS_HOMEPAGE
Represents the "BusinessHomepage" field.
|
CC
Represents the "Cc" field.
|
COMPANY
Represents the "Company" field.
|
DEPARTMENT
Represents the "Department" field.
|
EMAIL
Represents the "Email" field.
|
EMAIL_2
Represents the "Email2" field.
|
EMAIL_2_DISPLAY_AS
Represents the "Email2 Display As" field.
|
EMAIL_3
Represents the "Email3" field.
|
EMAIL_3_DISPLAY_AS
Represents the "Email3 Display As" field.
|
EMAIL_DISPLAY_AS
Represents the "Email Display As" field.
|
END
Represents the "End" field.
|
FIRST_NAME
Represents the "First Name" field.
|
FROM
Represents the "From" field.
|
FULL_NAME
Represents the "Full Name" field.
|
GENDER
Represents the "Gender" field.
|
HOBBIES
Represents the "Hobbies" field.
|
HOME
Represents the "Home" field.
|
HOME_ADDRESS
Represents the "Home Address" field.
|
IMPORTANCE
Represents the "Importance" field.
|
JOB_TITLE
Represents the "Job Title" field.
|
LAST_NAME
Represents the "Last Name" field.
|
LOCATION
Represents the "Location" field.
|
MIDDLE_NAME
Represents the "Middle Name" field.
|
MOBILE
Represents the "Mobile" field.
|
ORGANIZER
Represents the "Organizer" field.
|
OTHER_ADDRESS
Represents the "Other Address" field.
|
PERSONAL_HOMEPAGE
Represents the "Personal Homepage" field.
|
PROFESSION
Represents the "Profession" field.
|
RECURRENCE
Represents the "Recurrence" field.
|
RECURRENCE_PATTERN
Represents the "Recurrence Pattern" field.
|
REQUIRED_ATTENDEES
Represents the "Required Attendees" field.
|
SENT
Represents the "Sent" field.
|
SHOW_TIME_AS
Represents the "Show Time As" field.
|
SPOUSE_PARTNER
Represents the "Spouse/Partner" field.
|
START
Represents the "Start" field.
|
SUBJECT
Represents the "Subject" field.
|
TO
Represents the "To" field.
|
USER_FIELD_1
Represents the "User Field 1" field.
|
USER_FIELD_2
Represents the "User Field 2" field.
|
USER_FIELD_3
Represents the "User Field 3" field.
|
USER_FIELD_4
Represents the "User Field 4" field.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Field name.
|
String |
toString()
Returns a string that represents the current object.
|
static Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field ANNIVERSARY
Represents the "Anniversary" field.
public static final Field ATTACHMENTS
Represents the "Attachments" field.
public static final Field BCC
Represents the "Bcc" field.
public static final Field BIRTHDAY
Represents the "Birthday" field.
public static final Field BUSINESS
Represents the "Business" field.
public static final Field BUSINESS_ADDRESS
Represents the "Business Address" field.
public static final Field BUSINESS_FAX
Represents the "Business Fax" field.
public static final Field BUSINESS_HOMEPAGE
Represents the "BusinessHomepage" field.
public static final Field CC
Represents the "Cc" field.
public static final Field COMPANY
Represents the "Company" field.
public static final Field DEPARTMENT
Represents the "Department" field.
public static final Field EMAIL
Represents the "Email" field.
public static final Field EMAIL_2
Represents the "Email2" field.
public static final Field EMAIL_2_DISPLAY_AS
Represents the "Email2 Display As" field.
public static final Field EMAIL_3
Represents the "Email3" field.
public static final Field EMAIL_3_DISPLAY_AS
Represents the "Email3 Display As" field.
public static final Field EMAIL_DISPLAY_AS
Represents the "Email Display As" field.
public static final Field END
Represents the "End" field.
public static final Field FIRST_NAME
Represents the "First Name" field.
public static final Field FROM
Represents the "From" field.
public static final Field FULL_NAME
Represents the "Full Name" field.
public static final Field GENDER
Represents the "Gender" field.
public static final Field HOBBIES
Represents the "Hobbies" field.
public static final Field HOME
Represents the "Home" field.
public static final Field HOME_ADDRESS
Represents the "Home Address" field.
public static final Field IMPORTANCE
Represents the "Importance" field.
public static final Field JOB_TITLE
Represents the "Job Title" field.
public static final Field LAST_NAME
Represents the "Last Name" field.
public static final Field LOCATION
Represents the "Location" field.
public static final Field MIDDLE_NAME
Represents the "Middle Name" field.
public static final Field MOBILE
Represents the "Mobile" field.
public static final Field ORGANIZER
Represents the "Organizer" field.
public static final Field OTHER_ADDRESS
Represents the "Other Address" field.
public static final Field PERSONAL_HOMEPAGE
Represents the "Personal Homepage" field.
public static final Field PROFESSION
Represents the "Profession" field.
public static final Field RECURRENCE
Represents the "Recurrence" field.
public static final Field RECURRENCE_PATTERN
Represents the "Recurrence Pattern" field.
public static final Field REQUIRED_ATTENDEES
Represents the "Required Attendees" field.
public static final Field SENT
Represents the "Sent" field.
public static final Field SHOW_TIME_AS
Represents the "Show Time As" field.
public static final Field SPOUSE_PARTNER
Represents the "Spouse/Partner" field.
public static final Field START
Represents the "Start" field.
public static final Field SUBJECT
Represents the "Subject" field.
public static final Field TO
Represents the "To" field.
public static final Field USER_FIELD_1
Represents the "User Field 1" field.
public static final Field USER_FIELD_2
Represents the "User Field 2" field.
public static final Field USER_FIELD_3
Represents the "User Field 3" field.
public static final Field USER_FIELD_4
Represents the "User Field 4" field.
public final String getName()
Field name.
This method retrieves the name of the field.
public String toString()
Returns a string that represents the current object.
public static Field valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Field[] values()
for (Field c : Field.values()) System.out.println(c);
Copyright © 2024. All rights reserved.