- All Implemented Interfaces:
ElementWriter
Creates a new contact.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.Element
Element.Body<E extends Element>, Element.PageContextBody<E extends Element>, Element.PageContextNoElementBody
-
Field Summary
Fields inherited from class com.semanticcms.core.servlet.Element
element, request, response, servletContext
-
Constructor Summary
ConstructorsConstructorDescriptionContact()
Creates a new contact in the current page context.Creates a new contact in the current page context.Contact
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) Creates a new contact.Contact
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Contact element) Creates a new contact. -
Method Summary
Modifier and TypeMethodDescriptiondepartment
(String department) protected void
doBody
(CaptureLevel captureLevel, Element.Body<? super Contact> body) phoneNumber
(PhoneNumber phoneNumber) Sets the CSS style.void
writeTo
(Writer out, ElementContext context)
-
Constructor Details
-
Contact
public Contact(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Contact element) Creates a new contact. -
Contact
public Contact(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) Creates a new contact. -
Contact
Creates a new contact in the current page context.- See Also:
-
Contact
public Contact()Creates a new contact in the current page context.- See Also:
-
-
Method Details
-
id
-
style
Sets the CSS style.- Returns:
this
-
title
- Returns:
this
-
first
- Returns:
this
-
middle
- Returns:
this
-
nick
- Returns:
this
-
last
- Returns:
this
-
maiden
- Returns:
this
-
suffix
- Returns:
this
-
company
- Returns:
this
-
department
- Returns:
this
-
jobTitle
- Returns:
this
-
email
- Returns:
this
-
phoneNumber
- Returns:
this
-
im
- Returns:
this
-
webPage
- Returns:
this
-
address
- Returns:
this
-
doBody
protected void doBody(CaptureLevel captureLevel, Element.Body<? super Contact> body) throws ServletException, IOException, SkipPageException - Overrides:
doBody
in classElement<Contact>
- Throws:
ServletException
IOException
SkipPageException
-
writeTo
public void writeTo(Writer out, ElementContext context) throws IOException, ServletException, SkipPageException
-