public class AjaxTree extends WOComponent
| Bindings | |
root | the root node of the tree |
item | the current tree node (equivalent to "item" on WORepetition) |
itemClass | the class of the current item |
itemID | the id of the current item |
rootExpanded | if true, the tree will require the root node to be open; ignored if showRoot = false |
allExpanded | if true, the tree defaults to have all its nodes expanded |
parentKeyPath | the keypath to call on a node to get its parent node (ignored if delegate is set) |
childrenKeyPath | the keypath to call on a node to get its children NSArray (ignored if delegate is set) |
isLeafKeyPath | the keypath to call on a node to determine if it is a leaf node (ignored if delegate, and
defaults to return childrenKeyPath.count() == 0 if not set) |
id | the html id of the tree |
class | the html class of the tree |
treeModel | the treeModel to use (one will be created by default) |
collapsedImage | the icon to use for a collapsed node |
collapsedImageFramework | the framework to load the collapsed icon from |
expandedImage | the icon to use for an expanded node |
expandedImageFramework | the framework to load the expanded icon from |
leafImage | the icon to use for a leaf node |
leafImageFramework | the framework to load the leaf icon from |
delegate | the delegate to use instead of keypaths (see AjaxTreeModel.Delegate) |
showRoot | if false, the root node will be skipped and the tree will begin with its children |
cache | whether to cache the nodes or determine them every time from the model (default: true) |
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Modifier and Type | Method and Description |
|---|---|
int |
_closeCount() |
protected void |
_fillInOpenNodes(java.lang.Object node,
NSMutableArray nodes,
boolean showNode) |
java.lang.String |
_toggleFunctionName() |
void |
appendToResponse(WOResponse aResponse,
WOContext aContext) |
WOActionResults |
collapse() |
java.lang.String |
collapsedImage() |
java.lang.String |
collapsedImageFramework() |
WOActionResults |
expand() |
java.lang.String |
expandedImage() |
java.lang.String |
expandedImageFramework() |
java.lang.String |
id() |
java.lang.String |
imageLinkClass() |
WOActionResults |
invokeAction(WORequest aRequest,
WOContext aContext) |
boolean |
isExpanded() |
boolean |
isLeaf() |
java.lang.Object |
item() |
int |
lastCloseCount()
Count of /ul /li close elements at the end of the tree.
|
java.lang.String |
leafImage() |
java.lang.String |
leafImageFramework() |
java.lang.String |
nodeItem() |
NSArray |
nodes() |
void |
reset() |
protected void |
resetTree() |
void |
setItem(java.lang.Object item) |
void |
setTreeModel(AjaxTreeModel treeModel) |
protected java.lang.String |
stringValueForBinding(java.lang.String bindingName,
java.lang.String defaultValue) |
boolean |
synchronizesVariablesWithBindings() |
void |
takeValuesFromRequest(WORequest aRequest,
WOContext aContext) |
AjaxTreeModel |
treeModel() |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic AjaxTree(WOContext context)
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings in class WOComponentpublic NSArray nodes()
protected void _fillInOpenNodes(java.lang.Object node,
NSMutableArray nodes,
boolean showNode)
public void reset()
reset in class WOComponentprotected void resetTree()
public void appendToResponse(WOResponse aResponse, WOContext aContext)
appendToResponse in class WOComponentpublic void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
takeValuesFromRequest in class WOComponentpublic WOActionResults invokeAction(WORequest aRequest, WOContext aContext)
invokeAction in class WOComponentpublic void setItem(java.lang.Object item)
public java.lang.Object item()
public boolean isLeaf()
public boolean isExpanded()
public int _closeCount()
public int lastCloseCount()
public void setTreeModel(AjaxTreeModel treeModel)
public AjaxTreeModel treeModel()
public java.lang.String id()
protected java.lang.String stringValueForBinding(java.lang.String bindingName,
java.lang.String defaultValue)
public java.lang.String collapsedImage()
public java.lang.String collapsedImageFramework()
public java.lang.String expandedImage()
public java.lang.String expandedImageFramework()
public java.lang.String leafImage()
public java.lang.String leafImageFramework()
public java.lang.String imageLinkClass()
public java.lang.String nodeItem()
public java.lang.String _toggleFunctionName()
public WOActionResults expand()
public WOActionResults collapse()
Copyright © 2002 – 2022 Project Wonder.