Java Doc for JwmaHtmlHelper.java in  » Web-Mail » Jwma » dtw » webmail » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » Jwma » dtw.webmail.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


dtw.webmail.model.JwmaHtmlHelper

All known Subclasses:   dtw.webmail.model.JwmaHtmlHelperImpl,
JwmaHtmlHelper
public interface JwmaHtmlHelper (Code)
An interface defining the contract for interaction with the JwmaHtmlHelper model.

The JwmaHtmlHelper helps a view programmer constructing certain reuseable HTML elements on one hand, and to obtain information important for views on the other hand (i.e. the controller URL).
author:
   Dieter Wimberger
version:
   0.9.7 07/02/2003





Method Summary
public  StringdisplayPartInlined(HttpSession session, JwmaMessagePart part, JwmaPreferences prefs, ResourceBundle viewcontent)
     Returns a String representing a HTML tag for embedding the message parts into the view.

This routine constructs an inline view of all given message parts in HTML.

public  StringgetAlphabeticFilter(JwmaContacts contacts, ResourceBundle viewcontent)
     Returns a String representing a HTML list of all first characters of the contact's lastnames. The selected character will be used for the filter, as well as displayed non-selectable; an option to remove the filter is appended (ALL).
Parameters:
  contacts - the actual session's contact database asJwmaContacts.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings.
public  StringgetCategoriesSelect(JwmaContact ct, String[] categories, ResourceBundle viewcontent)
     Returns a String representing a category select in HTML.

This routine constructs a select with all given categories for the view programmer, and is supposed to be used for selecting a (user defined) category for a contact.
If the user did not define any category, the select will only have the new category option.
Parameters:
  contact - the JwmaContact instance.
Parameters:
  categories - the categories to be listed as options.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings.

public  StringgetCategoryFilterSelect(JwmaContacts ctdb, String eventhandler, ResourceBundle viewcontent)
     Returns a String representing a category filter select in HTML.

This routine constructs a select with all used categories.

Parameters:
  contacts - the actual session's contact database asJwmaContacts.
Parameters:
  eventhandler - added to the select.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings.

public  StringgetContactsControllerUrl()
     Returns a String representing the URL of the ContactsController.
public  StringgetControllerUrl()
     Returns a String representing the URL of the main controller.
public  StringgetDateFormatSelect(JwmaPreferences prefs)
     Returns a String representing a DateFormat select in HTML.

This routine constructs a select with date format patterns, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences.

public  StringgetDestinationsSelect(JwmaFolder[] folders)
     Returns a JwmaFolder[]containing a destination select in HTML.

This routine constructs a select with all given paths for the view programmer, and is supposed to be used for selecting a destination for certain folder, mailbox or message move operations.
Lists of paths of move targets can be obtained from JwmaStoreInfo.
Parameters:
  folders - a JwmaFolder[] to be used asoptions for the select.

public  StringgetFolderDisplayAction(JwmaFolder folder)
     Returns a String representing the installation specific reference URL for displaying the given folder.

The String will not include the anchor tag, but represent the href attribute value.
This method is supposed to help making views more portable and simple to write.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action.

public  StringgetFolderDisplayAction(JwmaInboxInfo info)
     Convenience method returning the URL for displaying the inbox folder.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action.
public  StringgetFolderDisplayAction(JwmaTrashInfo info)
     Convenience method returning the URL for displaying the trash folder.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action.
public  StringgetFrequentSelect(JwmaContacts contacts, String eventhandler)
     Returns a String representing a frequent recipient select in HTML.

This routine constructs a select with all given frequent recipient nicks for the view programmer, and is supposed to be used for selecting a frequent recipient very quick.

Parameters:
  contacts - the JwmaContacts instance.
Parameters:
  eventhandler - added to the select.

public  StringgetGroupMembersSelect(JwmaContactGroup group)
     Returns a String representing a group members select in HTML.

This routine constructs a select with all contacts which are in the given contact group.
Parameters:
  group - the JwmaContactGroup instance.

