⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiappletstub.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.core.gui.multi;

     import java.applet.*;
     import java.net.*;     import com.croftsoft.core.lang.NullArgumentException;

     /*********************************************************************
     * An AppletStub interface for an applet that contains applets.
     *
     * @version
     *   2003-05-04
     * @since
     *   2002-12-21
     * @author
     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>
     *********************************************************************/

     public final class  MultiAppletStub
       implements AppletStub
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {

     private final Applet  parentApplet;

     private boolean  active;

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////

     public  MultiAppletStub ( Applet  parentApplet )
     //////////////////////////////////////////////////////////////////////
     {       NullArgumentException.check ( this.parentApplet = parentApplet );
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////

     public void  appletResize (
       int  width,
       int  height )
     //////////////////////////////////////////////////////////////////////
     {
       parentApplet.resize ( width, height );
     }

     public AppletContext  getAppletContext ( )
     //////////////////////////////////////////////////////////////////////
     {
       return parentApplet.getAppletContext ( );
     }

     public URL  getCodeBase ( )
     //////////////////////////////////////////////////////////////////////
     {
       return parentApplet.getCodeBase ( );
     }

     public URL  getDocumentBase ( )
     //////////////////////////////////////////////////////////////////////
     {
       return parentApplet.getDocumentBase ( );
     }

     public String  getParameter ( String  name )
     //////////////////////////////////////////////////////////////////////
     {
       return parentApplet.getParameter ( name );
     }

     public boolean  isActive ( )
     //////////////////////////////////////////////////////////////////////
     {
       return active;
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////

     public void  setActive ( boolean  active )
     //////////////////////////////////////////////////////////////////////
     {
       this.active = active;
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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