public class AjaxTree
extends com.webobjects.appserver.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) |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
AjaxTree(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
int |
_closeCount() |
protected void |
_fillInOpenNodes(Object node,
NSMutableArray nodes,
boolean showNode) |
String |
_toggleFunctionName() |
void |
appendToResponse(com.webobjects.appserver.WOResponse aResponse,
com.webobjects.appserver.WOContext aContext) |
com.webobjects.appserver.WOActionResults |
collapse() |
String |
collapsedImage() |
String |
collapsedImageFramework() |
com.webobjects.appserver.WOActionResults |
expand() |
String |
expandedImage() |
String |
expandedImageFramework() |
String |
id() |
String |
imageLinkClass() |
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest aRequest,
com.webobjects.appserver.WOContext aContext) |
boolean |
isExpanded() |
boolean |
isLeaf() |
Object |
item() |
int |
lastCloseCount()
Count of /ul /li close elements at the end of the tree.
|
String |
leafImage() |
String |
leafImageFramework() |
String |
nodeItem() |
NSArray |
nodes() |
void |
reset() |
protected void |
resetTree() |
void |
setItem(Object item) |
void |
setTreeModel(AjaxTreeModel treeModel) |
protected String |
stringValueForBinding(String bindingName,
String defaultValue) |
boolean |
synchronizesVariablesWithBindings() |
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest aRequest,
com.webobjects.appserver.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, variableWithName
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class com.webobjects.appserver.WOComponent
public NSArray nodes()
protected void _fillInOpenNodes(Object node, NSMutableArray nodes, boolean showNode)
public void reset()
reset
in class com.webobjects.appserver.WOComponent
protected void resetTree()
public void appendToResponse(com.webobjects.appserver.WOResponse aResponse, com.webobjects.appserver.WOContext aContext)
appendToResponse
in class com.webobjects.appserver.WOComponent
public void takeValuesFromRequest(com.webobjects.appserver.WORequest aRequest, com.webobjects.appserver.WOContext aContext)
takeValuesFromRequest
in class com.webobjects.appserver.WOComponent
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest aRequest, com.webobjects.appserver.WOContext aContext)
invokeAction
in class com.webobjects.appserver.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 com.webobjects.appserver.WOActionResults expand()
public com.webobjects.appserver.WOActionResults collapse()
Copyright © 2002 – 2020 Project Wonder.