Java Doc for InSyncService.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » api » insync » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.api.insync 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.api.insync.InSyncService

All known Subclasses:   org.netbeans.modules.visualweb.insync.InSyncServiceProvider,  org.netbeans.modules.visualweb.insync.UndoEvent,
InSyncService
abstract public class InSyncService (Code)

This abstract class exposes services the InSync Source modeller can perform. The InSync implementation will register an implementation of this interface in the system file system, so using org.openide.util.Lookup on InSyncService.class you'll get an instance you can call these methods on.


author:
   Eric Arseneau

Inner Class :public interface RaveErrorHandler
Inner Class :public interface WriteLock


Constructor Summary
public  InSyncService()
    

Method Summary
abstract public  voidaddLocalStyleValueForElement(Element element, int style, String value)
    
abstract public  voidappendParsedString(Document doc, Node node, String xhtml, MarkupDesignBean bean)
    
abstract public  StringcomputeFileName(Object location)
     Given a general location object provided from the CSS parser, compute the correct file name to use.
abstract public  intcomputeLine(Document document, Element element)
    
abstract public  intcomputeLineNumber(Object location, int line)
    
abstract public  voidcopied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)
     This is a hack until we get things done correctly with integration of Retouche. Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject. Go through and rename the EL expression references to the original page name to the new page name. This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way that prevent us from creating a simple fix that will yield the same results.
abstract public  voidcopyMarkupDesignBeanForElement(Element fromElement, Element toElement)
    
abstract public  voidcopyMarkupMouseRegionForElement(Element fromElement, Element toElement)
    
abstract public  voiddoOutsideOfRefactoringSession(Runnable runnable)
     Execute the runnable outside of a refactoring Session, this allows most of the refactoring processing to have occured by the time this runnable will get run.
abstract public  StringexpandHtmlEntities(String html, boolean warn, Node node)
    
abstract public  StringfromURL(String url)
     Convert the given URL to a path: decode spaces from %20's, etc.
abstract public  StringgetBeanNameForJsp(FileObject fileObject)
    
abstract public  ClassLoadergetContextClassLoader(DesignContext designContext)
    
abstract public  ClassLoadergetContextClassLoader(DesignBean designBean)
    
abstract public  ClassLoadergetContextClassLoader(DesignProperty designProperty)
    
abstract public  ClassLoadergetContextClassLoader(DesignEvent designEvent)
    
abstract public  URLgetDocumentUrl(Document doc)
    
abstract public  intgetExpandedOffset(String unexpanded, int unexpandedOffset)
    
abstract public  FileObjectgetFileObject(Document doc)
    
abstract public  ElementgetHtmlBodyForMarkupFile(FileObject markupFile)
    
abstract public  DocumentFragmentgetHtmlDomFragmentForDocument(Document document)
    
abstract public  StringgetHtmlStream(Node node)
     Generate the html string from the given node.
abstract public  StringgetHtmlStream(Element element)
    
abstract public  StringgetHtmlStream(Document document)
     Generate the html string from the given document.
abstract public  StringgetHtmlStream(DocumentFragment df)
    
abstract public  MarkupDesignBeangetMarkupDesignBeanForElement(Element element)
    
abstract public  FileObjectgetMarkupFileObjectForDesignContext(DesignContext designContext)
    
abstract public  MarkupMouseRegiongetMarkupMouseRegionForElement(Element element)
    
abstract public  ProjectgetProjectForDesignProject(DesignProject designProject)
    
public static  InSyncServicegetProvider()
    
abstract public  RaveErrorHandlergetRaveErrorHandler()
    
abstract public  intgetUnexpandedOffset(String unexpanded, int expandedOffset)
    
abstract public  URLgetUrl(Document doc)
    
abstract public  ListgetWebPages(Project project, boolean includePages, boolean includeFragments)
    
abstract public  voidinitModelsForWebformFile(Project project, FileObject webformFile)
     XXX Very suspicious, try to get rid of it.
