public static class Trait.ExternalLink extends Object implements Serializable
Constructor and Description |
---|
ExternalLink(String destination,
boolean newWindow,
String altText)
Constructs an ExternalLink object with the given destination
|
Modifier and Type | Method and Description |
---|---|
String |
getAltText() |
String |
getDestination()
Get the target/destination of the link
|
protected static Trait.ExternalLink |
makeFromTraitValue(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
|
String |
toString()
Return a String representation of the object.
|
protected static Trait.ExternalLink makeFromTraitValue(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 String getDestination()
public boolean newWindow()
true
if the target has to be displayed in a new windowpublic String toString()
public String getAltText()
Copyright © 2025 Apache Software Foundation. All rights reserved.