Package org.apache.fop.area
Class Trait.ExternalLink
- java.lang.Object
-
- org.apache.fop.area.Trait.ExternalLink
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Trait
public static class Trait.ExternalLink extends java.lang.Object implements java.io.Serializable
External Link trait structure- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
destination
private boolean
newWindow
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ExternalLink(java.lang.String destination, boolean newWindow)
Constructs an ExternalLink object with the given destination
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDestination()
Get the target/destination of the linkprotected static Trait.ExternalLink
makeFromTraitValue(java.lang.String traitValue)
Create anExternalLink
from a trait value/attribute value in the area treeboolean
newWindow()
Check if the target has to be displayed in a new windowjava.lang.String
toString()
Return a String representation of the object.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
destination
private java.lang.String destination
-
newWindow
private boolean newWindow
-
-
Method Detail
-
makeFromTraitValue
protected static Trait.ExternalLink makeFromTraitValue(java.lang.String traitValue)
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
public java.lang.String 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
public java.lang.String toString()
Return a String representation of the object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
of the form "org.apache.fop.area.Trait.ExternalLink[dest=someURL,newWindow=false]"
-
-