public static class Trait.ExternalLink extends Object implements Serializable
| Constructor and Description |
|---|
ExternalLink(String destination,
boolean newWindow)
Constructs an ExternalLink object with the given destination
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ExternalLink(String destination, boolean newWindow)
destination - target of the linknewWindow - true if the target should be opened in a new windowprotected 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 windowCopyright © 2023 Apache Software Foundation. All rights reserved.