/[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.10 by mark, Sat Sep 4 17:14:01 2004 UTC revision 1.11 by mark, Thu Sep 23 15:03:21 2004 UTC
# Line 431  public abstract class AbstractDocument Line 431  public abstract class AbstractDocument
431      {      {
432        return Collections.enumeration(tree_children);        return Collections.enumeration(tree_children);
433      }      }
434          
435      public boolean getAllowsChildren()      public boolean getAllowsChildren()
436      {      {
437        return true;        return true;
438      }      }
439          
440      public TreeNode getChildAt(int index)      public TreeNode getChildAt(int index)
441      {      {
442        return (TreeNode) tree_children.get(index);        return (TreeNode) tree_children.get(index);
443      }      }
444          
445      public int getChildCount()      public int getChildCount()
446      {      {
447        return tree_children.size();        return tree_children.size();
448      }      }
449          
450      public int getIndex(TreeNode node)      public int getIndex(TreeNode node)
451      {      {
452        return tree_children.indexOf(node);        return tree_children.indexOf(node);
# Line 551  public abstract class AbstractDocument Line 551  public abstract class AbstractDocument
551      {      {
552        return AbstractDocument.this;        return AbstractDocument.this;
553      }      }
554          
555      public Element getElement(int index)      public Element getElement(int index)
556      {      {
557        return (Element) element_children.get(index);        return (Element) element_children.get(index);
558      }      }
559          
560      public String getName()      public String getName()
561      {      {
562        return (String) getAttribute(NameAttribute);        return (String) getAttribute(NameAttribute);
563      }      }
564          
565      public Element getParentElement()      public Element getParentElement()
566      {      {
567        return element_parent;        return element_parent;
568      }      }
569          
570      public abstract int getEndOffset();      public abstract int getEndOffset();
571          
572      public abstract int getElementCount();      public abstract int getElementCount();
573          
574      public abstract int getElementIndex(int offset);      public abstract int getElementIndex(int offset);
575          
576      public abstract int getStartOffset();      public abstract int getStartOffset();
577    }    }
578    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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