org.apache.fop.area
Class LinkResolver
java.lang.Objectorg.apache.fop.area.LinkResolver
- Resolvable, Serializable
public class LinkResolver
extends java.lang.Object
Link resolving for resolving internal links.
String[] | getIDRefs()- Get the references for this link.
|
boolean | isResolved()
|
void | resolveIDRef(String id, List pages)- Resolve by adding an internal link to the first PageViewport in the list.
|
void | resolveIDRef(String id, PageViewport pv)- Resolve by adding an InternalLink trait to the area
|
LinkResolver
public LinkResolver(String id,
Area a) Create a new link resolver.
id - the id to resolvea - the area that will have the link attribute
getIDRefs
public String[] getIDRefs()
Get the references for this link.
- getIDRefs in interface Resolvable
- the String array of references.
isResolved
public boolean isResolved()
- isResolved in interface Resolvable
- true if this link is resolved
resolveIDRef
public void resolveIDRef(String id,
List pages) Resolve by adding an internal link to the first PageViewport in the list.
- resolveIDRef in interface Resolvable
resolveIDRef
public void resolveIDRef(String id,
PageViewport pv) Resolve by adding an InternalLink trait to the area
id - the target id (should be equal to the object's idRef)pv - the PageViewport containing the first area with the given id
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.