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


java.lang.Object
   org.apache.batik.css.engine.CSSEngine
      org.netbeans.modules.visualweb.designer.cssengine.XhtmlCssEngine

XhtmlCssEngine
class XhtmlCssEngine extends CSSEngine (Code)
This class plugs in CSS support for XHTML
author:
   Tor Norbye
author:
   Carl Quinn

Inner Class :class MapStringValue extends AbstractValue

Field Summary
final public static  ErrorHandlerSILENT_ERROR_HANDLER
    
final public static  ShorthandManager[]XHTML_SHORTHAND_MANAGERS
     The shorthand managers for XHTML.
final public static  ValueManager[]XHTML_VALUE_MANAGERS
    
final protected static  StringIntMapattributes
    
static  org.apache.batik.css.engine.StringIntMapshorthandManagerIndex
    
static  org.apache.batik.css.engine.StringIntMapvalueManagerIndex
    


Method Summary
protected  voidapplyNonCSSPresentationalHints(CSSStylableElement e, StyleMap map)
    
public  voidclearComputedStyles(Element element)
     Remove precomputed styles for the given element - compute them over again.
 StringcomputeFileName(Object location)
    
 intcomputeLineNumber(Object location, int lineno)
    
static  XhtmlCssEnginecreate(Document doc, URL url, CssUserAgentInfo userAgentInfo)
    
protected  voiddisplayError(DOMException e, Object location, int lineno, int column)
    
protected  voiddisplayMissingStyleSheet(String uri)
    
protected  voidfindStyleSheetNodes()
    
 URLgetDocumentUrl()
    
 ValuegetLinkColor()
    
public static  intgetXhtmlPropertyIndex(String name)
     Returns the property index, or -1.
public static  intgetXhtmlShorthandIndex(String name)
     Returns the shorthand property index, or -1.
public static  booleanhasNoUnits(String s)
     Return true if the string parameter contains a number without any units at the end.
public  StringmapToStyle(Map<String, String> map)
     Given a Map of style properties, serialize the set and compress properties into shorthands, when possible.
public  booleanmediaMatch(SACMediaList ml)
    
public  voidprecomputeAllStyles(CSSStylableElement elt)
     Initialize all values for a given element (this is otherwise done lazily) on a getComputedStyle call for a particular property).
public  voidrefreshStyles()
    
public  voidsetErrorHandler(ErrorHandler handler)
     Set the error handler to be used in the case of parse errors.
public  voidsetStyleAttributeValue(Element elt, String value)
     XXX Only a fallback for the original suspicious pattern.
public  Map<String, String>styleToMap(String style)
     Parse the given style declaration and return a map of properties stored in it.
protected  StringtoMinimalStyleString(StyleMap map)
     Try to create a minimal (as short as possible) style string from this map, by using shorthands when possible.
protected  voidwarnCircularReference(URL uri, Object location)
    

Field Detail
SILENT_ERROR_HANDLER
final public static ErrorHandler SILENT_ERROR_HANDLER(Code)
Error Handler which does nothing



XHTML_SHORTHAND_MANAGERS
final public static ShorthandManager[] XHTML_SHORTHAND_MANAGERS(Code)
The shorthand managers for XHTML.



XHTML_VALUE_MANAGERS
final public static ValueManager[] XHTML_VALUE_MANAGERS(Code)
The value managers for XHTML - KEEP IN SYNC WITH PROPERTY INDICES IN XhtmlCss.java



attributes
final protected static StringIntMap attributes(Code)



shorthandManagerIndex
static org.apache.batik.css.engine.StringIntMap shorthandManagerIndex(Code)
Shared instance of an index map into the shorthand manager names



valueManagerIndex
static org.apache.batik.css.engine.StringIntMap valueManagerIndex(Code)
Shared instance of an index map into the value manager names





Method Detail
applyNonCSSPresentationalHints
protected void applyNonCSSPresentationalHints(CSSStylableElement e, StyleMap map)(Code)
Scan attributes for an element and transcribe deprecated style-type attributes into real style properties



