Proxy.LinkROpublic static interface Proxy.Link extends Proxy.LinkRO
node.link - read-write.
To set links use the attributes of the Proxy.Link and Proxy.LinkRO object:
// a normal href
node.link.text = 'http://www.google.com'
// create a node to the parent node
node.link.node = node.parent
// if you have a URI object
node.link.uri = new URI('http://www.google.com')
// file
node.link.file = map.file
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
remove() |
removes the link.
|
boolean |
set(String target) |
Deprecated.
since 1.2 - use
setText(String) instead. |
void |
setFile(File file) |
sets target to file.
|
void |
setNode(Proxy.Node node) |
target is a node of the same map.
|
void |
setText(String target) |
target is a stringified URI.
|
void |
setUri(URI uri) |
sets target to uri.
|
void setText(String target)
IllegalArgumentException - if target is not convertible into a URI.void setUri(URI uri)
void setFile(File file)
void setNode(Proxy.Node node)
IllegalArgumentException - if node belongs to another map.boolean set(String target)
setText(String) instead.boolean remove()
node.link.text = null.