public void addDestination(PDFDestination dest, int parentId)
        {
            PDFDestination parent = null;

            if (parentId > 0)
            {
                parent = _allDestinations.get(parentId);
            }

            if (parent != null)
            {
                parent.addChild(dest);
            }
            else
            {
                dest.setParentId(_id);
                _rootDestinations.add(dest);
            }

            _allDestinations.put(dest.getId(), dest);
        }
Beispiel #2
0
 public void addChild(PDFDestination child)
 {
     child.setParentId(_id);
     _children.add(child);
 }