Java Doc for Location.java in  » Testing » htmlunit » com » gargoylesoftware » htmlunit » javascript » host » 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 » Testing » htmlunit » com.gargoylesoftware.htmlunit.javascript.host 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
   com.gargoylesoftware.htmlunit.javascript.host.Location

Location
public class Location extends SimpleScriptable (Code)
A JavaScript object for a Location.
version:
   $Revision: 2132 $
author:
   Mike Bowler
author:
   Michael Ottati
author:
   Marc Guillemot
author:
   Chris Erskine
author:
   Daniel Gredler
author:
   David K. Taylor
author:
   Ahmed Ashour
See Also:    * MSDN Documentation



Constructor Summary
public  Location()
     Creates an instance.

Method Summary
public  ObjectgetDefaultValue(Class hint)
    
public  voidinitialize(Window window)
     Initializes the object.
public  voidjsxFunction_assign(String url)
     Loads the new HTML document corresponding to the specified URL.
public  voidjsxFunction_reload(boolean force)
     Reloads the current page, possibly forcing retrieval from the server even if the browser cache contains the latest version of the document.
public  voidjsxFunction_replace(String url)
     Reloads the window using the specified URL.
public  StringjsxFunction_toString()
     Returns the location URL.
public  StringjsxGet_hash()
     Returns the hash portion of the location URL (the portion following the '#').
public  StringjsxGet_host()
     Returns the host portion of the location URL (the '[hostname]:[port]' portion).
public  StringjsxGet_hostname()
     Returns the hostname portion of the location URL.
public  StringjsxGet_href()
     Returns the location URL.
public  StringjsxGet_pathname()
     Returns the pathname portion of the location URL.
public  StringjsxGet_port()
     Returns the port portion of the location URL.
public  StringjsxGet_protocol()
     Returns the protocol portion of the location URL, including the trailing ':'.
public  StringjsxGet_search()
     Returns the search portion of the location URL (the portion following the '?').
public  voidjsxSet_hash(String hash)
     Sets the hash portion of the location URL (the portion following the '#').
public  voidjsxSet_host(String host)
     Sets the host portion of the location URL (the '[hostname]:[port]' portion).
public  voidjsxSet_hostname(String hostname)
     Sets the hostname portion of the location URL.
public  voidjsxSet_href(String newLocation)
     Set the location URL to an entirely new value.
public  voidjsxSet_pathname(String pathname)
     Sets the pathname portion of the location URL.
public  voidjsxSet_port(String port)
     Sets the port portion of the location URL.
public  voidjsxSet_protocol(String protocol)
     Sets the protocol portion of the location URL.
public  voidjsxSet_search(String search)
     Sets the search portion of the location URL (the portion following the '?').
public  StringtoString()
     Returns the string value of the location, which is the full URL string.


Constructor Detail
Location
public Location()(Code)
Creates an instance. JavaScript objects must have a default constructor.




Method Detail
getDefaultValue
public Object getDefaultValue(Class hint)(Code)



initialize
public void initialize(Window window)(Code)
Initializes the object.
Parameters:
  window - The window that this location belongs to.



jsxFunction_assign
public void jsxFunction_assign(String url) throws IOException(Code)
Loads the new HTML document corresponding to the specified URL.
Parameters:
  url - The location of the new HTML document to load.
throws:
  IOException - If loading the specified location fails.
See Also:    * MSDN Documentation



jsxFunction_reload
public void jsxFunction_reload(boolean force) throws IOException(Code)
Reloads the current page, possibly forcing retrieval from the server even if the browser cache contains the latest version of the document.
Parameters:
  force - If true, force reload from server; otherwise, may reload from cache.
throws:
  IOException - When there is a problem reloading the page.
See Also:    * MSDN Documentation



jsxFunction_replace
public void jsxFunction_replace(String url) throws IOException(Code)
Reloads the window using the specified URL.
Parameters:
  url - The new URL to use to reload the window.
throws:
  IOException - When there is a problem loading the new page.
See Also:    * MSDN Documentation



jsxFunction_toString
public String jsxFunction_toString()(Code)
Returns the location URL. the location URL.



jsxGet_hash
public String jsxGet_hash()(Code)
Returns the hash portion of the location URL (the portion following the '#'). The hash portion of the location URL.
See Also:    * MSDN Documentation