abstract public  voidjspDataObjectTopComponentActivated(DataObject dobj)
     Called when jsp data object TopComponent was activated.
abstract public  voidjspDataObjectTopComponentHidden(DataObject dobj)
     Called when jsp data object TopComponent was hidden.
abstract public  voidjspDataObjectTopComponentShown(DataObject dobj)
     Called when jsp data object TopComponent was shown.
abstract public  voidremoveLocalStyleValueForElement(Element element, int style)
    
abstract public  URLresolveUrl(URL base, Document document, String url)
    

Resolve the given url (which can be relative, context relative or absolute) to an absolute file URL.

abstract public  voidsetMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)
    
abstract public  voidsetUrl(Document doc, URL url)
    
abstract public  WriteLockwriteLockContext(DesignContext designContext, String message)
    
abstract public  voidwriteUnlockContext(DesignContext designContext, WriteLock lock)
    


Constructor Detail
InSyncService
public InSyncService()(Code)




Method Detail
addLocalStyleValueForElement
abstract public void addLocalStyleValueForElement(Element element, int style, String value)(Code)



appendParsedString
abstract public void appendParsedString(Document doc, Node node, String xhtml, MarkupDesignBean bean)(Code)



computeFileName
abstract public String computeFileName(Object location)(Code)
Given a general location object provided from the CSS parser, compute the correct file name to use.



computeLine
abstract public int computeLine(Document document, Element element)(Code)



computeLineNumber
abstract public int computeLineNumber(Object location, int line)(Code)



copied
abstract public void copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)(Code)
This is a hack until we get things done correctly with integration of Retouche. Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject. Go through and rename the EL expression references to the original page name to the new page name. This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way that prevent us from creating a simple fix that will yield the same results. Since ALL of this code will change when we properly integrate insync into platform, this is throw away code. TODO: Remove
Parameters:
  fromDataObject -
Parameters:
  toDataObject -



copyMarkupDesignBeanForElement
abstract public void copyMarkupDesignBeanForElement(Element fromElement, Element toElement)(Code)



copyMarkupMouseRegionForElement
abstract public void copyMarkupMouseRegionForElement(Element fromElement, Element toElement)(Code)



doOutsideOfRefactoringSession
abstract public void doOutsideOfRefactoringSession(Runnable runnable)(Code)
Execute the runnable outside of a refactoring Session, this allows most of the refactoring processing to have occured by the time this runnable will get run.
Parameters:
  runnable -



expandHtmlEntities
abstract public String expandHtmlEntities(String html, boolean warn, Node node)(Code)



fromURL
abstract public String fromURL(String url)(Code)
Convert the given URL to a path: decode spaces from %20's, etc. If the url does not begin with "file:" it will not do anything.



getBeanNameForJsp
abstract public String getBeanNameForJsp(FileObject fileObject)(Code)



getContextClassLoader
abstract public ClassLoader getContextClassLoader(DesignContext designContext)(Code)



getContextClassLoader
abstract public ClassLoader getContextClassLoader(DesignBean designBean)(Code)



getContextClassLoader
abstract public ClassLoader getContextClassLoader(DesignProperty designProperty)(Code)



getContextClassLoader
abstract public ClassLoader getContextClassLoader(DesignEvent designEvent)(Code)



getDocumentUrl
abstract public URL getDocumentUrl(Document doc)(Code)



getExpandedOffset
abstract public int getExpandedOffset(String unexpanded, int unexpandedOffset)(Code)



getFileObject
abstract public FileObject getFileObject(Document doc)(Code)



getHtmlBodyForMarkupFile
abstract public Element getHtmlBodyForMarkupFile(FileObject markupFile)(Code)



getHtmlDomFragmentForDocument
abstract public DocumentFragment getHtmlDomFragmentForDocument(Document document)(Code)



getHtmlStream
abstract public String getHtmlStream(Node node)(Code)
Generate the html string from the given node. This will return an empty string unless the Node is an Element or a DocumentFragment or a Document.



