| 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 | |
Method Summary | |
abstract public void | addLocalStyleValueForElement(Element element, int style, String value) | abstract public void | appendParsedString(Document doc, Node node, String xhtml, MarkupDesignBean bean) | abstract public String | computeFileName(Object location) Given a general location object provided from the CSS parser,
compute the correct file name to use. | abstract public int | computeLine(Document document, Element element) | abstract public int | computeLineNumber(Object location, int line) | abstract public void | copied(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 void | copyMarkupDesignBeanForElement(Element fromElement, Element toElement) | abstract public void | copyMarkupMouseRegionForElement(Element fromElement, Element toElement) | abstract public void | doOutsideOfRefactoringSession(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 String | expandHtmlEntities(String html, boolean warn, Node node) | abstract public String | fromURL(String url) Convert the given URL to a path: decode spaces from %20's, etc. | abstract public String | getBeanNameForJsp(FileObject fileObject) | abstract public ClassLoader | getContextClassLoader(DesignContext designContext) | abstract public ClassLoader | getContextClassLoader(DesignBean designBean) | abstract public ClassLoader | getContextClassLoader(DesignProperty designProperty) | abstract public ClassLoader | getContextClassLoader(DesignEvent designEvent) | abstract public URL | getDocumentUrl(Document doc) | abstract public int | getExpandedOffset(String unexpanded, int unexpandedOffset) | abstract public FileObject | getFileObject(Document doc) | abstract public Element | getHtmlBodyForMarkupFile(FileObject markupFile) | abstract public DocumentFragment | getHtmlDomFragmentForDocument(Document document) | abstract public String | getHtmlStream(Node node) Generate the html string from the given node. | abstract public String | getHtmlStream(Element element) | abstract public String | getHtmlStream(Document document) Generate the html string from the given document. | abstract public String | getHtmlStream(DocumentFragment df) | abstract public MarkupDesignBean | getMarkupDesignBeanForElement(Element element) | abstract public FileObject | getMarkupFileObjectForDesignContext(DesignContext designContext) | abstract public MarkupMouseRegion | getMarkupMouseRegionForElement(Element element) | abstract public Project | getProjectForDesignProject(DesignProject designProject) | public static InSyncService | getProvider() | abstract public RaveErrorHandler | getRaveErrorHandler() | abstract public int | getUnexpandedOffset(String unexpanded, int expandedOffset) | abstract public URL | getUrl(Document doc) | abstract public List | getWebPages(Project project, boolean includePages, boolean includeFragments) | abstract public void | initModelsForWebformFile(Project project, FileObject webformFile) XXX Very suspicious, try to get rid of it. | abstract public void | jspDataObjectTopComponentActivated(DataObject dobj) Called when jsp data object TopComponent was activated. | abstract public void | jspDataObjectTopComponentHidden(DataObject dobj) Called when jsp data object TopComponent was hidden. | abstract public void | jspDataObjectTopComponentShown(DataObject dobj) Called when jsp data object TopComponent was shown. | abstract public void | removeLocalStyleValueForElement(Element element, int style) | abstract public URL | resolveUrl(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 void | setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean) | abstract public void | setUrl(Document doc, URL url) | abstract public WriteLock | writeLockContext(DesignContext designContext, String message) | abstract public void | writeUnlockContext(DesignContext designContext, WriteLock lock) |
InSyncService | public InSyncService()(Code) | | |
addLocalStyleValueForElement | abstract public void addLocalStyleValueForElement(Element element, int style, String value)(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.
|
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 - |
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) | | |
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) | | |
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.
|
getMarkupFileObjectForDesignContext | abstract public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(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) | | |
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). |
writeUnlockContext | abstract public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code) | | |
|
|