Package com.smartgwt.client.widgets.tree
Class DiscoverTreeSettings
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.tree.DiscoverTreeSettings
- All Implemented Interfaces:
HasHandlers
Defines a set of properties that specify how the tree will be explored by
Tree.discoverTree()
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWhen heuristically finding a property that appears to contain child objects, the childrenMode determines how to chose the property that appears to contain child objectsFor string leaf nodes (if allowed), the name of the property to store the string under in the auto-created objectWhat to rename the array of children once discovered.static DiscoverTreeSettings
getOrCreateRef
(JavaScriptObject jsObj) Determines how to scan for theTree.childrenProperty
What to do if there is more than one possibleTree.childrenProperty
when using scanMode "branch" or "level"Each discovered child is labeled with a configurable "typeProperty" set to the value of the property that held the childrensetChildrenMode
(ChildrenPropertyMode childrenMode) When heuristically finding a property that appears to contain child objects, the childrenMode determines how to chose the property that appears to contain child objectssetNameProperty
(String nameProperty) For string leaf nodes (if allowed), the name of the property to store the string under in the auto-created objectsetNewChildrenProperty
(String newChildrenProperty) What to rename the array of children once discovered.setScanMode
(ScanMode scanMode) Determines how to scan for theTree.childrenProperty
setTieMode
(TieMode tieMode) What to do if there is more than one possibleTree.childrenProperty
when using scanMode "branch" or "level"setTypeProperty
(String typeProperty) Each discovered child is labeled with a configurable "typeProperty" set to the value of the property that held the childrenMethods 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
-
DiscoverTreeSettings
public DiscoverTreeSettings() -
DiscoverTreeSettings
-
-
Method Details
-
getOrCreateRef
-
setChildrenMode
When heuristically finding a property that appears to contain child objects, the childrenMode determines how to chose the property that appears to contain child objects- Parameters:
childrenMode
- New childrenMode value. Default value is ChildrenPropertyMode.ANY- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getChildrenMode
When heuristically finding a property that appears to contain child objects, the childrenMode determines how to chose the property that appears to contain child objects- Returns:
- Current childrenMode value. Default value is ChildrenPropertyMode.ANY
-
setNameProperty
For string leaf nodes (if allowed), the name of the property to store the string under in the auto-created object- Parameters:
nameProperty
- New nameProperty value. Default value is null- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getNameProperty
For string leaf nodes (if allowed), the name of the property to store the string under in the auto-created object- Returns:
- Current nameProperty value. Default value is null
-
setNewChildrenProperty
What to rename the array of children once discovered. If not set, it will default to the value ofTree.childrenProperty
inside discoverTree()- Parameters:
newChildrenProperty
- New newChildrenProperty value. Default value is null (see below)- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getNewChildrenProperty
What to rename the array of children once discovered. If not set, it will default to the value ofTree.childrenProperty
inside discoverTree()- Returns:
- Current newChildrenProperty value. Default value is null (see below)
-
setScanMode
Determines how to scan for theTree.childrenProperty
- Parameters:
scanMode
- New scanMode value. Default value is ScanMode.BRANCH- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getScanMode
Determines how to scan for theTree.childrenProperty
- Returns:
- Current scanMode value. Default value is ScanMode.BRANCH
-
setTieMode
What to do if there is more than one possibleTree.childrenProperty
when using scanMode "branch" or "level"- Parameters:
tieMode
- New tieMode value. Default value is TieMode.NODE- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getTieMode
What to do if there is more than one possibleTree.childrenProperty
when using scanMode "branch" or "level"- Returns:
- Current tieMode value. Default value is TieMode.NODE
-
setTypeProperty
Each discovered child is labeled with a configurable "typeProperty" set to the value of the property that held the children- Parameters:
typeProperty
- New typeProperty value. Default value is null- Returns:
DiscoverTreeSettings
instance, for chaining setter calls
-
getTypeProperty
Each discovered child is labeled with a configurable "typeProperty" set to the value of the property that held the children- Returns:
- Current typeProperty value. Default value is null
-