public class LinkNode extends AbstractRichTextLeafNode
Modifier and Type | Field and Description |
---|---|
String |
href |
TextLayoutFormatNode |
linkActiveFormat |
TextLayoutFormatNode |
linkHoverFormat |
TextLayoutFormatNode |
linkNormalFormat |
protected HashMap<String,ITextNode> |
properties
This node's child property nodes.
|
String |
target |
alignmentBaseline, backgroundAlpha, backgroundColor, baselineShift, BASELINESHIFT_MAX_INCLUSIVE, BASELINESHIFT_MIN_INCLUSIVE, breakOpportunity, color, digitCase, digitWidth, dominantBaseline, fontFamily, fontSize, FONTSIZE_MAX_INCLUSIVE, FONTSIZE_MIN_INCLUSIVE, fontStyle, fontWeight, kerning, ligatureLevel, lineHeight, LINEHEIGHT_PERCENT_MAX_INCLUSIVE, LINEHEIGHT_PERCENT_MIN_INCLUSIVE, LINEHEIGHT_PIXEL_MAX_INCLUSIVE, LINEHEIGHT_PIXEL_MIN_INCLUSIVE, lineThrough, locale, textAlpha, textDecoration, textRotation, TRACKING_MAX_INCLUSIVE, TRACKING_MIN_INCLUSIVE, trackingLeft, trackingRight, typographicCase, whiteSpaceCollapse
content, id, parentNode, textAttributes
ALPHA_MAX_INCLUSIVE, ALPHA_MIN_INCLUSIVE, COLOR_BLACK, COLOR_RED, COLOR_WHITE, documentNode, endColumn, endLine, EPSILON, GRADIENT_ENTRIES_MAX_INCLUSIVE, startColumn, startLine, uri
Constructor and Description |
---|
LinkNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Adds an FXG child node to this link node.
|
void |
addTextProperty(String propertyName,
ITextNode node,
Collection<ICompilerProblem> problems)
A link node can also have special child property nodes that represent
complex property values that cannot be set via a simple attribute.
|
String |
getNodeName() |
HashMap<String,ITextNode> |
getTextProperties() |
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
This implementation processes link attributes that are relevant to
the <p> tag, as well as delegates to the parent class to process
character attributes that are also relevant to the <p> tag.
|
getChildren, getId, getTextAttributes, getTextChildren, rememberAttribute, setId, setParent
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, isVersionGreaterThanCompiler, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
public String href
public String target
public TextLayoutFormatNode linkNormalFormat
public TextLayoutFormatNode linkHoverFormat
public TextLayoutFormatNode linkActiveFormat
public HashMap<String,ITextNode> getTextProperties()
getTextProperties
in interface ITextNode
getTextProperties
in class AbstractRichTextNode
public void addTextProperty(String propertyName, ITextNode node, Collection<ICompilerProblem> problems)
addTextProperty
in interface ITextNode
addTextProperty
in class AbstractRichTextNode
propertyName
- - the property's local namenode
- - the value nodeproblems
- problems to collectpublic String getNodeName()
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
addChild
in interface IFXGNode
addChild
in class AbstractRichTextNode
child
- - a child FXG node to be added to this node.problems
- problem collection used to collect problems occurred within this methodpublic void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute
in interface IFXGNode
setAttribute
in class AbstractRichTextLeafNode
name
- the attribute namevalue
- the attribute valueproblems
- problem collection used to collect problems occurred within this methodAbstractTextNode.setAttribute(String, String, Collection)
Copyright © 2016 The Apache Software Foundation. All rights reserved.