Java Doc for CompositeNode.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » 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 » 6.0 JDK Modules » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.model.ModelNode
      com.sun.perseus.model.CompositeNode

All known Subclasses:   com.sun.perseus.model.ElementNode,  com.sun.perseus.model.Viewport,
CompositeNode
abstract public class CompositeNode extends ModelNode (Code)
CompositeNode models ModelNodesElementNode ElementNodes .

A CompositeNode can have either ModelNode children and text content children (see the CompositeNode.appendTextChild appendTextChild method).
version:
   $Id: CompositeNode.java,v 1.9 2006/06/29 10:47:30 ln156897 Exp $



Field Summary
protected  ElementNodefirstChild
    
protected  ElementNodelastChild
    


Method Summary
public  voidadd(ElementNode element)
    
public  NodeappendChild(Node newChild)
    
protected  voidclearLayouts()
     Clears the text layouts, if any exist.
public  ModelNodegetFirstChildNode()
    
public  ModelNodegetLastChildNode()
    
abstract public  StringgetLocalName()
     unprefixed node name.
abstract public  StringgetNamespaceURI()
    
abstract public  NodegetParentNode()
     Returns the parent Node of this Node. the parent node or null if there is no parent (i.e.
public  NodeinsertBefore(Node newChild, Node refChild)
    
protected  booleanisAllowedChild(ElementNode node)
     Implementation helper.
final  booleanisAncestor(ElementNode node)
     Implementation helper.
Parameters:
  node - the node which may be an ancestor of this CompositeNode.
final  booleanisChild(Node node)
     Implementation helper.
Parameters:
  node - the node which may be a child of this composite node.
protected static  booleanisIdBranch(ElementNode node)
    
Parameters:
  node - the root of the branch to check for ids.
protected  booleanisRemoveChildSupported()
     true if this node supports removing children.
 voidnodeHookedInDocumentTree()
     To be overriddent by derived classes, such as TimedElementNode, if they need to do special operations when hooked into the document tree.
 voidnodeUnhookedFromDocumentTree()
     To be overriddent by derived classes, such as TimedElementNode, if they need to do special operations when unhooked from the document tree.
final  voidonHookedInDocumentTree()
     When a CompositeNode is hooked into the document tree, by default, it notifies its children and calls its own nodeHookedInDocumentTree method.
final  voidonUnhookedFromDocumentTree()
     When a CompositeNode is hooked into the document tree, by default, it notifies its children and calls its own nodeUnhookedFromDocumentTree method.
public  NoderemoveChild(Node oldChild)
    
protected  voidunhookChildrenQuiet()
     Utility method.

Field Detail
firstChild
protected ElementNode firstChild(Code)
The first child



lastChild
protected ElementNode lastChild(Code)
The last child





Method Detail
add
public void add(ElementNode element)(Code)
Appends an element at the end of the list
Parameters:
  element - the node to add to this CompositeNode
throws:
  NullPointerException - if the input argument is null.



appendChild
public Node appendChild(Node newChild) throws DOMException(Code)



clearLayouts
protected void clearLayouts()(Code)
Clears the text layouts, if any exist. This is typically called when the font selection has changed and nodes such as Text should recompute their layouts. This should recursively call clearLayouts on children node or expanded content, if any.



getFirstChildNode
public ModelNode getFirstChildNode()(Code)
this node's first child.



getLastChildNode
public ModelNode getLastChildNode()(Code)
this node's last child.



getLocalName
abstract public String getLocalName()(Code)
unprefixed node name. For an SVGElement, this returns the tagname without a prefix. In case of the Document node, string#document is returned.
throws:
  SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content.



getNamespaceURI
abstract public String getNamespaceURI()(Code)
the namespace URI of the Node.
throws:
  SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content.



getParentNode
abstract public Node getParentNode()(Code)
Returns the parent Node of this Node. the parent node or null if there is no parent (i.e. if a node hasjust been created and not yet added to the tree, or if it has beenremoved from the tree, this is null).
throws:
  SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content.



insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)



isAllowedChild
protected boolean isAllowedChild(ElementNode node)(Code)
Implementation helper. By default, we only disallow SVG nodes under all nodes except DocumentNode.
Parameters:
  node - the candidate child node. true if the input node can be inserted under this CompositeNode



isAncestor
final boolean isAncestor(ElementNode node)(Code)
Implementation helper.
Parameters:
  node - the node which may be an ancestor of this CompositeNode. true if the input node is this node or if it is one of its ancestors.



isChild
final boolean isChild(Node node)(Code)
Implementation helper.
Parameters:
  node - the node which may be a child of this composite node. true if the input node is one of this composite's children.



