er.extensions
Class ERXNavigationMenuItem
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.ERXNonSynchronizingComponent
er.extensions.ERXStatelessComponent
er.extensions.ERXNavigationMenuItem
- All Implemented Interfaces:
- Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
- public class ERXNavigationMenuItem
- extends ERXStatelessComponent
Please read "Documentation/Navigation.html" to fnd out how to use the navigation components.
- See Also:
- Serialized Form
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Methods inherited from class er.extensions.ERXNonSynchronizingComponent |
booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, dynamicBindings, intValueForBinding, localizer, objectValueForBinding, objectValueForBinding, stringValueForBinding, stringValueForBinding, synchronizesVariablesWithBindings |
Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
log
public static final ERXLogger log
- logging support
_navigationItem
protected ERXNavigationItem _navigationItem
_navigationState
protected ERXNavigationState _navigationState
_linkDirectlyToDirectActions
protected boolean _linkDirectlyToDirectActions
_level
protected int _level
_isDisabled
protected Boolean _isDisabled
_meetsDisplayConditions
protected Boolean _meetsDisplayConditions
_isSelected
protected Boolean _isSelected
_hasActivity
protected Boolean _hasActivity
_redirect
protected WOComponent _redirect
ERXNavigationMenuItem
public ERXNavigationMenuItem(WOContext context)
reset
public void reset()
- Overrides:
reset
in class ERXStatelessComponent
navigationState
public ERXNavigationState navigationState()
directActionRedirect
public WOComponent directActionRedirect()
- AK This is only an experiment: when calling up a DA, we use a component action and redirect to the actual DA
contextComponentActionURL
public String contextComponentActionURL()
menuItemSelected
public WOComponent menuItemSelected()
meetsDisplayConditions
public boolean meetsDisplayConditions()
- Decides whether the item gets displayed at all.
This is done by evaluating the boolean value of a "conditions" array in the definition file.
eg: conditions = ("session.user.canEditThisStuff", "session.user.isEditor")
will display the item only if the user can edit this stuff *and* is an editor.
navigationItem
public ERXNavigationItem navigationItem()
isDisabled
public boolean isDisabled()
isSelected
public boolean isSelected()
level
public int level()
linkClass
public String linkClass()
tdColor
public String tdColor()
resolveValue
public Object resolveValue(String key)
hasActivity
public boolean hasActivity()
hasActivityAndIsEnabled
public boolean hasActivityAndIsEnabled()
displayName
public String displayName()
Copyright © 2002 – 2004 Project Wonder.