/[classpath]/classpath/javax/swing/plaf/basic/BasicTextUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTextUI.java

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

revision 1.10.2.3 by gnu_andrew, Sun Jan 16 02:14:49 2005 UTC revision 1.10.2.4 by gnu_andrew, Tue Jan 25 12:41:41 2005 UTC
# Line 1  Line 1 
1  /* BasicTextUI.java  /* BasicTextUI.java --
2     Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.     Copyright (C) 2002, 2003, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 104  public abstract class BasicTextUI extend Line 104  public abstract class BasicTextUI extend
104        super(null);        super(null);
105      }      }
106    
107        // View methods.
108    
109      public ViewFactory getViewFactory()      public ViewFactory getViewFactory()
110      {      {
111        // FIXME: Handle EditorKit somehow.        // FIXME: Handle EditorKit somehow.
# Line 140  public abstract class BasicTextUI extend Line 142  public abstract class BasicTextUI extend
142          view.paint(g, s);          view.paint(g, s);
143      }      }
144    
145      protected Rectangle modelToView(int position, Shape a, Position.Bias bias)      public Shape modelToView(int position, Shape a, Position.Bias bias)
146        throws BadLocationException        throws BadLocationException
147      {      {
148          if (view == null)
149            return null;
150          
151        return ((PlainView) view).modelToView(position, a, bias).getBounds();        return ((PlainView) view).modelToView(position, a, bias).getBounds();
152      }      }
153    }    }
# Line 327  public abstract class BasicTextUI extend Line 332  public abstract class BasicTextUI extend
332      rootView.setView(null);      rootView.setView(null);
333    
334      textComponent.removePropertyChangeListener(updateHandler);      textComponent.removePropertyChangeListener(updateHandler);
     textComponent = null;  
335    
336      uninstallDefaults();      uninstallDefaults();
337      uninstallListeners();      uninstallListeners();
338      uninstallKeyboardActions();      uninstallKeyboardActions();
339    
340        textComponent = null;
341    }    }
342    
343    protected void uninstallDefaults()    protected void uninstallDefaults()
# Line 442  public abstract class BasicTextUI extend Line 448  public abstract class BasicTextUI extend
448    
449    public View create(Element elem)    public View create(Element elem)
450    {    {
451      // subclasses have to implement this to get this functionality      // Subclasses have to implement this to get this functionality.
452      return null;      return null;
453    }    }
454    
455    public View create(Element elem, int p0, int p1)    public View create(Element elem, int p0, int p1)
456    {    {
457      // subclasses have to implement this to get this functionality      // Subclasses have to implement this to get this functionality.
458      return null;      return null;
459    }    }
460        

Legend:
Removed from v.1.10.2.3  
changed lines
  Added in v.1.10.2.4

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