Java Doc for RichTextEditor.java in  » J2EE » webwork-2.2.6 » com » opensymphony » webwork » components » 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 » J2EE » webwork 2.2.6 » com.opensymphony.webwork.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.opensymphony.webwork.components.Component
      com.opensymphony.webwork.components.UIBean
         com.opensymphony.webwork.components.RichTextEditor

RichTextEditor
public class RichTextEditor extends UIBean (Code)
Create a Rich Text Editor based on FCK editor (www.fckeditor.net).

 
 <ww:richtexteditor 
 toolbarCanCollapse="false"
 width="700"
 label="Description 1" 
 name="description1" 
 value="Some Content I keyed In In The Tag Itself"
 />
 
 
It is possible to have a rich text editor do server side browsing when for example the image button is clicked. To integrate this functionality with webwork, one need to defined the following action definition typically in xwork.xml
 <package name="richtexteditor-browse" extends="webwork-default" 
 namespace="/webwork/richtexteditor/editor/filemanager/browser/default/connectors/jsp">
 <action name="connector" 
 class="com.opensymphony.webwork.components.DefaultRichtexteditorConnector" 
 method="browse">
 <result name="getFolders" type="richtexteditorGetFolders" />
 <result name="getFoldersAndFiles" type="richtexteditorGetFoldersAndFiles" />
 <result name="createFolder" type="richtexteditorCreateFolder" />
 <result name="fileUpload" type="richtexteditorFileUpload" />
 </action>
 </package>
 
