Guest User

Untitled

a guest
Feb 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function createChartControl(htmlDiv1)
  2. {
  3. // Initialize Gantt data structures
  4. //project 1
  5. var parentTask1 = new GanttTaskInfo(1, "Old code review", new Date(2010, 5, 11), 208, 50, "");
  6. ......................
  7.  
  8. public class MethodInvocation extends Applet {
  9. public void noArgMethod() { ... }
  10. public void someMethod(String arg) { ... }
  11. public void someMethod(int arg) { ... }
  12. public int methodReturningInt() { return 5; }
  13. public String methodReturningString() { return "Hello"; }
  14. public OtherClass methodReturningObject() { return new OtherClass(); }
  15. }
  16.  
  17. public class OtherClass {
  18. public void anotherMethod();
  19. }
  20.  
  21. <applet id="app"
  22. archive="examples.jar"
  23. code="MethodInvocation" ...>
  24. </applet>
  25. <script language="javascript">
  26. app.noArgMethod();
  27. app.someMethod("Hello");
  28. app.someMethod(5);
  29. var five = app.methodReturningInt();
  30. var hello = app.methodReturningString();
  31. app.methodReturningObject().anotherMethod();
  32. </script>
Add Comment
Please, Sign In to add comment