Package org.apache.fop.area
Class Trait.ExternalLink
java.lang.Object
org.apache.fop.area.Trait.ExternalLink
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Trait
External Link trait structure
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExternalLink
(String destination, boolean newWindow) Constructs an ExternalLink object with the given destination -
Method Summary
Modifier and TypeMethodDescriptionGet the target/destination of the linkprotected static Trait.ExternalLink
makeFromTraitValue
(String traitValue) Create anExternalLink
from a trait value/attribute value in the area treeboolean
Check if the target has to be displayed in a new windowtoString()
Return a String representation of the object.
-
Constructor Details
-
ExternalLink
Constructs an ExternalLink object with the given destination- Parameters:
destination
- target of the linknewWindow
- true if the target should be opened in a new window
-
-
Method Details
-
makeFromTraitValue
Create anExternalLink
from a trait value/attribute value in the area tree- Parameters:
traitValue
- the value to use (should match the result oftoString()
- Returns:
- an
ExternalLink
instance corresponding to the given value
-
getDestination
Get the target/destination of the link- Returns:
- the destination of the link
-
newWindow
public boolean newWindow()Check if the target has to be displayed in a new window- Returns:
true
if the target has to be displayed in a new window
-
toString
Return a String representation of the object.
-