Difference between revisions of "UtilComunicator"

From OpenKM Documentation
Jump to: navigation, search
Line 4: Line 4:
 
* String menuHTML(String imageUrl, String text)
 
* String menuHTML(String imageUrl, String text)
 
* String getTextAsBoldHTML(String text, boolean mark)
 
* String getTextAsBoldHTML(String text, boolean mark)
 +
* String getUserAgent()
  
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
// Call to refreshing user interface
+
// Call to formating some document size number ( gb, mb etc... )
 
UtilComunicator.formatSize(15);
 
UtilComunicator.formatSize(15);
 
</source>
 
</source>
  
 
[[Category: Extension Guide]]
 
[[Category: Extension Guide]]

Revision as of 15:00, 6 December 2010

Read Methods

  • String formatSize(double size)
  • String createHeaderHTML(String imageURL, String caption)
  • String menuHTML(String imageUrl, String text)
  • String getTextAsBoldHTML(String text, boolean mark)
  • String getUserAgent()

Example

// Call to formating some document size number ( gb, mb etc... ) 
UtilComunicator.formatSize(15);