org.apache.fop.area

Class LinkResolver

Implemented Interfaces:
Resolvable, Serializable

public class LinkResolver
extends java.lang.Object
implements Resolvable, Serializable

Link resolving for resolving internal links.

Constructor Summary

LinkResolver(String id, Area a)
Create a new link resolver.

Method Summary

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

Constructor Details

LinkResolver

public LinkResolver(String id,
                    Area a)
Create a new link resolver.
Parameters:
id - the id to resolve
a - the area that will have the link attribute

Method Details

getIDRefs

public String[] getIDRefs()
Get the references for this link.
Specified by:
getIDRefs in interface Resolvable
Returns:
the String array of references.

isResolved

public boolean isResolved()
Specified by:
isResolved in interface Resolvable
Returns:
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.
Specified by:
resolveIDRef in interface Resolvable

resolveIDRef

public void resolveIDRef(String id,
                         PageViewport pv)
Resolve by adding an InternalLink trait to the area
Parameters:
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-2008 The Apache Software Foundation. All Rights Reserved.