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

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

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

revision 1.8 by mkoch, Sun Jun 8 11:20:06 2003 UTC revision 1.9 by mkoch, Thu Jun 19 16:21:39 2003 UTC
# Line 66  import java.util.Hashtable; Line 66  import java.util.Hashtable;
66  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
67  import javax.accessibility.AccessibleContext;  import javax.accessibility.AccessibleContext;
68  import javax.accessibility.AccessibleExtendedComponent;  import javax.accessibility.AccessibleExtendedComponent;
 import javax.accessibility.AccessibleKeyBinding;  
69  import javax.accessibility.AccessibleRole;  import javax.accessibility.AccessibleRole;
70  import javax.accessibility.AccessibleStateSet;  import javax.accessibility.AccessibleStateSet;
71  import javax.swing.event.AncestorListener;  import javax.swing.event.AncestorListener;
# Line 116  public abstract class JComponent extends Line 115  public abstract class JComponent extends
115                   * AccessibleFocusHandler                   * AccessibleFocusHandler
116                   */                   */
117                  protected class AccessibleFocusHandler implements FocusListener {                  protected class AccessibleFocusHandler implements FocusListener {
   
                         //-------------------------------------------------------------  
                         // Variables --------------------------------------------------  
                         //-------------------------------------------------------------  
   
   
                         //-------------------------------------------------------------  
                         // Initialization ---------------------------------------------  
                         //-------------------------------------------------------------  
   
118                          /**                          /**
119                           * Constructor AccessibleFocusHandler                           * Constructor AccessibleFocusHandler
120                           * @param component TODO                           * @param component TODO
# Line 134  public abstract class JComponent extends Line 123  public abstract class JComponent extends
123                                  // TODO                                  // TODO
124                          } // AccessibleFocusHandler()                          } // AccessibleFocusHandler()
125    
   
                         //-------------------------------------------------------------  
                         // Methods ----------------------------------------------------  
                         //-------------------------------------------------------------  
   
126                          /**                          /**
127                           * focusGained                           * focusGained
128                           * @param event TODO                           * @param event TODO
# Line 154  public abstract class JComponent extends Line 138  public abstract class JComponent extends
138                          public void focusLost(FocusEvent valevent) {                          public void focusLost(FocusEvent valevent) {
139                                  // TODO                                  // TODO
140                          } // focusLost()                          } // focusLost()
   
   
141                  } // AccessibleFocusHandler                  } // AccessibleFocusHandler
142    
143                  /**                  /**
144                   * AccessibleContainerHandler                   * AccessibleContainerHandler
145                   */                   */
146                  protected class AccessibleContainerHandler implements ContainerListener {                  protected class AccessibleContainerHandler implements ContainerListener {
   
                         //-------------------------------------------------------------  
                         // Variables --------------------------------------------------  
                         //-------------------------------------------------------------  
   
   
                         //-------------------------------------------------------------  
                         // Initialization ---------------------------------------------  
                         //-------------------------------------------------------------  
   
147                          /**                          /**
148                           * Constructor AccessibleContainerHandler                           * Constructor AccessibleContainerHandler
149                           * @param component TODO                           * @param component TODO
# Line 180  public abstract class JComponent extends Line 152  public abstract class JComponent extends
152                                  // TODO                                  // TODO
153                          } // AccessibleContainerHandler()                          } // AccessibleContainerHandler()
154    
   
                         //-------------------------------------------------------------  
                         // Methods ----------------------------------------------------  
                         //-------------------------------------------------------------  
   
155                          /**                          /**
156                           * componentAdded                           * componentAdded
157                           * @param event TODO                           * @param event TODO
# Line 200  public abstract class JComponent extends Line 167  public abstract class JComponent extends
167                          public void componentRemoved(ContainerEvent valevent) {                          public void componentRemoved(ContainerEvent valevent) {
168                                  // TODO                                  // TODO
169                          } // componentRemoved()                          } // componentRemoved()
   
   
170                  } // AccessibleContainerHandler                  } // AccessibleContainerHandler
171    
   
                 //-------------------------------------------------------------  
                 // Variables --------------------------------------------------  
                 //-------------------------------------------------------------  
   
172                  /**                  /**
173                   * accessibleContainerHandler                   * accessibleContainerHandler
174                   */                   */
# Line 219  public abstract class JComponent extends Line 179  public abstract class JComponent extends
179                   */                   */
180                  protected FocusListener accessibleFocusHandler;                  protected FocusListener accessibleFocusHandler;
181    
   
                 //-------------------------------------------------------------  
                 // Initialization ---------------------------------------------  
                 //-------------------------------------------------------------  
   
182                  /**                  /**
183                   * Constructor AccessibleJComponent                   * Constructor AccessibleJComponent
184                   * @param component TODO                   * @param component TODO
# Line 233  public abstract class JComponent extends Line 188  public abstract class JComponent extends
188                          // TODO                          // TODO
189                  } // AccessibleJComponent()                  } // AccessibleJComponent()
190    
   
                 //-------------------------------------------------------------  
                 // Methods ----------------------------------------------------  
                 //-------------------------------------------------------------  
   
191                  /**                  /**
192                   * addPropertyChangeListener                   * addPropertyChangeListener
193                   * @param listener TODO                   * @param listener TODO
# Line 327  public abstract class JComponent extends Line 277  public abstract class JComponent extends
277                  //updateUI(); // get a proper ui                  //updateUI(); // get a proper ui
278          }          }
279    
   
280          // protected EventListenerList listenerList          // protected EventListenerList listenerList
281          public boolean contains(int x, int y)          public boolean contains(int x, int y)
282          {          {
# Line 335  public abstract class JComponent extends Line 284  public abstract class JComponent extends
284                  return super.contains(x,y);                  return super.contains(x,y);
285          }          }
286    
   
287          public  void addNotify()          public  void addNotify()
288          {          {
289                  //Notification to this component that it now has a parent component.                  //Notification to this component that it now has a parent component.
290                  super.addNotify();                  super.addNotify();
291          }          }
292    
   
293          Hashtable get_prop_hash()          Hashtable get_prop_hash()
294          {          {
295                  if (prop_hash == null)                  if (prop_hash == null)
# Line 374  public abstract class JComponent extends Line 321  public abstract class JComponent extends
321          public void putClientProperty(Object key, Object value)          public void putClientProperty(Object key, Object value)
322          {    get_prop_hash().put(key, value);   }          {    get_prop_hash().put(key, value);   }
323    
   
324          public void removeAncestorListener(AncestorListener listener)          public void removeAncestorListener(AncestorListener listener)
325          {  get_ancestor_list().removeElement(listener);  }          {  get_ancestor_list().removeElement(listener);  }
326    
# Line 405  public abstract class JComponent extends Line 351  public abstract class JComponent extends
351                  //super.computeVisibleRect(rect);                  //super.computeVisibleRect(rect);
352          }          }
353    
   
354          public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)          public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
355          {          {
356                  //Reports a bound property change.                  //Reports a bound property change.
# Line 446  public abstract class JComponent extends Line 391  public abstract class JComponent extends
391                  //       Reports a bound property change.                  //       Reports a bound property change.
392          }          }
393    
   
394          protected  void fireVetoableChange(String propertyName, Object oldValue, Object newValue)          protected  void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
395          {          {
396                  //       Support for reporting constrained property changes.                  //       Support for reporting constrained property changes.
# Line 658  public abstract class JComponent extends Line 602  public abstract class JComponent extends
602                  }                  }
603          }          }
604    
   
   
         /*********************************************************************  
          *  
          *  
          *  tooltips:  
          *  
          *  
          **************************************/  
   
605          public JToolTip createToolTip()          public JToolTip createToolTip()
606          {          {
607                  if (tooltip == null)                  if (tooltip == null)
# Line 687  public abstract class JComponent extends Line 621  public abstract class JComponent extends
621          public String getToolTipText(MouseEvent event)          public String getToolTipText(MouseEvent event)
622          {       return tool_tip_text;    }          {       return tool_tip_text;    }
623    
         /*********************************************************************  
          *  
          *  
          *    things to do with visibility:  
          *  
          *  
          **************************************/  
   
   
624          public Container getTopLevelAncestor()          public Container getTopLevelAncestor()
625          {          {
626                  //      Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container.                  //      Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container.
# Line 953  public abstract class JComponent extends Line 878  public abstract class JComponent extends
878                  //      If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport                  //      If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport
879          }          }
880    
   
881          public void setDebugGraphicsOptions(int debugOptions)          public void setDebugGraphicsOptions(int debugOptions)
882          {          {
883                  //      Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.                  //      Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.
# Line 977  public abstract class JComponent extends Line 901  public abstract class JComponent extends
901                  revalidate();                  revalidate();
902                  repaint();                  repaint();
903          }          }
904    
905          public void setBackground(Color bg)          public void setBackground(Color bg)
906          {          {
907                  super.setBackground(bg);                  super.setBackground(bg);
# Line 1043  public abstract class JComponent extends Line 968  public abstract class JComponent extends
968                  paint(g);                  paint(g);
969          }          }
970    
   
   
         /******************************************  
          *  
          *  
          *  UI management  
          *  
          *  
          *********/  
   
971          public String getUIClassID()          public String getUIClassID()
972          {          {
973                  ///          Return the UIDefaults key used to look up the name of the swing.                  ///          Return the UIDefaults key used to look up the name of the swing.

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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