home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / text / ComponentView$Invalidator.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  1.1 KB  |  31 lines

  1. package javax.swing.text;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Container;
  5. import javax.swing.OverlayLayout;
  6.  
  7. class ComponentView$Invalidator extends Container {
  8.    // $FF: synthetic field
  9.    private final ComponentView this$0;
  10.  
  11.    ComponentView$Invalidator(ComponentView var1, Component var2) {
  12.       this.this$0 = var1;
  13.       ((Container)this).setLayout(new OverlayLayout(this));
  14.       ((Container)this).add(var2);
  15.    }
  16.  
  17.    public void invalidate() {
  18.       super.invalidate();
  19.       if (((Component)this).getParent() != null) {
  20.          this.this$0.preferenceChanged((View)null, true, true);
  21.       }
  22.  
  23.    }
  24.  
  25.    public void setVisible(boolean var1) {
  26.       super.setVisible(var1);
  27.       Component var2 = ((Container)this).getComponent(0);
  28.       var2.setVisible(var1);
  29.    }
  30. }
  31.