/[classpath]/classpath/javax/swing/text/AbstractDocument.java
ViewVC logotype

Diff of /classpath/javax/swing/text/AbstractDocument.java

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

revision 1.28 by rabbit78, Tue Sep 13 23:44:49 2005 UTC revision 1.29 by abalkiss, Wed Sep 28 19:40:43 2005 UTC
# Line 1230  public abstract class AbstractDocument i Line 1230  public abstract class AbstractDocument i
1230    
1231      /**      /**
1232       * Returns the resolve parent of this element.       * Returns the resolve parent of this element.
1233         * This is taken from the AttributeSet, but if this is null,
1234         * this method instead returns the Element's parent's
1235         * AttributeSet
1236       *       *
1237       * @return the resolve parent of this element       * @return the resolve parent of this element
1238       *       *
# Line 1237  public abstract class AbstractDocument i Line 1240  public abstract class AbstractDocument i
1240       */       */
1241      public AttributeSet getResolveParent()      public AttributeSet getResolveParent()
1242      {      {
1243        return attributes.getResolveParent();        if (attributes.getResolveParent() != null)
1244            return attributes.getResolveParent();
1245          return element_parent.getAttributes();
1246      }      }
1247    
1248      /**      /**

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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