Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createChartControl(htmlDiv1)
- {
- // Initialize Gantt data structures
- //project 1
- var parentTask1 = new GanttTaskInfo(1, "Old code review", new Date(2010, 5, 11), 208, 50, "");
- ......................
- public class MethodInvocation extends Applet {
- public void noArgMethod() { ... }
- public void someMethod(String arg) { ... }
- public void someMethod(int arg) { ... }
- public int methodReturningInt() { return 5; }
- public String methodReturningString() { return "Hello"; }
- public OtherClass methodReturningObject() { return new OtherClass(); }
- }
- public class OtherClass {
- public void anotherMethod();
- }
- <applet id="app"
- archive="examples.jar"
- code="MethodInvocation" ...>
- </applet>
- <script language="javascript">
- app.noArgMethod();
- app.someMethod("Hello");
- app.someMethod(5);
- var five = app.methodReturningInt();
- var hello = app.methodReturningString();
- app.methodReturningObject().anotherMethod();
- </script>
Add Comment
Please, Sign In to add comment