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


java.lang.Object
   com.opensymphony.webwork.views.jsp.ui.AbstractRichtexteditorResult

All known Subclasses:   com.opensymphony.webwork.views.jsp.ui.RichtexteditorGetFoldersResult,  com.opensymphony.webwork.views.jsp.ui.RichtexteditorGetFoldersAndFilesResult,  com.opensymphony.webwork.views.jsp.ui.RichtexteditorFileUploadResult,  com.opensymphony.webwork.views.jsp.ui.RichtexteditorCreateFolderResult,
AbstractRichtexteditorResult
abstract public class AbstractRichtexteditorResult implements Result(Code)
Abstract result for all Rich Text Editor results. It contains common methods that might come in handy to its subclass. Configuration of result necessary in xwork.xml (is already there by default) are as follows:
 <!-- Results necessary when using 'browse server' and 'upload' feature of Richtexteditor -->
 <result-type name="richtexteditorGetFolders" 
 class="com.opensymphony.webwork.views.jsp.ui.RichtexteditorGetFoldersResult" />
 <result-type name="richtexteditorGetFoldersAndFiles" 
 class="com.opensymphony.webwork.views.jsp.ui.RichtexteditorGetFoldersAndFilesResult" />
 <result-type name="richtexteditorCreateFolder" 
 class="com.opensymphony.webwork.views.jsp.ui.RichtexteditorCreateFolderResult" />
 <result-type name="richtexteditorFileUpload" 
 class="com.opensymphony.webwork.views.jsp.ui.RichtexteditorFileUploadResult" />
 

author:
   tm_jee
version:
   $Date: 2006-03-08 21:22:35 +0100 (Wed, 08 Mar 2006) $ $Id: AbstractRichtexteditorResult.java 2338 2006-03-08 20:22:35Z rainerh $




Method Summary
protected  ElementbuildCommonResponseXml(Document document, String command, String type, String folderPath, String serverPath)
     Build a common xml structure for all xml based result.
protected  DocumentbuildDocument()
    
protected  StringgetCommand(ActionInvocation invocation)
     Get the command send by the Rich Text Editor.
protected  StringgetFolderPath(ActionInvocation invocation)
     Get the folder path send by the Rich Text Editor.
protected  StringgetServerPath(ActionInvocation invocation)
    
protected  StringgetType(ActionInvocation invocation)
     Get the type send by the Rich Text Editor.
protected  CreateFolderResultrichtexteditorCreateFolderResult(ActionInvocation invocation)
     Get the CreateFolderResult computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#createFolder(String, String, String).
protected  FileUploadResultrichtexteditorFileUploadResult(ActionInvocation invocation)
     Get the FileUploadResult computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#fileUpload(String, String, String, String, File).
protected  Folder[]richtexteditorFolders(ActionInvocation invocation)
     Get the Folder[] computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#getFolders(String, String).
protected  FoldersAndFilesrichtexteditorFoldersAndFiles(ActionInvocation invocation)
     Get the FoldersAndFiles computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#getFoldersAndFiles(String, String).
protected  StringstringFromDocument(Document document)
     Convert a Document to its string representation.
protected  voidwriteDocumentToStream(Document document, OutputStream out)
    



Method Detail
buildCommonResponseXml
protected Element buildCommonResponseXml(Document document, String command, String type, String folderPath, String serverPath)(Code)
Build a common xml structure for all xml based result. For example:
 <?xml version="1.0" encoding="utf-8" ?>
 <Connector command="RequestedCommandName" resourceType=" RequestedResourceType">
 <CurrentFolder path="CurrentFolderPath" url="CurrentFolderUrl" />
 <!-- Here goes all specific command data -->
 </Connector>
 

Parameters:
  document -
Parameters:
  command -
Parameters:
  type -
Parameters:
  folderPath -
Parameters:
  serverPath - A common xml structure for all xml based result.



