Package com.smartgwt.client.data
Class RelationPath
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.data.RelationPath
- All Implemented Interfaces:
HasHandlers
A simple object representing the path for navigation from source to target DataSources via foreign key declarations
defined between each.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA number representing the distance between source and target DataSources.static RelationPath
getOrCreateRef
(JavaScriptObject jsObj) getPath()
A slash-separated path consisting of each DataSource ID in the path between source and targetsetDistance
(Integer distance) A number representing the distance between source and target DataSources.A slash-separated path consisting of each DataSource ID in the path between source and targetMethods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
RelationPath
public RelationPath() -
RelationPath
-
-
Method Details
-
getOrCreateRef
-
setDistance
A number representing the distance between source and target DataSources. Equal to the number of separators in thepath
.- Parameters:
distance
- New distance value. Default value is null- Returns:
RelationPath
instance, for chaining setter calls
-
getDistance
A number representing the distance between source and target DataSources. Equal to the number of separators in thepath
.- Returns:
- Current distance value. Default value is null
-
setPath
A slash-separated path consisting of each DataSource ID in the path between source and target- Parameters:
path
- New path value. Default value is null- Returns:
RelationPath
instance, for chaining setter calls
-
getPath
A slash-separated path consisting of each DataSource ID in the path between source and target- Returns:
- Current path value. Default value is null
-