public class LinkResolver extends java.lang.Object implements Resolvable, java.io.Serializable
Constructor and Description |
---|
LinkResolver() |
LinkResolver(java.lang.String id,
Area a)
Create a new link resolver.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependent(Resolvable dependent)
Add dependent resolvable.
|
java.lang.String[] |
getIDRefs()
Get the references for this link.
|
boolean |
isResolved()
Check if this area has been resolved.
|
void |
resolveIDRef(java.lang.String id,
java.util.List<PageViewport> pages)
Resolve by adding an internal link to the first PageViewport in the list.
|
void |
resolveIDRef(java.lang.String id,
PageViewport pv)
Resolve by adding an InternalLink trait to the area
|
public LinkResolver()
public LinkResolver(java.lang.String id, Area a)
id
- the id to resolvea
- the area that will have the link attributepublic boolean isResolved()
Resolvable
isResolved
in interface Resolvable
public java.lang.String[] getIDRefs()
getIDRefs
in interface Resolvable
public void resolveIDRef(java.lang.String id, java.util.List<PageViewport> pages)
resolveIDRef
in interface Resolvable
id
- an ID matching one of the Resolvable object's
unresolved idref's.pages
- the list of PageViewports with the given IDpublic void resolveIDRef(java.lang.String id, PageViewport pv)
id
- the target id (should be equal to the object's idRef)pv
- the PageViewport containing the first area with the given idpublic void addDependent(Resolvable dependent)
dependent
- resolvableCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.