public  StringgetLanguageSelect(JwmaPreferences prefs)
     Returns a String representing a proper language select in HTML.

This routine constructs a select with all available languages.

Parameters:
  prefs - the users preferences as JwmaPreferences.

public  StringgetMailIdentitySelect(JwmaPreferences prefs)
     Returns a String representing a MailIdentity select in HTML.

This routine constructs a select with the users available mail identities, the default selected.

Parameters:
  prefs - the users preferences as JwmaPreferences.

public  StringgetMessageProcessorSelect(JwmaPreferences prefs)
     Returns a String representing a MessageProcessor select in HTML.

This routine constructs a select with the available message processors, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences.

public  StringgetNonMembersSelect(JwmaContactGroup group, JwmaContacts ctdb)
     Returns a String representing a non group members select in HTML.

This routine constructs a select with all contacts which are not in the given contact group.
Parameters:
  group - the JwmaContactGroup instance.
Parameters:
  ctdb - the contact database.

public  StringgetPartDescription(JwmaMessagePart part, ResourceBundle viewcontent)
     Returns a String representing a message part description in HTML.

This routine constructs a description with all given information about the part for the view programmer, and is supposed to simplify writing a view.
Parameters:
  part - the part to be described in HTML.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings.

public  StringgetPathHierarchyNavigator(JwmaStoreInfo storeinfo, JwmaFolder folder)
     Returns a String representing a path navigator in HTML.

This routine allows to navigate a more complex folder tree very fast and efficient.

public  StringgetPostOfficeSelect(String postoffice)
     Returns a selection of configured post offices.
public  StringgetRandomAppendTypesSelect(JwmaPreferences prefs, JwmaMailIdentity mid)
     Returns a String representing a random append types select in HTML.

This routine constructs a select with the available random append types, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences.
Parameters:
  mid - a JwmaMailIdentity instance.

public  StringgetSendMailControllerUrl()
     Returns a String representing the URL of the SendMailController.
public  StringgetSizeString(int size)
     Returns a String representing the size in human readable form.
Parameters:
  size - the size (in bytes) to be described inhuman readable form.
public  StringgetSortCriteriaSelect(JwmaPreferences prefs, String eventhandler, ResourceBundle viewcontent)
     Returns a String representing a proper sorting criteria select in HTML.

This routine constructs a select with all available message sorting criterias.

Parameters:
  prefs - the users preferences as JwmaPreferences.
Parameters:
  eventhandler - added to the select.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings.




Method Detail
displayPartInlined
public String displayPartInlined(HttpSession session, JwmaMessagePart part, JwmaPreferences prefs, ResourceBundle viewcontent)(Code)
Returns a String representing a HTML tag for embedding the message parts into the view.

This routine constructs an inline view of all given message parts in HTML. Unknown content types will be output in form of a description, others inlined by adding a proper HTML tag.
Parameters:
  session - the session to store possible contact import.
Parameters:
  parts - the parts to be inlined as inlining HTML.
Parameters:
  prefs - the user's preferences.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. a HTML document part inlining the parts as String.
See Also:   JwmaHtmlHelper.getPartDescription(JwmaMessagePart part,ResourceBundle viewcontent)
See Also:   dtw.webmail.model.JwmaMessagePart




getAlphabeticFilter
public String getAlphabeticFilter(JwmaContacts contacts, ResourceBundle viewcontent)(Code)
Returns a String representing a HTML list of all first characters of the contact's lastnames. The selected character will be used for the filter, as well as displayed non-selectable; an option to remove the filter is appended (ALL).
Parameters:
  contacts - the actual session's contact database asJwmaContacts.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. the filter list as String (HTML).



getCategoriesSelect
public String getCategoriesSelect(JwmaContact ct, String[] categories, ResourceBundle viewcontent)(Code)
Returns a String representing a category select in HTML.

