public class AjaxTree extends WOComponent
Name | Description |
---|---|
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.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._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.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
__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, variableWithName
public AjaxTree(WOContext context)
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class WOComponent
public NSArray nodes()
protected void _fillInOpenNodes(Object node, NSMutableArray nodes, boolean showNode)
public void reset()
reset
in class WOComponent
protected void resetTree()
public void appendToResponse(WOResponse aResponse, WOContext aContext)
appendToResponse
in class WOComponent
public void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
takeValuesFromRequest
in class WOComponent
public WOActionResults invokeAction(WORequest aRequest, WOContext aContext)
invokeAction
in class WOComponent
public void setItem(Object item)
public Object item()
public boolean isLeaf()
public boolean isExpanded()
public int _closeCount()
public int lastCloseCount()
public void setTreeModel(AjaxTreeModel treeModel)
public AjaxTreeModel treeModel()
public String id()
protected String stringValueForBinding(String bindingName, String defaultValue)
public String collapsedImage()
public String collapsedImageFramework()
public String expandedImage()
public String expandedImageFramework()
public String leafImage()
public String leafImageFramework()
public String imageLinkClass()
public String nodeItem()
public String _toggleFunctionName()
public WOActionResults expand()
public WOActionResults collapse()
Copyright © 2002 – 2024 Project Wonder.