/[classpath]/classpath/javax/swing/JTabbedPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JTabbedPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11.2.2 by gnu_andrew, Sat Jan 15 17:02:20 2005 UTC revision 1.11.2.3 by gnu_andrew, Thu Jan 27 09:45:35 2005 UTC
# Line 1  Line 1 
1  /* JTabbedPane.java --  /* JTabbedPane.java --
2     Copyright (C) 2002, 2004 Free Software Foundation, Inc.     Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 56  import javax.swing.plaf.TabbedPaneUI; Line 56  import javax.swing.plaf.TabbedPaneUI;
56  import javax.swing.plaf.UIResource;  import javax.swing.plaf.UIResource;
57    
58  /**  /**
  * <p>  
59   * This is a container for components. One component is displayed at a time.   * This is a container for components. One component is displayed at a time.
60   * Users can switch between components by clicking on tabs.   * Users can switch between components by clicking on tabs.
  * </p>  
61   *   *
62   * <p>   * <p>
63   * Tabs can be oriented in several ways. They can be above, below, left and   * Tabs can be oriented in several ways. They can be above, below, left and
# Line 532  public class JTabbedPane extends JCompon Line 530  public class JTabbedPane extends JCompon
530      }      }
531    }    }
532    
   /** Fired in a PropertyChangeEvent when the "model" property changes. */  
   public static final String MODEL_CHANGED_PROPERTY = "model";  
   
   /**  
    * Fired in a PropertyChangeEvent when the "tabPlacement" property changes.  
    */  
   public static final String TAB_PLACEMENT_CHANGED_PROPERTY = "tabPlacement";  
   
   /**  
    * Fired in a PropertyChangeEvent when the "tabLayoutPolicy" property  
    * changes.  
    */  
   public static final String TAB_LAYOUT_POLICY_CHANGED_PROPERTY = "tabLayoutPolicy";  
   
533    /** The changeEvent used to fire changes to listeners. */    /** The changeEvent used to fire changes to listeners. */
534    protected ChangeEvent changeEvent;    protected ChangeEvent changeEvent;
535    
# Line 739  public class JTabbedPane extends JCompon Line 723  public class JTabbedPane extends JCompon
723          this.model.removeChangeListener(changeListener);          this.model.removeChangeListener(changeListener);
724          this.model = model;          this.model = model;
725          this.model.addChangeListener(changeListener);          this.model.addChangeListener(changeListener);
726          firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.model);          firePropertyChange("model", oldModel, this.model);
727        }        }
728    }    }
729    
# Line 770  public class JTabbedPane extends JCompon Line 754  public class JTabbedPane extends JCompon
754        {        {
755          int oldPlacement = this.tabPlacement;          int oldPlacement = this.tabPlacement;
756          this.tabPlacement = tabPlacement;          this.tabPlacement = tabPlacement;
757          firePropertyChange(TAB_PLACEMENT_CHANGED_PROPERTY, oldPlacement,          firePropertyChange("tabPlacement", oldPlacement, this.tabPlacement);
                            this.tabPlacement);  
758        }        }
759    }    }
760    
# Line 802  public class JTabbedPane extends JCompon Line 785  public class JTabbedPane extends JCompon
785        {        {
786          int oldPolicy = layoutPolicy;          int oldPolicy = layoutPolicy;
787          layoutPolicy = tabLayoutPolicy;          layoutPolicy = tabLayoutPolicy;
788          firePropertyChange(TAB_LAYOUT_POLICY_CHANGED_PROPERTY, oldPolicy,          firePropertyChange("tabLayoutPolicy", oldPolicy, layoutPolicy);
                            layoutPolicy);  
789        }        }
790    }    }
791    

Legend:
Removed from v.1.11.2.2  
changed lines
  Added in v.1.11.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26