This routine constructs a select with all given categories for the view programmer, and is supposed to be used for selecting a (user defined) category for a contact.
If the user did not define any category, the select will only have the new category option.
Parameters:
  contact - the JwmaContact instance.
Parameters:
  categories - the categories to be listed as options.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. a categories select (HTML) as String.
See Also:   dtw.webmail.model.JwmaContacts




getCategoryFilterSelect
public String getCategoryFilterSelect(JwmaContacts ctdb, String eventhandler, ResourceBundle viewcontent)(Code)
Returns a String representing a category filter select in HTML.

This routine constructs a select with all used categories.

Parameters:
  contacts - the actual session's contact database asJwmaContacts.
Parameters:
  eventhandler - added to the select.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. a sorting criteria select (HTML) as String.




getContactsControllerUrl
public String getContactsControllerUrl()(Code)
Returns a String representing the URL of the ContactsController.

The URL is installation specific, this helper method allows to make views more "portable". the URL of the ContactsController as String.




getControllerUrl
public String getControllerUrl()(Code)
Returns a String representing the URL of the main controller.

The URL is installation specific, this helper method allows to make views more "portable". the URL of the main controller as String.




getDateFormatSelect
public String getDateFormatSelect(JwmaPreferences prefs)(Code)
Returns a String representing a DateFormat select in HTML.

This routine constructs a select with date format patterns, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences. a date format select (HTML) as String.




getDestinationsSelect
public String getDestinationsSelect(JwmaFolder[] folders)(Code)
Returns a JwmaFolder[]containing a destination select in HTML.

This routine constructs a select with all given paths for the view programmer, and is supposed to be used for selecting a destination for certain folder, mailbox or message move operations.
Lists of paths of move targets can be obtained from JwmaStoreInfo.
Parameters:
  folders - a JwmaFolder[] to be used asoptions for the select. a destinations select (HTML) as String.
See Also:   dtw.webmail.model.JwmaFolder
See Also:   dtw.webmail.model.JwmaStoreInfo.listFolderMoveTargets
See Also:   dtw.webmail.model.JwmaStoreInfo.listMessageMoveTargets




getFolderDisplayAction
public String getFolderDisplayAction(JwmaFolder folder)(Code)
Returns a String representing the installation specific reference URL for displaying the given folder.

The String will not include the anchor tag, but represent the href attribute value.
This method is supposed to help making views more portable and simple to write.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action. the URL for displaying the folder as String.
See Also:   dtw.webmail.model.JwmaFolder




getFolderDisplayAction
public String getFolderDisplayAction(JwmaInboxInfo info)(Code)
Convenience method returning the URL for displaying the inbox folder.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action. the URL for displaying the folder as String.
See Also:   JwmaHtmlHelper.getFolderDisplayAction(JwmaFolder)
See Also:   dtw.webmail.model.JwmaInboxInfo



getFolderDisplayAction
public String getFolderDisplayAction(JwmaTrashInfo info)(Code)
Convenience method returning the URL for displaying the trash folder.
Parameters:
  folder - the JwmaFolder to be used for thedisplay action. the URL for displaying the folder as String.
See Also:   JwmaHtmlHelper.getFolderDisplayAction(JwmaFolder)
See Also:   dtw.webmail.model.JwmaInboxInfo



getFrequentSelect
public String getFrequentSelect(JwmaContacts contacts, String eventhandler)(Code)
Returns a String representing a frequent recipient select in HTML.

This routine constructs a select with all given frequent recipient nicks for the view programmer, and is supposed to be used for selecting a frequent recipient very quick.

Parameters:
  contacts - the JwmaContacts instance.
Parameters:
  eventhandler - added to the select. a frequent recipient select (HTML) as String.
See Also:   dtw.webmail.model.JwmaContacts




getGroupMembersSelect
public String getGroupMembersSelect(JwmaContactGroup group)(Code)
Returns a String representing a group members select in HTML.

This routine constructs a select with all contacts which are in the given contact group.
Parameters:
  group - the JwmaContactGroup instance. a group members select (HTML) as String.
