public class TextNode extends TypeChildNode implements ChipCreator
| Constructor and Description |
|---|
TextNode(Node parent,
Map attributes)
Creates a new TextNode.
|
TextNode(String elementName,
Node parent,
Map attributes)
Creates a new TextNode.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateConditions(Node parent,
Map attributes)
Checks for the correct parent elements and a non-empty name attribute and throws a NodeCreationFailedException if
they are incorrect.
|
Node |
clone(Node newParent)
Clones this node.
|
Chip |
createChip(DisplayState displayState,
Chip parent)
Creates a new TextChip for this node.
|
String |
getName()
Returns the content of the 'name' attribute of this node.
|
int |
getWidth()
Returns the content of the 'width' attribute of this node.
|
findTypeNode, getAttributeDescriptoraddAttribute, addChild, addChildren, cloneAll, getAttributes, getBooleanAttribute, getBooleanAttribute, getCachedObject, getChild, getChildren, getChildren, getChildrenInternal, getEditorNode, getElementName, getIntegerAttribute, getIntegerAttribute, getLogger, getParent, getPosition, getPositionInfo, getStringAttribute, getStringAttribute, getSuperNode, removeAttribute, removeChild, replace, replaceChild, setAttributes, setElementName, setParent, setPosition, setPositionInfopublic TextNode(Node parent, Map attributes) throws NodeCreationFailedException
NodeCreationFailedExceptionpublic TextNode(String elementName, Node parent, Map attributes) throws NodeCreationFailedException
NodeCreationFailedExceptionpublic Chip createChip(DisplayState displayState, Chip parent)
createChip in interface ChipCreatorpublic String getName()
public int getWidth()
protected void checkCreateConditions(Node parent, Map attributes) throws NodeCreationFailedException
checkCreateConditions in class Nodeparent - the parent node as given to the constructorattributes - the attribute map as given to the constructorNodeCreationFailedException - if the creation of the node failsCopyright © 2017 SAP SE. All Rights Reserved.