Quantcast

CVS Commit: ClickableElement.java: fixed incorect javadoc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CVS Commit: ClickableElement.java: fixed incorect javadoc

mguillem
Log Message:
-----------
fixed incorect javadoc

Modified Files:
--------------
    htmlunit/src/java/com/gargoylesoftware/htmlunit/html:
        ClickableElement.java
        (http://cvs.sourceforge.net/viewcvs.py/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java)

Revision Data
-------------
Index: ClickableElement.java
===================================================================
RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -Lsrc/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java -Lsrc/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java -u -d -r1.13 -r1.14
--- src/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java
+++ src/java/com/gargoylesoftware/htmlunit/html/ClickableElement.java
@@ -75,11 +75,11 @@
 
 
     /**
-     *  Simulate clicking this link
+     * Simulate clicking this element.
      *
-     * @return  The page that occupies this window after this element is
-     * clicked.  It may be the same window or it may be a freshly loaded one.
-     * @exception  IOException If an IO error occurs
+     * @return The page that occupies this window after this element is
+     * clicked. It may be the same window or it may be a freshly loaded one.
+     * @exception IOException If an IO error occurs
      */
     public Page click()
         throws IOException {
@@ -93,7 +93,7 @@
         final HtmlPage page = getPage();
 
         final Function function = getEventHandler("onclick");
-                
+
         if (function != null && page.getWebClient().isJavaScriptEnabled()) {
             boolean stateUpdated = false;
             if (isStateUpdateFirst()) {
@@ -101,13 +101,13 @@
                 stateUpdated = true;
             }
             final Event event = new Event(this, getScriptObject());
-            
+
             final Object[] args = new Object[] {event};
-            
-            final ScriptResult scriptResult =
+
+            final ScriptResult scriptResult =
                 page.executeJavaScriptFunctionIfPossible(
                     function, (Scriptable) getScriptObject(), args, this);
-            
+
             final Page scriptPage = scriptResult.getNewPage();
             if( stateUpdated || scriptResult.getJavaScriptResult().equals( Boolean.FALSE ) ) {
                 return scriptPage;
@@ -124,8 +124,9 @@
 
     /**
      * This method will be called if there either wasn't an onclick handler or
-     * there was but the result of that handler was true.  This is the default
-     * behaviour of clicking the element.  The default implementation returns
+     * there was but the result of that handler wasn't <code>false</code>.
+     * This is the default behaviour of clicking the element.  
+     * The default implementation returns
      * the current page - subclasses requiring different behaviour (like
      * {@link HtmlSubmitInput}) will override this method.
      *


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...