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


org.netbeans.modules.visualweb.api.designer.cssengine.CssEngineService

All known Subclasses:   org.netbeans.modules.visualweb.designer.cssengine.CssEngineServiceImpl,
CssEngineService
public interface CssEngineService (Code)
Interface to the CSS engine services.

Important note: Do not provide implementation of this interface, use the provider to access it!


author:
   Peter Zavadsky

Inner Class :public interface CssSyntaxErrorInfo



Method Summary
public  voidaddTransientStyleSheetNodeForDocument(Document document, Node styleSheetNode)
     Adding a node which represents style sheet node for specified Document, into the corresponding css engine, if there is one.
public  voidclearComputedStylesForElement(Element element)
     Clears computed styles for specified Element if there is corresponding css engine.
public  voidclearEngineStyleLookupCount()
    
public  voidclearTransientStyleSheetNodesForDocument(Document document)
     Clears the stylesheet nodes for the specified document, from the corresponding css engine, if there is one.
public  voidcreateCssEngineForDocument(Document document, URL url)
     Creates a css engine for specified Document and stores it internally.
public  ElementcreatePreviewElementForDocument(Document document, URL base, String styles)
     Creates a 'preview' element.
public  voidflushStyleSheetCache()
    
public  StringgetAllComputedStylesForElement(Element element)
    
public  StringgetAllRulesForElement(Element element)
    
public  StringgetAllStylesForElement(Element element)
    
public  URLgetBackgroundImageUrlForElement(Element element, URL baseUrl)
     Returns URL of background image relative to the specified base URL.
public  CssValuegetComputedValueForElement(Element element, int propIndex)
     XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable. Gets computed value for specified Element index if the corresponding css engine exists.
public  String[]getCssIdentifiers(String propertyName)
    
public  String[]getCssProperties()
    
public  CollectiongetCssStyleClassesForDocument(Document document)
     Gets collection of style classes for specific document, if there is corresponding css engine available otherwise it returns an empty collection.
public  intgetEngineStyleLookupCount()
    
public  StringgetStringFromStyleMapForDocument(Document document, Map<String, String> styleMap)
     Given a Map of style properties, serialize the set and compress properties into shorthands, when possible.
public  MapgetStyleMapFromStringForDocument(Document document, String style)
     Parse the given style declaration and return a map of properties stored in it.
public  ElementgetStyleParentForElement(Element element)
    
public  String[]getStyleResourcesForElement(Element element, String rules, Document doc, URL docUrl, int[] indexesToMatch)
     Gets url strings.
public  ResourceData[]getStyleResourcesForRules(String rules, Document doc, URL docUrl, URL base, int[] indexesToMatch)
     Gets style resources data.
public  ResourceData[]getStyleResourcesForUrl(URL url, Document doc, URL docUrl, int[] indexesToMatch)
     Gets style resources data.
public  StringgetUpdatedLocalStyleValuesForElement(Element element, StyleData[] stylesToSet, StyleData[] stylesToRemove)
     Gets the local styles string for a specified Element if there is corresponding css engine.
public  intgetXhtmlPropertyIndex(String property)
    
public  booleanisDefaultStyleValueForElement(Element element, String pseudo, int propIndex)
     Returns true if the value is default, for a specified Element if there is corresponsing css engine.
public  booleanisInheritedStyleValueForElement(Element element, int propIndex)
     Returns true if was inherited, as opposed to referenced directly by some rule. for a specified Element if there is corresponsing css engine.
public  booleanisInlineStyleValue(Element element, int propIndex)
     Returns true if the given CSS property for the given element is set by an inline property setting.
public  CssSyntaxErrorInfo[]parseCss(javax.swing.text.Document document)
     Parse the given document, gets the info about syntax errors.
public  StyleSheetparseStyleSheetForDocument(Document document, String rules, URL uri, String media, Object location)
     XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable.
public  StyleSheetparseStyleSheetForDocument(Document document, URL uri, String media, Object location)
     XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable.
public  voidrefreshStylesForDocument(Document document)
     Refreshes all styles for specified Document if corresponding css engine exists.
public  voidremoveCssEngineForDocument(Document document)
     Removes the css engine for specified Document if there was one created before.
public  voidreuseCssEngineForDocument(Document document, Document originalDocument)
     Reuses the css engine instance for the specified document if there already exist one for the originalDocument instance.
public  voidsetNullErrorHandlerForDocument(Document document)
     Sets null error handler for specified Document if there is corresponding css engine.
public  voidsetSilentErrorHandlerForDocument(Document document)
     Sets silent error handler for specified Document if there is corresponding css engine.
public  voidsetStyleAttributeForElement(Element element, String value)
     Sets style attribute in specified Element if there is corresponding css engine.
public  voidsetStyleParentForElement(Element element, Element styleParent)
    
public  voiduncomputeValueForElement(Element element, int propIndex)
     If the given property for an element has been computed, remove its computed state so that it gets recomputed for the next getComputedStyle call, for specified Document if corresponding css engine exists. XXX TODO it sounds horrible, revise.



Method Detail
addTransientStyleSheetNodeForDocument
public void addTransientStyleSheetNodeForDocument(Document document, Node styleSheetNode)(Code)
Adding a node which represents style sheet node for specified Document, into the corresponding css engine, if there is one.



clearComputedStylesForElement
public void clearComputedStylesForElement(Element element)(Code)
Clears computed styles for specified Element if there is corresponding css engine.



clearEngineStyleLookupCount
public void clearEngineStyleLookupCount()(Code)



clearTransientStyleSheetNodesForDocument
public void clearTransientStyleSheetNodesForDocument(Document document)(Code)
Clears the stylesheet nodes for the specified document, from the corresponding css engine, if there is one.



