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 SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 DiscoverTreeSettingsgetOrCreateRef(JavaScriptObject jsObj) Determines how to scan for theTree.childrenPropertyWhat to do if there is more than one possibleTree.childrenPropertywhen 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.childrenPropertysetTieMode(TieMode tieMode) What to do if there is more than one possibleTree.childrenPropertywhen 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.DataClassapplyFactoryProperties, 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- 
DiscoverTreeSettingspublic DiscoverTreeSettings()
- 
DiscoverTreeSettings
 
- 
- 
Method Details- 
getOrCreateRef
- 
setChildrenModeWhen 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:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getChildrenModeWhen 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
 
- 
setNamePropertyFor 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:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getNamePropertyFor 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
 
- 
setNewChildrenPropertyWhat to rename the array of children once discovered. If not set, it will default to the value ofTree.childrenPropertyinside discoverTree()- Parameters:
- newChildrenProperty- New newChildrenProperty value. Default value is null (see below)
- Returns:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getNewChildrenPropertyWhat to rename the array of children once discovered. If not set, it will default to the value ofTree.childrenPropertyinside discoverTree()- Returns:
- Current newChildrenProperty value. Default value is null (see below)
 
- 
setScanModeDetermines how to scan for theTree.childrenProperty- Parameters:
- scanMode- New scanMode value. Default value is ScanMode.BRANCH
- Returns:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getScanModeDetermines how to scan for theTree.childrenProperty- Returns:
- Current scanMode value. Default value is ScanMode.BRANCH
 
- 
setTieModeWhat to do if there is more than one possibleTree.childrenPropertywhen using scanMode "branch" or "level"- Parameters:
- tieMode- New tieMode value. Default value is TieMode.NODE
- Returns:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getTieModeWhat to do if there is more than one possibleTree.childrenPropertywhen using scanMode "branch" or "level"- Returns:
- Current tieMode value. Default value is TieMode.NODE
 
- 
setTypePropertyEach 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:
- DiscoverTreeSettingsinstance, for chaining setter calls
 
- 
getTypePropertyEach 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
 
 
-