home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / awt / EmbeddedFrame.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  70 lines

  1. package sun.awt;
  2.  
  3. import java.awt.Container;
  4. import java.awt.Frame;
  5. import java.awt.Image;
  6. import java.awt.MenuBar;
  7. import java.awt.MenuComponent;
  8. import java.awt.peer.ComponentPeer;
  9.  
  10. public abstract class EmbeddedFrame extends Frame {
  11.    private static final String base = "embeddedFrame";
  12.    private static int nameCounter = 0;
  13.    private boolean isCursorAllowed;
  14.    private static final long serialVersionUID = 2967042741780317130L;
  15.  
  16.    protected EmbeddedFrame() {
  17.       this(0);
  18.    }
  19.  
  20.    protected EmbeddedFrame(int var1) {
  21.       this.isCursorAllowed = false;
  22.    }
  23.  
  24.    public Container getParent() {
  25.       return null;
  26.    }
  27.  
  28.    public void setTitle(String var1) {
  29.    }
  30.  
  31.    public void setIconImage(Image var1) {
  32.    }
  33.  
  34.    public void setMenuBar(MenuBar var1) {
  35.    }
  36.  
  37.    public void setResizable(boolean var1) {
  38.    }
  39.  
  40.    public void remove(MenuComponent var1) {
  41.    }
  42.  
  43.    public boolean isResizable() {
  44.       return false;
  45.    }
  46.  
  47.    public void addNotify() {
  48.       int var1 = ((Container)this).getComponentCount();
  49.  
  50.       for(int var2 = 0; var2 < var1; ++var2) {
  51.          ((Container)this).getComponent(var2).addNotify();
  52.       }
  53.  
  54.    }
  55.  
  56.    protected native void setPeer(ComponentPeer var1);
  57.  
  58.    public void setCursorAllowed(boolean var1) {
  59.       this.isCursorAllowed = var1;
  60.    }
  61.  
  62.    public boolean isCursorAllowed() {
  63.       return this.isCursorAllowedImpl();
  64.    }
  65.  
  66.    final boolean isCursorAllowedImpl() {
  67.       return this.isCursorAllowed;
  68.    }
  69. }
  70.