createCssEngineForDocument
public void createCssEngineForDocument(Document document, URL url)(Code)
Creates a css engine for specified Document and stores it internally.



createPreviewElementForDocument
public Element createPreviewElementForDocument(Document document, URL base, String styles)(Code)
Creates a 'preview' element.



flushStyleSheetCache
public void flushStyleSheetCache()(Code)



getAllComputedStylesForElement
public String getAllComputedStylesForElement(Element element)(Code)



getAllRulesForElement
public String getAllRulesForElement(Element element)(Code)



getAllStylesForElement
public String getAllStylesForElement(Element element)(Code)



getBackgroundImageUrlForElement
public URL getBackgroundImageUrlForElement(Element element, URL baseUrl)(Code)
Returns URL of background image relative to the specified base URL.



getComputedValueForElement
public CssValue getComputedValueForElement(Element element, int propIndex)(Code)
XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable. Gets computed value for specified Element index if the corresponding css engine exists.



getCssIdentifiers
public String[] getCssIdentifiers(String propertyName)(Code)



getCssProperties
public String[] getCssProperties()(Code)



getCssStyleClassesForDocument
public Collection getCssStyleClassesForDocument(Document document)(Code)
Gets collection of style classes for specific document, if there is corresponding css engine available otherwise it returns an empty collection.



getEngineStyleLookupCount
public int getEngineStyleLookupCount()(Code)



getStringFromStyleMapForDocument
public String getStringFromStyleMapForDocument(Document document, Map<String, String> styleMap)(Code)
Given a Map of style properties, serialize the set and compress properties into shorthands, when possible. See styleToMap.

If there is no css engine created, it returns an empty map.




getStyleMapFromStringForDocument
public Map getStyleMapFromStringForDocument(Document document, String style)(Code)
Parse the given style declaration and return a map of properties stored in it. The Map will have String keys which correspond to property names, and String values which correspond to CSS raw text for the values.

If there is no css engine created, it returns an empty map.



getStyleParentForElement
public Element getStyleParentForElement(Element element)(Code)



getStyleResourcesForElement
public String[] getStyleResourcesForElement(Element element, String rules, Document doc, URL docUrl, int[] indexesToMatch)(Code)
Gets url strings.



getStyleResourcesForRules
public ResourceData[] getStyleResourcesForRules(String rules, Document doc, URL docUrl, URL base, int[] indexesToMatch)(Code)
Gets style resources data.



getStyleResourcesForUrl
public ResourceData[] getStyleResourcesForUrl(URL url, Document doc, URL docUrl, int[] indexesToMatch)(Code)
Gets style resources data.



getUpdatedLocalStyleValuesForElement
public String getUpdatedLocalStyleValuesForElement(Element element, StyleData[] stylesToSet, StyleData[] stylesToRemove) throws Exception(Code)
Gets the local styles string for a specified Element if there is corresponding css engine. First any style settings in the set parameter array are applied, then any properties pointed to by the remove array are applied. The new style string



getXhtmlPropertyIndex
public int getXhtmlPropertyIndex(String property)(Code)



isDefaultStyleValueForElement
public boolean isDefaultStyleValueForElement(Element element, String pseudo, int propIndex)(Code)
Returns true if the value is default, for a specified Element if there is corresponsing css engine.



isInheritedStyleValueForElement
public boolean isInheritedStyleValueForElement(Element element, int propIndex)(Code)
Returns true if was inherited, as opposed to referenced directly by some rule. for a specified Element if there is corresponsing css engine.



isInlineStyleValue
public boolean isInlineStyleValue(Element element, int propIndex)(Code)
Returns true if the given CSS property for the given element is set by an inline property setting. TODO move to some other non css engine interface



parseCss
public CssSyntaxErrorInfo[] parseCss(javax.swing.text.Document document)(Code)
Parse the given document, gets the info about syntax errors.
Parameters:
  document - The document to be parsed



parseStyleSheetForDocument
public StyleSheet parseStyleSheetForDocument(Document document, String rules, URL uri, String media, Object location)(Code)
XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable.



parseStyleSheetForDocument
public StyleSheet parseStyleSheetForDocument(Document document, URL uri, String media, Object location)(Code)
XXX FIXME Get rid of this method, it uses batik classes, which is not acceptable.



refreshStylesForDocument
public void refreshStylesForDocument(Document document)(Code)
Refreshes all styles for specified Document if corresponding css engine exists.



removeCssEngineForDocument
public void removeCssEngineForDocument(Document document)(Code)
Removes the css engine for specified Document if there was one created before.



reuseCssEngineForDocument
public void reuseCssEngineForDocument(Document document, Document originalDocument)(Code)
Reuses the css engine instance for the specified document if there already exist one for the originalDocument instance.



setNullErrorHandlerForDocument
public void setNullErrorHandlerForDocument(Document document)(Code)
Sets null error handler for specified Document if there is corresponding css engine.



setSilentErrorHandlerForDocument
public void setSilentErrorHandlerForDocument(Document document)(Code)
Sets silent error handler for specified Document if there is corresponding css engine.



setStyleAttributeForElement
public void setStyleAttributeForElement(Element element, String value)(Code)
Sets style attribute in specified Element if there is corresponding css engine.



setStyleParentForElement
public void setStyleParentForElement(Element element, Element styleParent)(Code)



uncomputeValueForElement
public void uncomputeValueForElement(Element element, int propIndex)(Code)
If the given property for an element has been computed, remove its computed state so that it gets recomputed for the next getComputedStyle call, for specified Document if corresponding css engine exists. XXX TODO it sounds horrible, revise.



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