isIdBranch
protected static boolean isIdBranch(ElementNode node)(Code)

Parameters:
  node - the root of the branch to check for ids. Should not be null. true if the input node, or any of its descendant, has an id.



isRemoveChildSupported
protected boolean isRemoveChildSupported()(Code)
true if this node supports removing children. By default, thisreturns true.



nodeHookedInDocumentTree
void nodeHookedInDocumentTree()(Code)
To be overriddent by derived classes, such as TimedElementNode, if they need to do special operations when hooked into the document tree.



nodeUnhookedFromDocumentTree
void nodeUnhookedFromDocumentTree()(Code)
To be overriddent by derived classes, such as TimedElementNode, if they need to do special operations when unhooked from the document tree.



onHookedInDocumentTree
final void onHookedInDocumentTree()(Code)
When a CompositeNode is hooked into the document tree, by default, it notifies its children and calls its own nodeHookedInDocumentTree method.



onUnhookedFromDocumentTree
final void onUnhookedFromDocumentTree()(Code)
When a CompositeNode is hooked into the document tree, by default, it notifies its children and calls its own nodeUnhookedFromDocumentTree method.



removeChild
public Node removeChild(Node oldChild) throws DOMException(Code)



unhookChildrenQuiet
protected void unhookChildrenQuiet()(Code)
Utility method. Unhooks the children.



