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, whiteSpaceCollapsecontent, id, parentNode, textAttributesALPHA_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, setParentgetDocumentNode, getDocumentPath, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, isVersionGreaterThanCompiler, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLinepublic String href
public String target
public TextLayoutFormatNode linkNormalFormat
public TextLayoutFormatNode linkHoverFormat
public TextLayoutFormatNode linkActiveFormat
public HashMap<String,ITextNode> getTextProperties()
getTextProperties in interface ITextNodegetTextProperties in class AbstractRichTextNodepublic void addTextProperty(String propertyName, ITextNode node, Collection<ICompilerProblem> problems)
addTextProperty in interface ITextNodeaddTextProperty in class AbstractRichTextNodepropertyName - - the property's local namenode - - the value nodeproblems - problems to collectpublic String getNodeName()
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
addChild in interface IFXGNodeaddChild in class AbstractRichTextNodechild - - 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 IFXGNodesetAttribute in class AbstractRichTextLeafNodename - 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.