clearComputedStyles
public void clearComputedStyles(Element element)(Code)
Remove precomputed styles for the given element - compute them over again.



computeFileName
String computeFileName(Object location)(Code)



computeLineNumber
int computeLineNumber(Object location, int lineno)(Code)



create
static XhtmlCssEngine create(Document doc, URL url, CssUserAgentInfo userAgentInfo)(Code)
Create a new engine and associate it with the given document



displayError
protected void displayError(DOMException e, Object location, int lineno, int column)(Code)



displayMissingStyleSheet
protected void displayMissingStyleSheet(String uri)(Code)



findStyleSheetNodes
protected void findStyleSheetNodes()(Code)



getDocumentUrl
URL getDocumentUrl()(Code)



getLinkColor
Value getLinkColor()(Code)
Get the Link Color to use in this document



getXhtmlPropertyIndex
public static int getXhtmlPropertyIndex(String name)(Code)
Returns the property index, or -1.



getXhtmlShorthandIndex
public static int getXhtmlShorthandIndex(String name)(Code)
Returns the shorthand property index, or -1.



hasNoUnits
public static boolean hasNoUnits(String s)(Code)
Return true if the string parameter contains a number without any units at the end. For this purpose a unit will be considered any alphabetical characters or non space character.



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



mediaMatch
public boolean mediaMatch(SACMediaList ml)(Code)
For use by page import



precomputeAllStyles
public void precomputeAllStyles(CSSStylableElement elt)(Code)
Initialize all values for a given element (this is otherwise done lazily) on a getComputedStyle call for a particular property).



refreshStyles
public void refreshStyles()(Code)
Refresh all styles



setErrorHandler
public void setErrorHandler(ErrorHandler handler)(Code)
Set the error handler to be used in the case of parse errors. If not set, the default handler will be used, which emits warnings in the output window.



setStyleAttributeValue
public void setStyleAttributeValue(Element elt, String value)(Code)
XXX Only a fallback for the original suspicious pattern.



