home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / netscape / application / KeyboardArrow.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  1.3 KB  |  46 lines

  1. package netscape.application;
  2.  
  3. class KeyboardArrow extends InternalWindow {
  4.    Image image;
  5.    View view;
  6.  
  7.    public KeyboardArrow() {
  8.       super(0, 0, 0, 0, 0);
  9.       ((InternalWindow)this).setTransparent(true);
  10.       ((InternalWindow)this).setLayer(510);
  11.       ((InternalWindow)this).setCanBecomeMain(false);
  12.    }
  13.  
  14.    public void setImage(Image var1) {
  15.       this.image = var1;
  16.       if (this.image != null) {
  17.          ((View)this).sizeTo(this.image.width(), this.image.height());
  18.       } else {
  19.          ((View)this).sizeTo(0, 0);
  20.       }
  21.    }
  22.  
  23.    public void drawView(Graphics var1) {
  24.       if (this.image != null) {
  25.          this.image.drawAt(var1, 0, 0);
  26.       }
  27.  
  28.    }
  29.  
  30.    public boolean mouseDown(MouseEvent var1) {
  31.       return false;
  32.    }
  33.  
  34.    void setView(View var1) {
  35.       this.view = var1;
  36.    }
  37.  
  38.    View view() {
  39.       return this.view;
  40.    }
  41.  
  42.    public boolean canBecomeSelectedView() {
  43.       return false;
  44.    }
  45. }
  46.