By default whenever a browse command is triggered (eg. by clicking on the 'image' button and then 'browse server' button, the url '/webwork/static/richtexteditor/editor/filemanager/browser/default/browser.html?&Type=Image&Connector=connectors/jsp/connector.action'. The page browser.html which comes with FCK Editor will trigger the url '/webwork/richtexteditor/editor/filemanager/browser/default/connectors/jsp/connector.action' which will caused the webwork's DefaultRichtexteditorConnector to be executed. The trigerring url could be changed by altering the 'imageBrowseURL'. There 3 types of such related url, namely 'imageBrowseURL', 'linkBrowseURL' and 'flashBrowseURL'. It is recomended that the default one being used. One could change the Connector parameter instead. For example
 /webwork/static/richtexteditor/editor/filemanager/browser/default/browser.html?
 &Type=Image&Connector=connectors/jsp/connector.action
 
could be changed to
 /webwork/static/richtexteditor/editor/filemanager/browser/default/browser.html?
 &Type=Image&Connector=myLittlePath/myConnector.action
 
In this case the action will need to have a namespace of '/webwork/richtexteditor/editor/filemanager/browser/default/myLittlePath' and action name of 'myConnector'

By default the action method that needs to be defined in xwork.xml needs to be 'browse'. If this needs to be something else say, myBrowse, the following could be used

 public String myBrowse() {
 browse();
 }
 

It is possible for the richtexteditor to do server side uploading as well. For example when clicking on the 'Image' button and then the 'Upload' tab and then selecting a file from client local machine and the clicking 'Send it to the server'. To integrate this functionality with webwork, one need to defined the following action definition typically in xwork.xml

 <package name="richtexteditor-upload" extends="webwork-default" 
 namespace="/webwork/richtexteditor/editor/filemanager/upload">
 <action name="uploader" 
 class="com.opensymphony.webwork.components.DefaultRichtexteditorConnector" 
 method="upload">
 <result name="richtexteditorFileUpload" />
 </action>    
 </package>
 
By default whenever an upload command is triggered, a '/webwork/static/richtexteditor/editor/filemanager/upload/uploader.action?Type=Image' will be issued. This could be changed by setting the imageUploadURL attribute of the tag. When this link is issued, the webwork action will get executed. There's 3 such related upload url namely, 'imageUploadURL', 'linkUploadURL' and 'flashUploadURL'. It is recomended that the default one being used. However one could change the url, but need to include the Type parameter. For example
 /webwork/static/richtexteditor/editor/filemanager/upload/uploader.action?Type=Image
 
could be changed to
 /webwork/static/richtexteditor/editor/filemanager/upload/aDifferentUploader.action?Type=Image
 
In this case the action will need to have a namespace of '/webwork/static/richtexteditor/editor/filemanager/upload' and action name of 'aDifferentUploader' By default the action method that needs to be defined in xwork.xml needs to be 'upload'. If this needs to be something else say, myUpload, the following could be used
 public String myUpload() {
 upload();
 }
 
The webwork action that handles the server-side browsing and uploading needs to extends from AbstractRichtexteditorConnector. There are four abstract methods need to be implemented, namely

 protected abstract String calculateServerPath(String serverPath, String folderPath, 
 String type) throws Exception;
 protected abstract Folder[] getFolders(String virtualFolderPath, String type) 
 throws Exception;
 protected abstract FoldersAndFiles getFoldersAndFiles(String virtualFolderPath, 
 String type) throws Exception;
 protected abstract CreateFolderResult createFolder(String virtualFolderPath, 
 String type, String newFolderName) throws Exception;
 protected abstract FileUploadResult fileUpload(String virtualFolderPath, 
 String type, String filename, String contentType, java.io.File newFile) 
 throws Exception;
 protected abstract void unknownCommand(String command, String virtualFolderPath, 
 String type, String filename, String contentType, java.io.File newFile) 
 throws Exception;
 

author:
   tm_jee
version:
   $Date: 2006-03-18 17:28:55 +0100 (Sat, 18 Mar 2006) $ $Id: RichTextEditor.java 2468 2006-03-18 16:28:55Z rgielen $
See Also:   AbstractRichtexteditorConnector


Field Summary
final public static  StringTEMPLATE
    

Constructor Summary
public  RichTextEditor(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
    

Method Summary
protected  voidevaluateExtraParams()
    
public  StringgetAllowFlashBrowse()
    
public  StringgetAllowFlashUpload()
    
public  StringgetAllowImageBrowse()
    
public  StringgetAllowImageUpload()
    
public  StringgetAllowLinkBrowse()
    
public  StringgetAllowLinkUpload()
    
public  StringgetAutoDetectLanguage()
    
public  StringgetBaseHref()
    
public  StringgetBasePath()
    
public  StringgetCheckBrowser()
    
public  StringgetContentLangDirection()
    
public  StringgetCustomConfigurationsPath()
    
public  StringgetDebug()
    
public  StringgetDefaultLanguage()
    
protected  StringgetDefaultTemplate()
    
public  StringgetDisplayError()
    
public  StringgetEditorAreaCSS()
    
public  StringgetEnableSourceXHTML()
    
public  StringgetEnableXHTML()
    
public  StringgetFillEmptyBlocks()
    
public  StringgetFlashBrowserURL()
    
public  StringgetFlashUploadAllowedExtension()
    
public  StringgetFlashUploadDeniedExtension()
    
public  StringgetFlashUploadURL()
    
public  StringgetFontColors()
    
public  StringgetFontFormats()
    
public  StringgetFontNames()
    
public  StringgetFontSizes()
    
public  StringgetForcePasteAsPlainText()
    
public  StringgetForceSimpleAmpersand()
    
public  StringgetFormatIndentator()
    
public  StringgetFormatOutput()
    
public  StringgetFormatSource()
    
public  StringgetFullPage()
    
public  StringgetGeckoUseSPAN()
    
public  StringgetHeight()
    
public  StringgetImageBrowserURL()
    
public  StringgetImageUploadAllowedExtension()
    
public  StringgetImageUploadDeniedExtension()
    
public  StringgetImageUploadURL()
    
public  StringgetLinkBrowserURL()
    
public  StringgetLinkUploadAllowedExtension()
    
public  StringgetLinkUploadDeniedExtension()
    
public  StringgetLinkUploadURL()
    
public  StringgetPluginsPath()
    
protected  StringgetRichTextEditorJsLang()
    
public  StringgetSkinPath()
    
public  StringgetSmileyImages()
    
public  StringgetSmileyPath()
    
public  StringgetStartupFocus()
    
public  StringgetStylesXmlPath()
    
public  StringgetTabSpaces()
    
public  StringgetTemplatesXmlPath()
    
public  StringgetToolbarCanCollapse()
    
public  StringgetToolbarSet()
    
public  StringgetToolbarStartExpanded()
    
public  StringgetUseBROnCarriageReturn()
    
public  StringgetWidth()
    
public  voidsetAllowFlashBrowse(String allowFlashBrowse)
    
public  voidsetAllowFlashUpload(String allowFlashUpload)
    
public  voidsetAllowImageBrowse(String allowImageBrowse)
    
public  voidsetAllowImageUpload(String allowImageUpload)
    
public  voidsetAllowLinkBrowse(String allowLinkBrowse)
    
public  voidsetAllowLinkUpload(String allowLinkUpload)
    
public  voidsetAutoDetectLanguage(String autoDetectLanguage)
     Tells the editor to automatically detect the user language preferences to adapt its interface language.
public  voidsetBaseHref(String baseHref)
     Base URL used to resolve links (on images, links, styles, etc.).
public  voidsetBasePath(String basePath)
    
public  voidsetCheckBrowser(String checkBrowser)
    
public  voidsetContentLangDirection(String contentLangDirection)
     Sets the direction of the editor area contents.
public  voidsetCustomConfigurationsPath(String customConfigurationsPath)
     Set the path of a custom file that can override some configurations.
public  voidsetDebug(String debug)
     Enables the debug window to be shown when calling the FCKDebug.Output() function.
public  voidsetDefaultLanguage(String defaultLanguage)
     Sets the default language used for the editor's interface localization.
public  voidsetDisplayError(String displayError)
     Whether should the rich text editor display error when it fails to render etc.
public  voidsetEditorAreaCSS(String editorAreaCSS)
     Set the CSS styles file to be used in the editing area.
public  voidsetEnableSourceXHTML(String enableSourceXHTML)
    
public  voidsetEnableXHTML(String enableXHTML)
     Tells the editor to process the HTML source to XHTML on form post.
public  voidsetFillEmptyBlocks(String fillEmptyBlocks)
     Block elements (like P, DIV, H1, PRE, etc...) are forced to have content (a &nbsp;).
public  voidsetFlashBrowserURL(String flashBrowserURL)
     Sets the URL of the page called when the user clicks the 'Browse Server' button in the "Flash" dialog window.
public  voidsetFlashUploadAllowedExtension(String flashUploadAllowedExtension)
    
public  voidsetFlashUploadDeniedExtension(String flashUploadDeniedExtension)
    
public  voidsetFlashUploadURL(String flashUploadURL)
     Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the "Flash" dialog window.
public  voidsetFontColors(String fontColors)
     Sets the colors that must be shown in the colors panels (in the toolbar).
public  voidsetFontFormats(String fontFormats)
     Sets the list of formats to be shown in the "Format" toolbar command.
public  voidsetFontNames(String fontNames)
     Sets the list of fonts to be shown in the "Font" toolbar command.
public  voidsetFontSizes(String fontSizes)
     Sets the list of font sizes to be shown in the "Size" toolbar command.
public  voidsetForcePasteAsPlainText(String forcePasteAsPlainText)
    
public  voidsetForceSimpleAmpersand(String forceSimpleAmpersand)
     Forces the ampersands (&) on tags attributes to not be converted to '&amp;' This conversion is a W3C requirement for XHTML, so it is recommended to leave this option to 'false'.
public  voidsetFormatIndentator(String formatIndentator)
     Sets the characters to be used when indenting the HTML source when formatting it.
public  voidsetFormatOutput(String formatOutput)
     The output HTML generated by the editor will be processed and formatted.
public  voidsetFormatSource(String formatSource)
    
public  voidsetFullPage(String fullPage)
     Enables full page editing (from <HTML> to </HTML>).
public  voidsetGeckoUseSPAN(String geckoUseSPAN)
    
public  voidsetHeight(String height)
    
public  voidsetImageBrowserURL(String imageBrowserURL)
     Sets the URL of the page called when the user clicks the 'Browse Server' button in the 'Image' dialog window.
public  voidsetImageUploadAllowedExtension(String imageUploadAllowedExtension)
    
public  voidsetImageUploadDeniedExtension(String imageUploadDeniedExtension)
    
public  voidsetImageUploadURL(String imageUploadURL)
     Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the 'Image' dialog window.
public  voidsetLinkBrowserURL(String linkBrowserURL)
     Sets the URL of the page called when the user clicks the 'Browse Server' button in the 'Link' dialog window.
public  voidsetLinkUploadAllowedExtension(String linkUploadAllowedExtension)
    
public  voidsetLinkUploadDeniedExtension(String linkUploadDeniedExtension)
    
public  voidsetLinkUploadURL(String linkUploadURL)
     Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the 'Link' dialog window.
public  voidsetPluginsPath(String pluginsPath)
     Sets the base path used when looking for registered plugins.
public  voidsetSkinPath(String skinPath)
     Sets the path to the skin (graphical interface settings) to be used by the editor.
public  voidsetSmileyImages(String smileyImages)
    
public  voidsetSmileyPath(String smileyPath)
    
public  voidsetStartupFocus(String startupFocus)
    
public  voidsetStylesXmlPath(String stylesXmlPath)
    
public  voidsetTabSpaces(String tabSpaces)
     Set the number of spaces (&nbsp) to be inserted when the user hits the 'tab' key.
public  voidsetTemplatesXmlPath(String templatesXmlPath)
    
public  voidsetToolbarCanCollapse(String toolbarCanCollapse)
     Tells the editor that the toolbar can be Collapsed/Expanded by the user when clicking the vertical bar placed on the left of it (on the right for 'rtl' languages).
public  voidsetToolbarSet(String toolbarSet)
    
public  voidsetToolbarStartExpanded(String toolbarStartExpanded)
    
public  voidsetUseBROnCarriageReturn(String useBROnCarriageReturn)
    
public  voidsetWidth(String width)
    

Field Detail
TEMPLATE
final public static String TEMPLATE(Code)




Constructor Detail
RichTextEditor
public RichTextEditor(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)(Code)




Method Detail
evaluateExtraParams
protected void evaluateExtraParams()(Code)



getAllowFlashBrowse
public String getAllowFlashBrowse()(Code)



getAllowFlashUpload
public String getAllowFlashUpload()(Code)



getAllowImageBrowse
public String getAllowImageBrowse()(Code)



getAllowImageUpload
public String getAllowImageUpload()(Code)



getAllowLinkBrowse
public String getAllowLinkBrowse()(Code)



getAllowLinkUpload
public String getAllowLinkUpload()(Code)



getAutoDetectLanguage
public String getAutoDetectLanguage()(Code)



getBaseHref
public String getBaseHref()(Code)



getBasePath
public String getBasePath()(Code)



getCheckBrowser
public String getCheckBrowser()(Code)



getContentLangDirection
public String getContentLangDirection()(Code)



getCustomConfigurationsPath
public String getCustomConfigurationsPath()(Code)



getDebug
public String getDebug()(Code)



getDefaultLanguage
public String getDefaultLanguage()(Code)



getDefaultTemplate
protected String getDefaultTemplate()(Code)



getDisplayError
public String getDisplayError()(Code)



getEditorAreaCSS
public String getEditorAreaCSS()(Code)



getEnableSourceXHTML
public String getEnableSourceXHTML()(Code)



getEnableXHTML
public String getEnableXHTML()(Code)



getFillEmptyBlocks
public String getFillEmptyBlocks()(Code)



getFlashBrowserURL
public String getFlashBrowserURL()(Code)



getFlashUploadAllowedExtension
public String getFlashUploadAllowedExtension()(Code)



getFlashUploadDeniedExtension
public String getFlashUploadDeniedExtension()(Code)



getFlashUploadURL
public String getFlashUploadURL()(Code)



getFontColors
public String getFontColors()(Code)



getFontFormats
public String getFontFormats()(Code)



getFontNames
public String getFontNames()(Code)



getFontSizes
public String getFontSizes()(Code)



getForcePasteAsPlainText
public String getForcePasteAsPlainText()(Code)



getForceSimpleAmpersand
public String getForceSimpleAmpersand()(Code)



getFormatIndentator
public String getFormatIndentator()(Code)



getFormatOutput
public String getFormatOutput()(Code)



getFormatSource
public String getFormatSource()(Code)



getFullPage
public String getFullPage()(Code)



getGeckoUseSPAN
public String getGeckoUseSPAN()(Code)



getHeight
public String getHeight()(Code)



getImageBrowserURL
public String getImageBrowserURL()(Code)



getImageUploadAllowedExtension
public String getImageUploadAllowedExtension()(Code)



getImageUploadDeniedExtension
public String getImageUploadDeniedExtension()(Code)



getImageUploadURL
public String getImageUploadURL()(Code)



getLinkBrowserURL
public String getLinkBrowserURL()(Code)



getLinkUploadAllowedExtension
public String getLinkUploadAllowedExtension()(Code)



getLinkUploadDeniedExtension
public String getLinkUploadDeniedExtension()(Code)



getLinkUploadURL
public String getLinkUploadURL()(Code)



getPluginsPath
public String getPluginsPath()(Code)



getRichTextEditorJsLang
protected String getRichTextEditorJsLang()(Code)



getSkinPath
public String getSkinPath()(Code)



getSmileyImages
public String getSmileyImages()(Code)



getSmileyPath
public String getSmileyPath()(Code)



getStartupFocus
public String getStartupFocus()(Code)



getStylesXmlPath
public String getStylesXmlPath()(Code)



getTabSpaces
public String getTabSpaces()(Code)



getTemplatesXmlPath
public String getTemplatesXmlPath()(Code)



getToolbarCanCollapse
public String getToolbarCanCollapse()(Code)



getToolbarSet
public String getToolbarSet()(Code)



getToolbarStartExpanded
public String getToolbarStartExpanded()(Code)



getUseBROnCarriageReturn
public String getUseBROnCarriageReturn()(Code)



getWidth
public String getWidth()(Code)



setAllowFlashBrowse
public void setAllowFlashBrowse(String allowFlashBrowse)(Code)
determine if to allow flash browsing



setAllowFlashUpload
public void setAllowFlashUpload(String allowFlashUpload)(Code)
determine if to allow flash upload



setAllowImageBrowse
public void setAllowImageBrowse(String allowImageBrowse)(Code)
determine if to allow image browsing



setAllowImageUpload
public void setAllowImageUpload(String allowImageUpload)(Code)
determine if to allow image uploading



setAllowLinkBrowse
public void setAllowLinkBrowse(String allowLinkBrowse)(Code)
determine if to allow link browsing



setAllowLinkUpload
public void setAllowLinkUpload(String allowLinkUpload)(Code)
determine if to allow link uploading



setAutoDetectLanguage
public void setAutoDetectLanguage(String autoDetectLanguage)(Code)
Tells the editor to automatically detect the user language preferences to adapt its interface language. With Internet Explorer, the language configured in the Windows Control Panel is used. With Firefox, the browser language is used



setBaseHref
public void setBaseHref(String baseHref)(Code)
Base URL used to resolve links (on images, links, styles, etc.). For example, if BaseHref is set to 'http://www.fredck.com', an image that points to "/images/Logo.gif" will be interpreted by the editor as "http://www.fredck.com/images/Logo.gif", without touching the "src" attribute of the image.



setBasePath
public void setBasePath(String basePath)(Code)
Set the dir where the FCKeditor files reside on the server



setCheckBrowser
public void setCheckBrowser(String checkBrowser)(Code)
Whether the rich text editor should check for browser compatibility when rendering its toolbar



setContentLangDirection
public void setContentLangDirection(String contentLangDirection)(Code)
Sets the direction of the editor area contents. Either ltr or rtl



setCustomConfigurationsPath
public void setCustomConfigurationsPath(String customConfigurationsPath)(Code)
Set the path of a custom file that can override some configurations. It is recommended to use absolute paths (starting with /), like /myfckconfig.js.



setDebug
public void setDebug(String debug)(Code)
Enables the debug window to be shown when calling the FCKDebug.Output() function.



setDefaultLanguage
public void setDefaultLanguage(String defaultLanguage)(Code)
Sets the default language used for the editor's interface localization. The default language is used when the AutoDetectLanguage options is disabled or when the user language is not available.



setDisplayError
public void setDisplayError(String displayError)(Code)
Whether should the rich text editor display error when it fails to render etc.



setEditorAreaCSS
public void setEditorAreaCSS(String editorAreaCSS)(Code)
Set the CSS styles file to be used in the editing area. In this way you can point to a file that reflects your web site styles



setEnableSourceXHTML
public void setEnableSourceXHTML(String enableSourceXHTML)(Code)
Tells the editor to process the HTML source to XHTML when switching from WYSIWYG to Source view



setEnableXHTML
public void setEnableXHTML(String enableXHTML)(Code)
Tells the editor to process the HTML source to XHTML on form post.



setFillEmptyBlocks
public void setFillEmptyBlocks(String fillEmptyBlocks)(Code)
Block elements (like P, DIV, H1, PRE, etc...) are forced to have content (a &nbsp;). Empty blocks are "collapsed" by while browsing, so a empty <p></p> is not visible. While editing, the editor "expand" empty blocks so you can insert content inside then. Setting this option to "true" results useful to reflect the same output when browsing and editing.



setFlashBrowserURL
public void setFlashBrowserURL(String flashBrowserURL)(Code)
Sets the URL of the page called when the user clicks the 'Browse Server' button in the "Flash" dialog window. In this way, you can create your custom Flash Browser that is well integrated with your system.



setFlashUploadAllowedExtension
public void setFlashUploadAllowedExtension(String flashUploadAllowedExtension)(Code)
regexp for allowed flash upload file format



setFlashUploadDeniedExtension
public void setFlashUploadDeniedExtension(String flashUploadDeniedExtension)(Code)
regexp for deinied flash upload file format



setFlashUploadURL
public void setFlashUploadURL(String flashUploadURL)(Code)
Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the "Flash" dialog window. In this way, you can create your custom Flash Uploader that is well integrated with your system.



setFontColors
public void setFontColors(String fontColors)(Code)
Sets the colors that must be shown in the colors panels (in the toolbar).



setFontFormats
public void setFontFormats(String fontFormats)(Code)
Sets the list of formats to be shown in the "Format" toolbar command.



setFontNames
public void setFontNames(String fontNames)(Code)
Sets the list of fonts to be shown in the "Font" toolbar command.



setFontSizes
public void setFontSizes(String fontSizes)(Code)
Sets the list of font sizes to be shown in the "Size" toolbar command.



setForcePasteAsPlainText
public void setForcePasteAsPlainText(String forcePasteAsPlainText)(Code)
Converts the clipboard contents to pure text on pasting operations



setForceSimpleAmpersand
public void setForceSimpleAmpersand(String forceSimpleAmpersand)(Code)
Forces the ampersands (&) on tags attributes to not be converted to '&amp;' This conversion is a W3C requirement for XHTML, so it is recommended to leave this option to 'false'.



setFormatIndentator
public void setFormatIndentator(String formatIndentator)(Code)
Sets the characters to be used when indenting the HTML source when formatting it. Useful values are a sequence of spaces (' ') or a tab char ('\t').



setFormatOutput
public void setFormatOutput(String formatOutput)(Code)
The output HTML generated by the editor will be processed and formatted.



setFormatSource
public void setFormatSource(String formatSource)(Code)
The HTML shown by the editor, while switching from WYSIWYG to Source views, will be processed and formatted



setFullPage
public void setFullPage(String fullPage)(Code)
Enables full page editing (from <HTML> to </HTML>). It also enables the 'Page Properties' toolbar button.



setGeckoUseSPAN
public void setGeckoUseSPAN(String geckoUseSPAN)(Code)
Tells Gecko browsers to use SPAN instead of <B>, <I> and <U> for bold, italic an underline



setHeight
public void setHeight(String height)(Code)
Set the height of the rich text editor



setImageBrowserURL
public void setImageBrowserURL(String imageBrowserURL)(Code)
Sets the URL of the page called when the user clicks the 'Browse Server' button in the 'Image' dialog window. In this way, you can create your custom Image Browser that is well integrated with your system.



setImageUploadAllowedExtension
public void setImageUploadAllowedExtension(String imageUploadAllowedExtension)(Code)
regexp for allowed image upload file format



setImageUploadDeniedExtension
public void setImageUploadDeniedExtension(String imageUploadDeniedExtension)(Code)
regexp for denied image upload file format



setImageUploadURL
public void setImageUploadURL(String imageUploadURL)(Code)
Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the 'Image' dialog window. In this way, you can create your custom Image Uploader that is well integrated with your system.



setLinkBrowserURL
public void setLinkBrowserURL(String linkBrowserURL)(Code)
Sets the URL of the page called when the user clicks the 'Browse Server' button in the 'Link' dialog window. In this way, you can create your custom File Browser that is well integrated with your system.



setLinkUploadAllowedExtension
public void setLinkUploadAllowedExtension(String linkUploadAllowedExtension)(Code)
regexp for allowed link upload file format



setLinkUploadDeniedExtension
public void setLinkUploadDeniedExtension(String linkUploadDeniedExtension)(Code)
regexp for denied link upload file format



setLinkUploadURL
public void setLinkUploadURL(String linkUploadURL)(Code)
Sets the URL of the upload handler called when the user clicks the 'Send it to server' button in the 'Link' dialog window. In this way, you can create your custom Link Uploader that is well integrated with your system.



setPluginsPath
public void setPluginsPath(String pluginsPath)(Code)
Sets the base path used when looking for registered plugins.



setSkinPath
public void setSkinPath(String skinPath)(Code)
Sets the path to the skin (graphical interface settings) to be used by the editor.



setSmileyImages
public void setSmileyImages(String smileyImages)(Code)
js array of smilies files to be included



setSmileyPath
public void setSmileyPath(String smileyPath)(Code)
path where smilies are located



setStartupFocus
public void setStartupFocus(String startupFocus)(Code)
Forces the editor to get the keyboard input focus on startup (page load)



setStylesXmlPath
public void setStylesXmlPath(String stylesXmlPath)(Code)
Sets the path to the XML file that has the definitions and rules of the styles used by the 'Style' toolbar command



setTabSpaces
public void setTabSpaces(String tabSpaces)(Code)
Set the number of spaces (&nbsp) to be inserted when the user hits the 'tab' key. This is an Internet Explorer only feature. Other browsers insert spaces automatically by default.



setTemplatesXmlPath
public void setTemplatesXmlPath(String templatesXmlPath)(Code)



setToolbarCanCollapse
public void setToolbarCanCollapse(String toolbarCanCollapse)(Code)
Tells the editor that the toolbar can be Collapsed/Expanded by the user when clicking the vertical bar placed on the left of it (on the right for 'rtl' languages).



setToolbarSet
public void setToolbarSet(String toolbarSet)(Code)
Set the name of the toolbar to display



setToolbarStartExpanded
public void setToolbarStartExpanded(String toolbarStartExpanded)(Code)
Decide if the toolbar should be expanded when the rich text editor is loaded



setUseBROnCarriageReturn
public void setUseBROnCarriageReturn(String useBROnCarriageReturn)(Code)
Decide if a <br/> should be used in place of the occurence of a carriage return



setWidth
public void setWidth(String width)(Code)
set the width of the rich text editor



Fields inherited from com.opensymphony.webwork.components.UIBean
protected String accesskey(Code)(Java Doc)
protected String cssClass(Code)(Java Doc)
protected String cssStyle(Code)(Java Doc)
protected String disabled(Code)(Java Doc)
protected String label(Code)(Java Doc)
protected String labelPosition(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected String onblur(Code)(Java Doc)
protected String onchange(Code)(Java Doc)
protected String onclick(Code)(Java Doc)
protected String ondblclick(Code)(Java Doc)
protected String onfocus(Code)(Java Doc)
protected String onkeydown(Code)(Java Doc)
protected String onkeypress(Code)(Java Doc)
protected String onkeyup(Code)(Java Doc)
protected String onmousedown(Code)(Java Doc)
protected String onmousemove(Code)(Java Doc)
protected String onmouseout(Code)(Java Doc)
protected String onmouseover(Code)(Java Doc)
protected String onmouseup(Code)(Java Doc)
protected String onselect(Code)(Java Doc)
protected HttpServletRequest request(Code)(Java Doc)
protected String required(Code)(Java Doc)
protected String requiredposition(Code)(Java Doc)
protected HttpServletResponse response(Code)(Java Doc)
protected String tabindex(Code)(Java Doc)
protected String template(Code)(Java Doc)
protected String templateDir(Code)(Java Doc)
protected String templateSuffix(Code)(Java Doc)
protected String theme(Code)(Java Doc)
protected String title(Code)(Java Doc)
protected String tooltip(Code)(Java Doc)
protected String tooltipConfig(Code)(Java Doc)
protected String value(Code)(Java Doc)

Methods inherited from com.opensymphony.webwork.components.UIBean
public void addFormParameter(String key, Object value)(Code)(Java Doc)
protected Template buildTemplateName(String myTemplate, String myDefaultTemplate)(Code)(Java Doc)
protected void enableAncestorFormCustomOnsubmit()(Code)(Java Doc)
public boolean end(Writer writer, String body)(Code)(Java Doc)
protected String escape(String name)(Code)(Java Doc)
protected void evaluateExtraParams()(Code)(Java Doc)
protected boolean evaluateNameValue()(Code)(Java Doc)
public void evaluateParams()(Code)(Java Doc)
abstract protected String getDefaultTemplate()(Code)(Java Doc)
public String getTemplate()(Code)(Java Doc)
public String getTemplateDir()(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
protected Map getTooltipConfig(UIBean component)(Code)(Java Doc)
protected Class getValueClassType()(Code)(Java Doc)
protected void mergeTemplate(Writer writer, Template template) throws Exception(Code)(Java Doc)
protected void populateComponentHtmlId(Form form)(Code)(Java Doc)
public void setAccesskey(String accesskey)(Code)(Java Doc)
public void setCssClass(String cssClass)(Code)(Java Doc)
public void setCssStyle(String cssStyle)(Code)(Java Doc)
public void setDisabled(String disabled)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
public void setLabelPosition(String labelPosition)(Code)(Java Doc)
public void setLabelposition(String labelPosition)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setOnblur(String onblur)(Code)(Java Doc)
public void setOnchange(String onchange)(Code)(Java Doc)
public void setOnclick(String onclick)(Code)(Java Doc)
public void setOndblclick(String ondblclick)(Code)(Java Doc)
public void setOnfocus(String onfocus)(Code)(Java Doc)
public void setOnkeydown(String onkeydown)(Code)(Java Doc)
public void setOnkeypress(String onkeypress)(Code)(Java Doc)
public void setOnkeyup(String onkeyup)(Code)(Java Doc)
public void setOnmousedown(String onmousedown)(Code)(Java Doc)
public void setOnmousemove(String onmousemove)(Code)(Java Doc)
public void setOnmouseout(String onmouseout)(Code)(Java Doc)
public void setOnmouseover(String onmouseover)(Code)(Java Doc)
public void setOnmouseup(String onmouseup)(Code)(Java Doc)
public void setOnselect(String onselect)(Code)(Java Doc)
public void setRequired(String required)(Code)(Java Doc)
public void setRequiredposition(String requiredposition)(Code)(Java Doc)
public void setTabindex(String tabindex)(Code)(Java Doc)
public void setTemplate(String template)(Code)(Java Doc)
public void setTemplateDir(String templateDir)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setTooltip(String tooltip)(Code)(Java Doc)
public void setTooltipConfig(String tooltipConfig)(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)

Fields inherited from com.opensymphony.webwork.components.Component
final public static String COMPONENT_STACK(Code)(Java Doc)
protected String id(Code)(Java Doc)
protected Map parameters(Code)(Java Doc)
protected OgnlValueStack stack(Code)(Java Doc)

Methods inherited from com.opensymphony.webwork.components.Component
public void addAllParameters(Map params)(Code)(Java Doc)
public void addParameter(String key, Object value)(Code)(Java Doc)
public boolean altSyntax()(Code)(Java Doc)
public void copyParams(Map params)(Code)(Java Doc)
protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc)
protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc)
public boolean end(Writer writer, String body)(Code)(Java Doc)
protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc)
protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc)
protected Component findAncestor(Class clazz)(Code)(Java Doc)
protected String findString(String expr)(Code)(Java Doc)
protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc)
protected Object findValue(String expr)(Code)(Java Doc)
protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc)
protected Object findValue(String expr, Class toType)(Code)(Java Doc)
public Stack getComponentStack()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public Map getParameters()(Code)(Java Doc)
public OgnlValueStack getStack()(Code)(Java Doc)
protected void popComponentStack()(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public boolean start(Writer writer)(Code)(Java Doc)
protected String toString(Throwable t)(Code)(Java Doc)
public boolean usesBody()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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