styleToMap
public Map<String, String> styleToMap(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.



toMinimalStyleString
protected String toMinimalStyleString(StyleMap map)(Code)
Try to create a minimal (as short as possible) style string from this map, by using shorthands when possible. This will for example compress border-color-left/right/bottom/top into border-color: one two three four, and so on.



warnCircularReference
protected void warnCircularReference(URL uri, Object location)(Code)



Fields inherited from org.apache.batik.css.engine.CSSEngine
final protected int[] ALL_PROPERTIES(Code)(Java Doc)
final public static boolean DEBUG_FILTERING(Code)(Java Doc)
final protected static CSSEngineListener[] LISTENER_ARRAY(Code)(Java Doc)
final public static StyleSheet PARSING_SHEET(Code)(Java Doc)
final public static boolean RULE_FILTERING(Code)(Java Doc)
protected String alternateStyleSheet(Code)(Java Doc)
protected String classLocalName(Code)(Java Doc)
protected String classNamespaceURI(Code)(Java Doc)
protected int colorIndex(Code)(Java Doc)
protected URL cssBaseURI(Code)(Java Doc)
protected CSSConditionFactory cssConditionFactory(Code)(Java Doc)
protected CSSContext cssContext(Code)(Java Doc)
protected Document document(Code)(Java Doc)
protected URL documentURI(Code)(Java Doc)
protected EventListener domAttrModifiedListener(Code)(Java Doc)
protected EventListener domCharacterDataModifiedListener(Code)(Java Doc)
protected EventListener domNodeInsertedListener(Code)(Java Doc)
protected EventListener domNodeRemovedListener(Code)(Java Doc)
protected EventListener domSubtreeModifiedListener(Code)(Java Doc)
protected CSSStylableElement element(Code)(Java Doc)
protected List fontFaces(Code)(Java Doc)
protected int fontSizeIndex(Code)(Java Doc)
protected StringIntMap indexes(Code)(Java Doc)
protected int lineHeightIndex(Code)(Java Doc)
protected List listeners(Code)(Java Doc)
protected SACMediaList media(Code)(Java Doc)
protected Set nonCSSPresentationalHints(Code)(Java Doc)
protected String nonCSSPresentationalHintsNamespaceURI(Code)(Java Doc)
protected ExtendedParser parser(Code)(Java Doc)
protected String[] pseudoElementNames(Code)(Java Doc)
protected Node removedStylableElementSibling(Code)(Java Doc)
protected Set selectorAttributes(Code)(Java Doc)
protected StringIntMap shorthandIndexes(Code)(Java Doc)
protected ShorthandManager[] shorthandManagers(Code)(Java Doc)
protected StyleDeclarationBuilder styleDeclarationBuilder(Code)(Java Doc)
protected StyleDeclarationDocumentHandler styleDeclarationDocumentHandler(Code)(Java Doc)
protected StyleDeclarationUpdateHandler styleDeclarationUpdateHandler(Code)(Java Doc)
protected String styleLocalName(Code)(Java Doc)
public static int styleLookupCount(Code)(Java Doc)
protected String styleNamespaceURI(Code)(Java Doc)
protected StyleSheetDocumentHandler styleSheetDocumentHandler(Code)(Java Doc)
protected List<WeakReference<CSSStyleSheetNode>> styleSheetNodes(Code)(Java Doc)
protected boolean styleSheetRemoved(Code)(Java Doc)
protected List unknownPropertyNames(Code)(Java Doc)
protected List unknownPropertyValues(Code)(Java Doc)
protected StyleSheet userAgentStyleSheet(Code)(Java Doc)
protected StyleSheet userStyleSheet(Code)(Java Doc)
protected ValueManager[] valueManagers(Code)(Java Doc)

Methods inherited from org.apache.batik.css.engine.CSSEngine
public void addCSSEngineListener(CSSEngineListener l)(Code)(Java Doc)
protected void addMatchingRules(List rules, StyleSheet ss, Element elt, String pseudo)(Code)(Java Doc)
protected void addRules(Element elt, String pseudo, StyleMap sm, List rules, short origin)(Code)(Java Doc)
public void addTransientStyleSheetNode(CSSStyleSheetNode elt)(Code)(Java Doc)
protected void applyNonCSSPresentationalHint(CSSStylableElement elt, StyleMap map, int idx, String value)(Code)(Java Doc)
protected void applyNonCSSPresentationalHint(CSSStylableElement elt, StyleMap map, int idx, Value v)(Code)(Java Doc)
protected void applyNonCSSPresentationalHints(CSSStylableElement elt, StyleMap map)(Code)(Java Doc)
public void clearTransientStyleSheetNodes()(Code)(Java Doc)
protected void displayError(DOMException e, Object location, int lineno, int column)(Code)(Java Doc)
protected void displayMissingStyleSheet(String uri)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void disposeStyleMaps(Node node)(Code)(Java Doc)
protected void findSelectorAttributes(Set attrs, StyleSheet ss)(Code)(Java Doc)
protected void findStyleSheetNodes()(Code)(Java Doc)
protected void findStyleSheetNodes(Node n)(Code)(Java Doc)
protected void firePropertiesChangedEvent(Element target, int[] props)(Code)(Java Doc)
public URL getCSSBaseURI()(Code)(Java Doc)
public CSSContext getCSSContext()(Code)(Java Doc)
public CSSEngineUserAgent getCSSEngineUserAgent()(Code)(Java Doc)
public StyleMap getCascadedStyleMap(CSSStylableElement elt, String pseudo)(Code)(Java Doc)
public int getColorIndex()(Code)(Java Doc)
public Value getComputedStyle(CSSStylableElement elt, String pseudo, int propidx)(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public String getExpandingShorthandProperty()(Code)(Java Doc)
public List getFontFaces()(Code)(Java Doc)
public int getFontSizeIndex()(Code)(Java Doc)
public static CSSImportedElementRoot getImportedChild(Node node)(Code)(Java Doc)
public int getLineHeightIndex()(Code)(Java Doc)
public static Node getLogicalParentNode(Node parent)(Code)(Java Doc)
public String getMatchingRules(Element elt, boolean includeAgentRules)(Code)(Java Doc)
public int getNumberOfProperties()(Code)(Java Doc)
public static CSSStylableElement getParentCSSStylableElement(Element elt)(Code)(Java Doc)
public static Element getParentElement(Element elt)(Code)(Java Doc)
public int getPropertyIndex(String name)(Code)(Java Doc)
public String getPropertyName(int idx)(Code)(Java Doc)
public int getShorthandIndex(String name)(Code)(Java Doc)
public Collection getStyleClasses()(Code)(Java Doc)
public List<WeakReference<CSSStyleSheetNode>> getStyleSheetNodes()(Code)(Java Doc)
public String getUpdatedLocalStyleValues(CSSStylableElement elt, StyleSetting[] stylesToSet, StyleSetting[] stylesToRemove) throws Exception(Code)(Java Doc)
public ValueManager[] getValueManagers()(Code)(Java Doc)
public void importCascadedStyleMaps(Element src, CSSEngine srceng, Element dest)(Code)(Java Doc)
protected void inlineStyleAttributeUpdated(CSSStylableElement elt, StyleMap style, MutationEvent evt)(Code)(Java Doc)
protected void invalidateProperties(Node node, int[] properties, boolean[] updated, boolean recascade)(Code)(Java Doc)
public boolean isDefaultValue(CSSStylableElement elt, String pseudo, int propidx)(Code)(Java Doc)
public boolean isInheritedValue(CSSStylableElement elt, int propidx)(Code)(Java Doc)
protected boolean mediaMatch(SACMediaList ml)(Code)(Java Doc)
protected void nonCSSPresentationalHintUpdated(CSSStylableElement elt, StyleMap style, String property, MutationEvent evt)(Code)(Java Doc)
public Value parsePropertyValue(CSSStylableElement elt, String prop, String value)(Code)(Java Doc)
public StyleDeclaration parseStyleDeclaration(CSSStylableElement elt, String value)(Code)(Java Doc)
public StyleSheet parseStyleSheet(URL uri, String media, Object location) throws DOMException(Code)(Java Doc)
public StyleSheet parseStyleSheet(InputSource is, URL uri, String media, Object location) throws DOMException(Code)(Java Doc)
public void parseStyleSheet(StyleSheet ss, URL uri, Object location) throws DOMException(Code)(Java Doc)
public StyleSheet parseStyleSheet(String rules, URL uri, String media, Object location) throws DOMException(Code)(Java Doc)
public void parseStyleSheet(StyleSheet ss, String rules, URL uri, Object location) throws DOMException(Code)(Java Doc)
protected void parseStyleSheet(StyleSheet ss, InputSource is, URL uri, Object location) throws IOException(Code)(Java Doc)
protected void propagateChanges(Node node, int[] props, boolean recascade)(Code)(Java Doc)
protected void putAuthorProperty(StyleMap dest, int idx, Value sval, boolean imp, short origin)(Code)(Java Doc)
public void removeCSSEngineListener(CSSEngineListener l)(Code)(Java Doc)
public void setAlternateStyleSheet(String str)(Code)(Java Doc)
protected void setAttributeValue(Element elt, String name, String value)(Code)(Java Doc)
public void setCSSEngineUserAgent(CSSEngineUserAgent userAgent)(Code)(Java Doc)
public void setMainProperties(CSSStylableElement elt, MainPropertyReceiver dst, String pname, String value, boolean important)(Code)(Java Doc)
public void setMedia(String str)(Code)(Java Doc)
public void setUserAgentStyleSheet(StyleSheet ss)(Code)(Java Doc)
public void setUserStyleSheet(StyleSheet ss)(Code)(Java Doc)
protected void sortRules(List rules, Element elt, String pseudo)(Code)(Java Doc)
protected String toMinimalStyleString(StyleMap map)(Code)(Java Doc)
protected void warnCircularReference(URL uri, Object location)(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.