public static class Trait.ExternalLink
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ExternalLink(java.lang.String destination,
boolean newWindow)
Constructs an ExternalLink object with the given destination
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDestination()
Get the target/destination of the link
|
protected static Trait.ExternalLink |
makeFromTraitValue(java.lang.String traitValue)
Create an
ExternalLink from a trait value/attribute value in the
area tree |
boolean |
newWindow()
Check if the target has to be displayed in a new window
|
java.lang.String |
toString()
Return a String representation of the object.
|
public ExternalLink(java.lang.String destination,
boolean newWindow)
destination - target of the linknewWindow - true if the target should be opened in a new windowprotected static Trait.ExternalLink makeFromTraitValue(java.lang.String traitValue)
ExternalLink from a trait value/attribute value in the
area treetraitValue - the value to use (should match the result of toString()ExternalLink instance corresponding to the given valuepublic java.lang.String getDestination()
public boolean newWindow()
true if the target has to be displayed in a new windowpublic java.lang.String toString()
toString in class java.lang.ObjectString of the form
"org.apache.fop.area.Trait.ExternalLink[dest=someURL,newWindow=false]"Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.