appletstubproxy.java

来自「一款即时通讯软件」· Java 代码 · 共 77 行

JAVA
77
字号
package edu.ou.kmi.buddyspace.plugins.simlink.gui;

import java.applet.*;
import java.net.*;
import java.util.*;

public class AppletStubProxy implements AppletStub {
    /**
     * Called when the applet wants to be resized.
     *
     * @param width the new requested width for the applet.
     * @param height the new requested height for the applet.
     * @todo Implement this java.applet.AppletStub method
     */
    public void appletResize(int width, int height) {
    }

    /**
     * Gets a handler to the applet's context.
     *
     * @return the applet's context.
     * @todo Implement this java.applet.AppletStub method
     */
    public AppletContext getAppletContext() {
        return null;
    }

    /**
     * Gets the base URL.
     *
     * @return the base {@link java.net.URL} of the directory which contains
     *   the applet.
     * @todo Implement this java.applet.AppletStub method
     */
    public URL getCodeBase() {
        return null;
    }

    /**
     * Gets the URL of the document in which the applet is embedded.
     *
     * @return the {@link java.net.URL} of the document that contains the
     *   applet.
     * @todo Implement this java.applet.AppletStub method
     */
    public URL getDocumentBase() {
        return null;
    }

    private Map parameters = null;
    public void setParameters(Map parameters) { this.parameters = parameters; }

    /**
     * Returns the value of the named parameter in the HTML tag.
     *
     * @param name a parameter name.
     * @return the value of the named parameter, or <tt>null</tt> if not set.
     * @todo Implement this java.applet.AppletStub method
     */
    public String getParameter(String name) {
        System.out.println(name);
        Object value = parameters.get(name);
        return value == null ? null : value.toString();
    }

    /**
     * Determines if the applet is active.
     *
     * @return <code>true</code> if the applet is active; <code>false</code>
     *   otherwise.
     * @todo Implement this java.applet.AppletStub method
     */
    public boolean isActive() {
        return false;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?