jsxGet_host
public String jsxGet_host()(Code)
Returns the host portion of the location URL (the '[hostname]:[port]' portion). The host portion of the location URL.
See Also:    * MSDN Documentation



jsxGet_hostname
public String jsxGet_hostname()(Code)
Returns the hostname portion of the location URL. The hostname portion of the location URL.
See Also:    * MSDN Documentation



jsxGet_href
public String jsxGet_href()(Code)
Returns the location URL. The location URL.
See Also:    * MSDN Documentation



jsxGet_pathname
public String jsxGet_pathname()(Code)
Returns the pathname portion of the location URL. The pathname portion of the location URL.
See Also:    * MSDN Documentation



jsxGet_port
public String jsxGet_port()(Code)
Returns the port portion of the location URL. The port portion of the location URL.
See Also:    * MSDN Documentation



jsxGet_protocol
public String jsxGet_protocol()(Code)
Returns the protocol portion of the location URL, including the trailing ':'. The protocol portion of the location URL, including the trailing ':'.
See Also:    * MSDN Documentation



jsxGet_search
public String jsxGet_search()(Code)
Returns the search portion of the location URL (the portion following the '?'). The search portion of the location URL.
See Also:    * MSDN Documentation



jsxSet_hash
public void jsxSet_hash(String hash) throws Exception(Code)
Sets the hash portion of the location URL (the portion following the '#').
Parameters:
  hash - The new hash portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_host
public void jsxSet_host(String host) throws Exception(Code)
Sets the host portion of the location URL (the '[hostname]:[port]' portion).
Parameters:
  host - The new host portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_hostname
public void jsxSet_hostname(String hostname) throws Exception(Code)
Sets the hostname portion of the location URL.
Parameters:
  hostname - The new hostname portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_href
public void jsxSet_href(String newLocation) throws IOException(Code)
Set the location URL to an entirely new value.
Parameters:
  newLocation - The new location URL.
throws:
  IOException - If loading the specified location fails.
See Also:    * MSDN Documentation



jsxSet_pathname
public void jsxSet_pathname(String pathname) throws Exception(Code)
Sets the pathname portion of the location URL.
Parameters:
  pathname - The new pathname portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_port
public void jsxSet_port(String port) throws Exception(Code)
Sets the port portion of the location URL.
Parameters:
  port - The new port portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_protocol
public void jsxSet_protocol(String protocol) throws Exception(Code)
Sets the protocol portion of the location URL.
Parameters:
  protocol - The new protocol portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



jsxSet_search
public void jsxSet_search(String search) throws Exception(Code)
Sets the search portion of the location URL (the portion following the '?').
Parameters:
  search - The new search portion of the location URL.
throws:
  Exception - If an error occurs.
See Also:    * MSDN Documentation



toString
public String toString()(Code)
Returns the string value of the location, which is the full URL string. The full URL string.



Methods inherited from com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
public Object get(String name, Scriptable start)(Code)(Java Doc)
public static boolean getBooleanArg(int index, Object[] args, boolean defaultValue)(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public Object getDefaultValue(Class hint)(Code)(Java Doc)
final public DomNode getDomNodeOrDie() throws IllegalStateException(Code)(Java Doc)
final public DomNode getDomNodeOrNull()(Code)(Java Doc)
public static int getIntArg(int index, Object[] args, int defaultValue)(Code)(Java Doc)
final protected Log getLog()(Code)(Java Doc)
public static Object getObjectArg(int index, Object[] args, Object defaultValue)(Code)(Java Doc)
protected Scriptable getPrototype(Class javaScriptClass)(Code)(Java Doc)
protected SimpleScriptable getScriptableFor(Object object)(Code)(Java Doc)
protected Scriptable getStartingScope()(Code)(Java Doc)
public static String getStringArg(int index, Object[] args, String defaultValue)(Code)(Java Doc)
protected Transformer getTransformerScriptableFor()(Code)(Java Doc)
protected Window getWindow() throws RuntimeException(Code)(Java Doc)
protected static Window getWindow(Scriptable s) throws RuntimeException(Code)(Java Doc)
protected Object getWithPreemption(String name)(Code)(Java Doc)
public SimpleScriptable makeScriptableFor(DomNode domNode)(Code)(Java Doc)
public void setDomNode(DomNode domNode)(Code)(Java Doc)
protected void setDomNode(DomNode domNode, boolean assignScriptObject)(Code)(Java Doc)
public void setHtmlElement(HtmlElement htmlElement)(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.