@Test public void outlinesCount() { PDDocumentOutline outline = new PDDocumentOutline(); PDOutlineItem root = new PDOutlineItem(); outline.addLast(root); assertEquals(1, outline.getOpenCount()); root.addLast(new PDOutlineItem()); assertEquals(-1, root.getOpenCount()); assertEquals(1, outline.getOpenCount()); root.addLast(new PDOutlineItem()); assertEquals(-2, root.getOpenCount()); assertEquals(1, outline.getOpenCount()); root.openNode(); assertEquals(2, root.getOpenCount()); assertEquals(3, outline.getOpenCount()); }
@Override public void openNode() { }
PDDocumentOutline extends PDOutlineNode { @Override public void openNode() { } }
PDDocumentOutline extends PDOutlineNode { @Override public void openNode() { } PDDocumentOutline();  PDDocumentOutline( COSDictionary dic ); }
PDDocumentOutline extends PDOutlineNode { @Override public void openNode() { } PDDocumentOutline();  PDDocumentOutline( COSDictionary dic ); @Override boolean isNodeOpen(); @Override void openNode(); @Override void closeNode(); }
PDDocumentOutline extends PDOutlineNode { @Override public void openNode() { } PDDocumentOutline();  PDDocumentOutline( COSDictionary dic ); @Override boolean isNodeOpen(); @Override void openNode(); @Override void closeNode();  }