See Also:   dtw.webmail.model.JwmaContactGroup




getLanguageSelect
public String getLanguageSelect(JwmaPreferences prefs)(Code)
Returns a String representing a proper language select in HTML.

This routine constructs a select with all available languages.

Parameters:
  prefs - the users preferences as JwmaPreferences. a language select (HTML) as String.




getMailIdentitySelect
public String getMailIdentitySelect(JwmaPreferences prefs)(Code)
Returns a String representing a MailIdentity select in HTML.

This routine constructs a select with the users available mail identities, the default selected.

Parameters:
  prefs - the users preferences as JwmaPreferences. a mail identity select (HTML) as String.




getMessageProcessorSelect
public String getMessageProcessorSelect(JwmaPreferences prefs)(Code)
Returns a String representing a MessageProcessor select in HTML.

This routine constructs a select with the available message processors, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences. a message processor select (HTML) as String.




getNonMembersSelect
public String getNonMembersSelect(JwmaContactGroup group, JwmaContacts ctdb)(Code)
Returns a String representing a non group members select in HTML.

This routine constructs a select with all contacts which are not in the given contact group.
Parameters:
  group - the JwmaContactGroup instance.
Parameters:
  ctdb - the contact database. a non members contact select (HTML) as String.
See Also:   dtw.webmail.model.JwmaContactGroup
See Also:   dtw.webmail.model.JwmaContacts




getPartDescription
public String getPartDescription(JwmaMessagePart part, ResourceBundle viewcontent)(Code)
Returns a String representing a message part description in HTML.

This routine constructs a description with all given information about the part for the view programmer, and is supposed to simplify writing a view.
Parameters:
  part - the part to be described in HTML.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. a message part description (HTML) as String.
See Also:   dtw.webmail.model.JwmaMessagePart




getPathHierarchyNavigator
public String getPathHierarchyNavigator(JwmaStoreInfo storeinfo, JwmaFolder folder)(Code)
Returns a String representing a path navigator in HTML.

This routine allows to navigate a more complex folder tree very fast and efficient. It handles the path using the actual folder separator char.
Parameters:
  storeinfo - a reference to the actual store info instance.
Parameters:
  path - the path to be translated into a navigator. a path navigator (HTML) as String.




getPostOfficeSelect
public String getPostOfficeSelect(String postoffice)(Code)
Returns a selection of configured post offices.

This routine constructs a select with all given post office names for the view programmer, and is supposed to be used for selecting a post office on login. a post offices select (HTML) as String.
See Also:   dtw.webmail.util.config.JwmaConfiguration
See Also:   dtw.webmail.util.config.PostOffice




getRandomAppendTypesSelect
public String getRandomAppendTypesSelect(JwmaPreferences prefs, JwmaMailIdentity mid)(Code)
Returns a String representing a random append types select in HTML.

This routine constructs a select with the available random append types, with the user's one selected.

Parameters:
  prefs - the users preferences as JwmaPreferences.
Parameters:
  mid - a JwmaMailIdentity instance. a random append type select (HTML) as String.




getSendMailControllerUrl
public String getSendMailControllerUrl()(Code)
Returns a String representing the URL of the SendMailController.

The URL is installation specific, this helper method allows to make views more "portable". the URL of the SendMailController as String.




getSizeString
public String getSizeString(int size)(Code)
Returns a String representing the size in human readable form.
Parameters:
  size - the size (in bytes) to be described inhuman readable form. the human readable size as String.



getSortCriteriaSelect
public String getSortCriteriaSelect(JwmaPreferences prefs, String eventhandler, ResourceBundle viewcontent)(Code)
Returns a String representing a proper sorting criteria select in HTML.

This routine constructs a select with all available message sorting criterias.

Parameters:
  prefs - the users preferences as JwmaPreferences.
Parameters:
  eventhandler - added to the select.
Parameters:
  viewcontent - the ResourceBundle containing thelocalized view content strings. a sorting criteria select (HTML) as String.




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.