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


java.lang.Object
   org.netbeans.modules.visualweb.designer.jsf.text.DomPositionImpl

DomPositionImpl
class DomPositionImpl implements DomPosition(Code)
XXX Moved from designer/../Position. Represents a location within a DOM document. The position is defined the same as the w3c Range description of a boundary point: http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
author:
   Tor Norbye




Method Summary
public static  shortcompareBoundaryPoints(DomPosition a, DomPosition b)
    
public static  shortcompareBoundaryPoints(Node endPointA, int offsetA, Node endPointB, int offsetB)
    
static  DomPositioncreate(DomDocumentImpl domDocumentImpl, Node node, int offset, Bias bias)
     Create a new position at the given node and offset.
static  DomPositioncreateNext(DomDocumentImpl domDocumentImpl, Node node, boolean after)
     Create a position for the given node.
public  booleanequals(Object object)
    
public static  DomPositionfirst(DomPosition a, DomPosition b)
     Return the position which is earliest in the document: a or b.
public  BiasgetBias()
     Return the bias of the position.
public  NodegetNode()
    
public  intgetOffset()
    
public  DomPositiongetRenderedPosition()
     Return a position in the rendered DOM that corresponds to this position (which needs to be a position in a source DOM).
public  DomPositiongetSourcePosition()
     If the current position is in a rendered/DocumentFragment subtree of the document, try to locate the equivalent position in the source document and return that.
public  ElementgetTargetElement()
     If the position is pointing to a specific element (e.g.
public  inthashCode()
    
public  booleanisEarlierThan(DomPosition pos)
    
public  booleanisInside(Element element)
     Return true if this position points to some position inside the given element.
public  booleanisLaterThan(DomPosition pos)
    
public  booleanisRenderedPosition()
     Gets whether is it rendered position.
public  booleanisSourcePosition()
     Gets whether it is source position.
public  booleanisStrictlyEarlierThan(DomPosition pos)
     Return true iff this position is earlier than (but NOT at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is strictly earlier than (e.g.
public  booleanisStrictlyLaterThan(DomPosition pos)
     Return true iff this position is later than (but NOT at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is strictly later than (e.g.
public static  DomPositionlast(DomPosition a, DomPosition b)
     Return the position which is latest in the document: a or b.
public  StringtoString()
    



Method Detail
compareBoundaryPoints
public static short compareBoundaryPoints(DomPosition a, DomPosition b)(Code)



compareBoundaryPoints
public static short compareBoundaryPoints(Node endPointA, int offsetA, Node endPointB, int offsetB)(Code)



create
static DomPosition create(DomDocumentImpl domDocumentImpl, Node node, int offset, Bias bias)(Code)
Create a new position at the given node and offset. Note that the node is the PARENT of the node you're pointing to - read the DOM traversal document referenced at the top of this class' javadoc. Text nodes are special handled; in this case the node points to the text node and the offset to a character within the text node.



createNext
static DomPosition createNext(DomDocumentImpl domDocumentImpl, Node node, boolean after)(Code)
Create a position for the given node. This will be the Node's PARENT node plus its index in that parent's node list. If after is true, the position should point to the position AFTER this element.



equals
public boolean equals(Object object)(Code)



first
public static DomPosition first(DomPosition a, DomPosition b)(Code)
Return the position which is earliest in the document: a or b.
Parameters:
  a - The first position to compare
Parameters:
  b - The second position to compare The position which is earliest in the document: a or b



getBias
public Bias getBias()(Code)
Return the bias of the position. Positions are always between nodes or characters; this defines which side we have an affinity to.



getNode
public Node getNode()(Code)
Fetches the element/node that contains the position the element/node



getOffset
public int getOffset()(Code)
Fetches the current offset the offset >= 0



getRenderedPosition
public DomPosition getRenderedPosition()(Code)
Return a position in the rendered DOM that corresponds to this position (which needs to be a position in a source DOM).
throws:
  UnsupportedOperationException - if this is Position.NONE instance



getSourcePosition
public DomPosition getSourcePosition()(Code)
If the current position is in a rendered/DocumentFragment subtree of the document, try to locate the equivalent position in the source document and return that. If it cannot find an equivalent source position it will return Position.NONE.



getTargetElement
public Element getTargetElement()(Code)
If the position is pointing to a specific element (e.g. right before or right after), return it. Otherwise, return null. The element pointed to by this position, or null



hashCode
public int hashCode()(Code)



isEarlierThan
public boolean isEarlierThan(DomPosition pos)(Code)
Return true iff this position is earlier than (or at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is earlier than or equal to thegiven position



isInside
public boolean isInside(Element element)(Code)
Return true if this position points to some position inside the given element. Pointing to either side of the element is not considered inside.



isLaterThan
public boolean isLaterThan(DomPosition pos)(Code)
Return true iff this position is later than (or at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is later than or equal to thegiven position



isRenderedPosition
public boolean isRenderedPosition()(Code)
Gets whether is it rendered position. Note: NONE is not considered rendered position. XXX There should be only rendered position here (in the designer).



isSourcePosition
public boolean isSourcePosition()(Code)
Gets whether it is source position. Note: NONE is not considered source position. XXX There should be only rendered position here (in the designer).



isStrictlyEarlierThan
public boolean isStrictlyEarlierThan(DomPosition pos)(Code)
Return true iff this position is earlier than (but NOT at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is strictly earlier than (e.g. notequal to) the given position



isStrictlyLaterThan
public boolean isStrictlyLaterThan(DomPosition pos)(Code)
Return true iff this position is later than (but NOT at the same position as) the given position in the document
Parameters:
  pos - The position to compare to True iff this position is strictly later than (e.g. notequal to) the given position



last
public static DomPosition last(DomPosition a, DomPosition b)(Code)
Return the position which is latest in the document: a or b.
Parameters:
  a - The first position to compare
Parameters:
  b - The second position to compare The position which is latest in the document: a or b



toString
public String toString()(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.