[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/imagex/postlet/rev_unkn/

FolderUp one level  
FileJSObject.java           [source] [162 lines]   JSObject allows Java to manipulate objects that are defined in JavaScript. Values passed from Java to JavaScript are converted as follows:
  • JSObject is converted to the original JavaScript object
  • Any other Java object is converted to a JavaScript wrapper, which can be used to access methods and fields of the java object. Converting this wrapper to a string will call the toString method on the original object, converting to a number will call the doubleValue method if possible and fail otherwise. Converting to a boolean will try to call the booleanValue method in the same way.
  • Java arrays are wrapped with a JavaScript object that understands array.length and array[index]
  • A Java boolean is converted to a JavaScript boolean
  • Java byte, char, short, int, long, float, and double are converted to JavaScript numbers
Values passed from JavaScript to Java are converted as follows:
  • objects which are wrappers around java objects are unwrapped
  • other objects are wrapped with a JSObject
  • strings, numbers and booleans are converted to String, Double, and Boolean objects respectively
This means that all JavaScript values show up as some kind of java.lang.Object in Java. In order to make much use of them, you will have to cast them to the appropriate subclass of Object, e.g. (String) window.getMember("name"); or (JSObject) window.getMember("document");.
FileJavascriptListener.java [source] [58 lines]    
FileMain.java               [source] [1399 lines]  postletStatus(int) sends the percentage complete status every time it changes postletFinished() executed when postlet has finished uploading
FilePostletLabels.java      [source] [269 lines]   
FileReadLine.java           [source] [68 lines]    
FileTableData.java          [source] [153 lines]   
FileUploadManager.java      [source] [91 lines]    
FileUploadThread.java       [source] [454 lines]   
FileUploaderFileFilter.java [source] [98 lines]    
Filemain1.java              [source] [632 lines]   


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7