buildDocument
protected Document buildDocument() throws ParserConfigurationException(Code)
Build an xml Document An XML Document
throws:
  ParserConfigurationException -



getCommand
protected String getCommand(ActionInvocation invocation)(Code)
Get the command send by the Rich Text Editor. It would be one of the followings. Only valid when rich text editor issue a server-side 'Browse' not 'Upload'.
  • GetFolders
  • GetFoldersAndFiles
  • CreateFolder
  • FileUpload

Parameters:
  invocation - The command send by the Rich Text Editor.



getFolderPath
protected String getFolderPath(ActionInvocation invocation)(Code)
Get the folder path send by the Rich Text Editor.
Parameters:
  invocation - The folder path send by the Rich Text Editor.



getServerPath
protected String getServerPath(ActionInvocation invocation)(Code)
Get the server path calculated from AbstractRichtexteditoConnector or its decendant through AbstractRichtexteditorConnector#calculate#calculateServerPath(String, String String)
Parameters:
  invocation - The server path calculated from AbstractRichtexteditoConnector
See Also:   com.opensymphony.webwork.components.AbstractRichtexteditorConnector.calculateServerPath(StringStringString)



getType
protected String getType(ActionInvocation invocation)(Code)
Get the type send by the Rich Text Editor. It could be one of the followings:
  • Image
  • File
  • Flash

Parameters:
  invocation - The type send by the Rich Text Editor.



richtexteditorCreateFolderResult
protected CreateFolderResult richtexteditorCreateFolderResult(ActionInvocation invocation)(Code)
Get the CreateFolderResult computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#createFolder(String, String, String). Only valid if it is a 'CreateFolder' command.
Parameters:
  invocation - The CreateFolderResult computed from AbstractRichtexteditorConnector
See Also:   com.opensymphony.webwork.components.AbstractRichtexteditorConnector.createFolder(StringStringString)



richtexteditorFileUploadResult
protected FileUploadResult richtexteditorFileUploadResult(ActionInvocation invocation)(Code)
Get the FileUploadResult computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#fileUpload(String, String, String, String, File). Only valid if it is a 'FileUpload' command
Parameters:
  invocation - The FileUploadResult computed from AbstractRichtexteditorConnector
See Also:   com.opensymphony.webwork.components.AbstractRichtexteditorConnector.fileUpload(StringStringStringStringjava.io.File)



richtexteditorFolders
protected Folder[] richtexteditorFolders(ActionInvocation invocation)(Code)
Get the Folder[] computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#getFolders(String, String). Only valid if it is a 'GetFolder' command.
Parameters:
  invocation - The Folder[] computed from AbstractRichtexteditorConnector
See Also:   com.opensymphony.webwork.components.AbstractRichtexteditorConnector.getFolders(StringString)



richtexteditorFoldersAndFiles
protected FoldersAndFiles richtexteditorFoldersAndFiles(ActionInvocation invocation)(Code)
Get the FoldersAndFiles computed from AbstractRichtexteditorConnector or its decendant through AbstractRichtexteditorConnector#getFoldersAndFiles(String, String). Only valid if it is a 'GetFoldersAndFiles' command.
Parameters:
  invocation - The FoldersAndFiles computed from AbstractRichtexteditorConnector
See Also:   com.opensymphony.webwork.components.AbstractRichtexteditorConnector.getFoldersAndFiles(StringString)



stringFromDocument
protected String stringFromDocument(Document document) throws TransformerConfigurationException, TransformerException(Code)
Convert a Document to its string representation.
Parameters:
  document - The documents String representation.
throws:
  TransformerConfigurationException -
throws:
  TransformerException -



writeDocumentToStream
protected void writeDocumentToStream(Document document, OutputStream out) throws TransformerConfigurationException, TransformerException(Code)
Write a Document to an OutputStream out
Parameters:
  document -
Parameters:
  out -
throws:
  TransformerConfigurationException -
throws:
  TransformerException -



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.