getHtmlStream
abstract public String getHtmlStream(Element element)(Code)
Generate the html string from the given element



getHtmlStream
abstract public String getHtmlStream(Document document)(Code)
Generate the html string from the given document. Does formatting.



getHtmlStream
abstract public String getHtmlStream(DocumentFragment df)(Code)
Generate the html string from the given document fragment



getMarkupDesignBeanForElement
abstract public MarkupDesignBean getMarkupDesignBeanForElement(Element element)(Code)



getMarkupFileObjectForDesignContext
abstract public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(Code)



getMarkupMouseRegionForElement
abstract public MarkupMouseRegion getMarkupMouseRegionForElement(Element element)(Code)



getProjectForDesignProject
abstract public Project getProjectForDesignProject(DesignProject designProject)(Code)



getProvider
public static InSyncService getProvider()(Code)
Obtain a default provider of the InSyncService



getRaveErrorHandler
abstract public RaveErrorHandler getRaveErrorHandler()(Code)



getUnexpandedOffset
abstract public int getUnexpandedOffset(String unexpanded, int expandedOffset)(Code)



getUrl
abstract public URL getUrl(Document doc)(Code)



getWebPages
abstract public List getWebPages(Project project, boolean includePages, boolean includeFragments)(Code)
Return a List of web pages in the project
Parameters:
  includePages - Iff true, include non-fragment pages in the list
Parameters:
  includeFragments - Iff true, include page fragments in the list A List containing FileObject entries for WebForms in the project



initModelsForWebformFile
abstract public void initModelsForWebformFile(Project project, FileObject webformFile)(Code)
XXX Very suspicious, try to get rid of it.



jspDataObjectTopComponentActivated
abstract public void jspDataObjectTopComponentActivated(DataObject dobj)(Code)
Called when jsp data object TopComponent was activated.



jspDataObjectTopComponentHidden
abstract public void jspDataObjectTopComponentHidden(DataObject dobj)(Code)
Called when jsp data object TopComponent was hidden.



jspDataObjectTopComponentShown
abstract public void jspDataObjectTopComponentShown(DataObject dobj)(Code)
Called when jsp data object TopComponent was shown.



removeLocalStyleValueForElement
abstract public void removeLocalStyleValueForElement(Element element, int style)(Code)



resolveUrl
abstract public URL resolveUrl(URL base, Document document, String url)(Code)

Resolve the given url (which can be relative, context relative or absolute) to an absolute file URL. For example, let's say you have a document "/tmp/foo.jsp" which references a stylesheet in "/tmp/css/bar.css" and in this stylesheet you have a url "baz.png". In this case the parameters to this method would have "base" pointing to the css file, the url string would be the png filename, and the document reference would point to the including jsp document.

The algorithm used by this method is as follows:
  • If the url string represents its own URL (e.g. starts with a protocol) then the URL returned is the resulting full URL.
  • Otherwise, if the url string does NOT start with "/", then a URL is formed by appending it to the base URL passed in
  • Otherwise, this is a context relative URL (because it begins with "/") and the base URL is computed by finding the project associated with the document parameter, and from the document the WEB root is located. This is taken as the base and the URL is computed as above.

Parameters:
  base - The URL of the referrer, which the url string will be takento be relative to, unless it is an "absolute" (context relative) string,such as "/resources". In that case it will look up the project associatedwith the given document and find its context root from there.
Parameters:
  document - A document related (more distantly than the base) to theurl reference.
Parameters:
  url - A string which represents a relative URL, or a context url, oreven a complete url on its own (http://www.sun.com/jscreator).



setMarkupDesignBeanForElement
abstract public void setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)(Code)



setUrl
abstract public void setUrl(Document doc, URL url)(Code)



writeLockContext
abstract public WriteLock writeLockContext(DesignContext designContext, String message)(Code)



writeUnlockContext
abstract public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code)



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.