danger.text.span
Class AnchorSpan.Standard
java.lang.Object
danger.text.span.AnchorSpan.Standard
- All Implemented Interfaces:
- AnchorSpan
- Enclosing interface:
- AnchorSpan
public static class AnchorSpan.Standard
- extends Object
- implements AnchorSpan
Standard implementation of AnchorSpan, which provides a named
anchor within the text.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnchorSpan.Standard
public AnchorSpan.Standard(String anchor)
- Create an anchor with the specified name.
Do not include a leading "#" in the name.
getAnchor
public String getAnchor()
- Return the name of this anchor
- Specified by:
getAnchor in interface AnchorSpan