Fields inherited from com.sun.perseus.model.ModelNode
final public static int CAN_RENDER_CONDITIONS_MET_BITS(Code)(Java Doc)
final public static int CAN_RENDER_CONDITIONS_MET_MASK(Code)(Java Doc)
final public static int CAN_RENDER_DISPLAY_BIT(Code)(Java Doc)
final public static int CAN_RENDER_DISPLAY_MASK(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_PATH_BIT(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_PATH_MASK(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_VIEWBOX_BIT(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_VIEWBOX_MASK(Code)(Java Doc)
final public static int CAN_RENDER_IN_DOCUMENT_TREE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_IN_DOCUMENT_TREE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_NON_INVERTIBLE_TXF_BIT(Code)(Java Doc)
final public static int CAN_RENDER_NON_INVERTIBLE_TXF_MASK(Code)(Java Doc)
final public static int CAN_RENDER_PARENT_STATE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_PARENT_STATE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_PROXY_BITS_MASK(Code)(Java Doc)
final public static int CAN_RENDER_RENDERABLE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_RENDERABLE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_EXTENSIONS_BIT(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_EXTENSIONS_MASK(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_FEATURES_BIT(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_FEATURES_MASK(Code)(Java Doc)
final public static int CAN_RENDER_SYSTEM_LANGUAGE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_SYSTEM_LANGUAGE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_FONT_SIZE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_FONT_SIZE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_HEIGHT_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_HEIGHT_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_WIDTH_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_WIDTH_MASK(Code)(Java Doc)
final protected Transform IDENTITY(Code)(Java Doc)
protected int canRenderState(Code)(Java Doc)
protected boolean loaded(Code)(Java Doc)
protected ModelNode nextSibling(Code)(Java Doc)
protected DocumentNode ownerDocument(Code)(Java Doc)
protected ModelNode parent(Code)(Java Doc)
protected ModelNode prevSibling(Code)(Java Doc)

Methods inherited from com.sun.perseus.model.ModelNode
Box addBBox(Box bbox, Transform t)(Code)(Java Doc)
static Box addBBox(Box bbox, float x, float y, float width, float height)(Code)(Java Doc)
public void addEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc)
Box addNodeBBox(Box bbox, Transform t)(Code)(Java Doc)
static Box addShapeBBox(Box bbox, Path path, Transform t)(Code)(Java Doc)
static Box addTransformedBBox(Box bbox, float x, float y, float width, float height, Transform m)(Code)(Java Doc)
protected Transform appendTransform(Transform tx, Transform workTx)(Code)(Java Doc)
protected void clearLastRenderedTile()(Code)(Java Doc)
abstract protected void clearLayouts()(Code)(Java Doc)
void clearLayouts(ModelNode node)(Code)(Java Doc)
final void computeCanRenderDisplayBit(boolean display)(Code)(Java Doc)
final void computeCanRenderEmptyPathBit(Path path)(Code)(Java Doc)
final void computeCanRenderEmptyViewBoxBit(float[][] viewBox)(Code)(Java Doc)
final void computeCanRenderFontSizeBit(float fontSize)(Code)(Java Doc)
final void computeCanRenderHeightBit(float height)(Code)(Java Doc)
final void computeCanRenderRequiredExtensionsBit(String[] requiredExtensions)(Code)(Java Doc)
final void computeCanRenderRequiredFeaturesBit(String[] requiredFeatures)(Code)(Java Doc)
final void computeCanRenderSystemLanguageBit(String[] systemLanguage)(Code)(Java Doc)
final void computeCanRenderTransformBit(Transform transform)(Code)(Java Doc)
final void computeCanRenderWidthBit(float width)(Code)(Java Doc)
protected void computeRenderingTile(Tile tile)(Code)(Java Doc)
protected boolean contributeBBox()(Code)(Java Doc)
public void dispatchEvent(ModelEvent evt)(Code)(Java Doc)
abstract public ModelNode getFirstChildNode()(Code)(Java Doc)
abstract ModelNode getFirstComputedExpandedChild()(Code)(Java Doc)
abstract ModelNode getFirstExpandedChild()(Code)(Java Doc)
protected float getFloatPropertyState(int propertyIndex)(Code)(Java Doc)
final protected float getInheritedFloatPropertyState(int propertyIndex)(Code)(Java Doc)
final protected int getInheritedPackedPropertyState(int propertyIndex)(Code)(Java Doc)
final protected Object getInheritedPropertyState(int propertyIndex)(Code)(Java Doc)
Transform getInverseTransformState()(Code)(Java Doc)
abstract public ModelNode getLastChildNode()(Code)(Java Doc)
abstract ModelNode getLastExpandedChild()(Code)(Java Doc)
protected Tile getLastRenderedTile()(Code)(Java Doc)
public ModelNode getNextSiblingNode()(Code)(Java Doc)
public DocumentNode getOwnerDocument()(Code)(Java Doc)
protected int getPackedPropertyState(int propertyIndex)(Code)(Java Doc)
boolean getPaintNeedsLoad()(Code)(Java Doc)
public ModelNode getParent()(Code)(Java Doc)
public ModelNode getPreviousSiblingNode()(Code)(Java Doc)
protected Object getPropertyState(int propertyIndex)(Code)(Java Doc)
protected Tile getRenderingTile()(Code)(Java Doc)
public SVGMatrix getScreenCTM()(Code)(Java Doc)
public Transform getTransformState()(Code)(Java Doc)
protected String getURIBase()(Code)(Java Doc)
protected UpdateListener getUpdateListener()(Code)(Java Doc)
public boolean hasDescendants()(Code)(Java Doc)
protected boolean hasNodeRendering()(Code)(Java Doc)
boolean inDocumentTree()(Code)(Java Doc)
protected boolean isFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc)
protected boolean isInDocumentTree()(Code)(Java Doc)
final public boolean isLoaded()(Code)(Java Doc)
protected boolean isPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc)
protected boolean isPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc)
protected void modifiedNode()(Code)(Java Doc)
protected void modifyingNode()(Code)(Java Doc)
protected void modifyingNodeRendering()(Code)(Java Doc)
public ModelNode nodeHitAt(float[] pt)(Code)(Java Doc)
final protected ModelNode nodeHitAt(ModelNode node, float[] pt)(Code)(Java Doc)
protected static void nodeInserted(ModelNode node)(Code)(Java Doc)
protected void nodeRendered()(Code)(Java Doc)
void onHookedInDocumentTree()(Code)(Java Doc)
void onUnhookedFromDocumentTree()(Code)(Java Doc)
static void paint(ModelNode node, RenderGraphics rg)(Code)(Java Doc)
public void paint(RenderGraphics rg)(Code)(Java Doc)
protected void propagateCanRenderState(int oldCanRenderState, int newCanRenderState)(Code)(Java Doc)
protected void propagateFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc)
protected void propagatePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc)
protected void propagatePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc)
protected void recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc)
void recomputeInheritedProperties()(Code)(Java Doc)
protected void recomputePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc)
protected void recomputePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc)
protected void recomputeTransformState()(Code)(Java Doc)
protected void recomputeTransformState(Transform parentTransform)(Code)(Java Doc)
void recomputeTransformState(Transform parentTransform, ModelNode node)(Code)(Java Doc)
final protected Transform recycleTransform(Transform tx, Transform workTx)(Code)(Java Doc)
public void removeEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc)
protected void setFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc)
public void setLoaded(boolean isLoaded)(Code)(Java Doc)
protected void setPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc)
protected void setParent(ModelNode newParent)(Code)(Java Doc)
protected void setParentQuiet(ModelNode newParent)(Code)(Java Doc)
protected void setPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc)
abstract protected void unhookChildrenQuiet()(Code)(Java Doc)
abstract protected void unhookExpandedQuiet()(Code)(Java Doc)
final protected void unhookQuiet(ModelNode node)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.