/[gcjwebplugin]/gcjwebplugin/src/gnu/gcjwebplugin/CommonAppletStub.java
ViewVC logotype

Diff of /gcjwebplugin/src/gnu/gcjwebplugin/CommonAppletStub.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mkoch, Mon Jun 28 10:09:33 2004 UTC revision 1.5 by mkoch, Fri Jul 2 12:44:08 2004 UTC
# Line 44  class CommonAppletStub Line 44  class CommonAppletStub
44    ////////////////////////////////    ////////////////////////////////
45    ////// AppletStub Methods //////    ////// AppletStub Methods //////
46    ////////////////////////////////    ////////////////////////////////
47    // Tests whether or not this applet is currently active. An applet    
48    // becomes active just before the browser invokes start (), and    /**
49    // becomes inactive just before the browser invokes stop ().     * Tests whether or not this applet is currently active. An applet
50       * becomes active just before the browser invokes start (), and
51       * becomes inactive just before the browser invokes stop ().
52       *
53       * @return true if applet is active, false otherwise
54       */
55    public boolean isActive()    public boolean isActive()
56    {    {
57      return true;      return true;
58    }    }
59    
60    // Returns the basename URL of the document in which this applet is    /**
61    // embedded.     * Returns the basename URL of the document in which this applet is
62       * embedded.
63       *
64       * @return the document base url.
65       */
66    public URL getDocumentBase()    public URL getDocumentBase()
67    {    {
68      return tag.documentbase;      return tag.documentbase;
69    }    }
70    
71    // Returns the URL of the code base for this applet.    /**
72       * Returns the URL of the code base for this applet.
73       *
74       * @return the codebase url
75       */
76    public URL getCodeBase()    public URL getCodeBase()
77    {    {
78      try      try
# Line 72  class CommonAppletStub Line 85  class CommonAppletStub
85        }        }
86    }    }
87    
88    // Returns the value of the specified parameter that was specified    /**
89    // in the <code>APPLET</code> tag for this applet.     * Returns the value of the specified parameter that was specified
90       * in the <code>APPLET</code> tag for this applet.
91       *
92       * @param name the key name
93       *
94       * @return the key value
95       */
96    public String getParameter(String name)    public String getParameter(String name)
97    {    {
98      return (String) tag.parameters.get(name);      return (String) tag.parameters.get(name);
99    }    }
100    
101    // Returns the applet context for this applet.    /**
102       * Returns the applet context for this applet.
103       *
104       * @return the context
105       */
106    public AppletContext getAppletContext()    public AppletContext getAppletContext()
107    {    {
108      return context;      return context;
109    }    }
110    
111    // Requests that the applet window for this applet be resized.    /**
112       * Requests that the applet window for this applet be resized.
113       *
114       * @param width the new witdh
115       * @param height the new height
116       */
117    public void appletResize(int width, int height)    public void appletResize(int width, int height)
118    {    {
119      applet.setBounds (0, 0, width, height);      applet.setBounds (0, 0, width, height);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26