home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09961.iso / java / mojo1-2e.exe / MOJODISK / DATA.4 / lib / packages / tasks.def < prev   
Encoding:
Text File  |  1996-07-01  |  2.0 KB  |  107 lines

  1. DEF_COMPONENTNAME
  2. GeneralTasks
  3. DEF_SUPERCLASS
  4. Object
  5. DEF_SUPERCOMPONENT
  6.  
  7. DEF_PACKAGE
  8. mojo
  9. tasks
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. DEF_ENDLIST
  13. DEF_SUBCOMPONENTCLASSLIST
  14. DEF_ENDLIST
  15. DEF_CATEGORY
  16.  
  17. DEF_BITMAP
  18.  
  19. DEF_THUMBNAIL_UP
  20.  
  21. DEF_THUMBNAIL_DOWN
  22.  
  23. DEF_IMPORTS
  24. java.net.URL
  25. java.net.MalformedURLException
  26. DEF_ENDLIST
  27. DEF_REQUIRES
  28. DEF_ENDLIST
  29. DEF_IMPLEMENTS
  30. DEF_ENDLIST
  31. DEF_DECLARATION
  32. DEF_ENDLIST
  33. DEF_METHOD
  34. public void gotoScreen(String ScreenName)
  35. {
  36.    applet.layoutManager.show(applet, ScreenName);
  37. }
  38. DEF_ENDLIST
  39. DEF_METHOD
  40. public void gotoURL(String theURL)
  41. {
  42.   // variables
  43.   URL aURL = null;
  44.  
  45.   try { aURL = new URL(theURL); }
  46.   catch (MalformedURLException e) {
  47.     System.out.println("Bad URL: " + aURL); }
  48.   if (aURL != null)
  49.     applet.getAppletContext().showDocument(aURL);
  50. }
  51. DEF_ENDLIST
  52. DEF_METHOD
  53. public void initiateFTP(String FTPSite)
  54. {
  55.   // variables
  56.   URL aFTPSite = null;
  57.  
  58.   try { aFTPSite = new URL("ftp://" + FTPSite); }
  59.   catch (MalformedURLException e) {
  60.     System.out.println("Bad URL: " + aFTPSite); }
  61.   if (aFTPSite != null)
  62.     applet.getAppletContext().showDocument(aFTPSite);
  63. }
  64. DEF_ENDLIST
  65. DEF_METHOD
  66. public void initiateEmail(String EmailAddress)
  67. {
  68.   // variables
  69.   URL aEmailAddress = null;
  70.  
  71.   try { aEmailAddress = new URL("mailto:" + EmailAddress); }
  72.   catch (MalformedURLException e) {
  73.     System.out.println("Bad URL: " + aEmailAddress); }
  74.   if (aEmailAddress != null)
  75.     applet.getAppletContext().showDocument(aEmailAddress);
  76. }
  77. DEF_ENDLIST
  78. DEF_TASK
  79. Goto Screen
  80. GeneralTasks
  81. Transitions
  82. goto.bmp
  83. public void gotoScreen(String ScreenName)
  84. DEF_ENDLIST
  85. DEF_TASK
  86. Goto URL
  87. GeneralTasks
  88. Networking
  89. url.bmp
  90. public void gotoURL(String theURL)
  91. DEF_ENDLIST
  92. DEF_TASK
  93. Initiate FTP
  94. GeneralTasks
  95. Networking
  96. ftp.bmp
  97. public void initiateFTP(String FTPSite)
  98. DEF_ENDLIST
  99. DEF_TASK
  100. Initiate Email
  101. GeneralTasks
  102. Networking
  103. mail.bmp
  104. public void initiateEmail(String EmailAddress)
  105. DEF_ENDLIST
  106. DEF_ENDCOMPONENT
  107.