public class DefaultReferenceNode extends TypeChildNode
TypeNode which is the
parent of this node.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultReferenceNode(Node parent,
Map attributes) |
| Modifier and Type | Method and Description |
|---|---|
Node |
clone(Node newParent)
This method returns a clone of the current node whichs parent node is specified by the parameter newParent.
|
List<String> |
getAttributeNames()
Returns the list of attributenames of the AttributeNodes which are children of this node.
|
Map |
getAttributeWidths()
Returns the columnwidths (list of Integer) of the AttributeNodes which are children of this node.
|
String |
getItemAsString(DisplayState displayState,
Item item) |
String |
getItemAsString(DisplayState displayState,
Item item,
List<String> characteristicAttributes) |
static String |
getLocalizedName(String code)
Returns a localized tax name for the given tax code or the tax code itself if no localized name was found.
|
String |
getNoSelectionName() |
String |
getSearchAttribute() |
String |
getSortAttribute()
Returns the name of the attribute by which to sort instances of the enclosing type.
|
boolean |
isEmptyShown() |
static String |
toString(DisplayState displayState,
Object value,
boolean topLevel)
Returns value as string
|
findTypeNode, getAttributeDescriptoraddAttribute, addChild, addChildren, checkCreateConditions, 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, setPositionInfoprotected DefaultReferenceNode(Node parent, Map attributes) throws NodeCreationFailedException
NodeCreationFailedExceptionpublic List<String> getAttributeNames()
public String getSearchAttribute()
public String getNoSelectionName()
public Map getAttributeWidths()
Map containing attributename->columnwidth mappings.public String getItemAsString(DisplayState displayState, Item item)
public String getItemAsString(DisplayState displayState, Item item, List<String> characteristicAttributes)
public boolean isEmptyShown()
public static String toString(DisplayState displayState, Object value, boolean topLevel)
displayState - the DisplayStatevalue - the valuetopLevel - If the given value is an Item and topLevel is not true the item will be enclosed in brackets.Stringpublic static String getLocalizedName(String code)
code - public Node clone(Node newParent)
Nodepublic String getSortAttribute()
Copyright © 2017 SAP SE. All Rights Reserved.