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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalLink(String destination, boolean newWindow, String altText) Constructs an ExternalLink object with the given destination -
Method Summary
Modifier and TypeMethodDescriptionGet the target/destination of the linkprotected static Trait.ExternalLinkmakeFromTraitValue(String traitValue) Create anExternalLinkfrom a trait value/attribute value in the area treebooleanCheck if the target has to be displayed in a new windowtoString()Return a String representation of the object.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
destination
-
newWindow
private boolean newWindow -
altText
-
-
Constructor Details
-
ExternalLink
-
-
Method Details
-
makeFromTraitValue
Create anExternalLinkfrom a trait value/attribute value in the area tree- Parameters:
traitValue- the value to use (should match the result oftoString()- Returns:
- an
ExternalLinkinstance 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:
trueif the target has to be displayed in a new window
-
toString
-
getAltText
-