Project Wonder 2.0

er.extensions
Class ERXNavigationMenuItem

java.lang.Object
  extended bycom.webobjects.appserver.WOElement
      extended bycom.webobjects.appserver.WOComponent
          extended byer.extensions.ERXNonSynchronizingComponent
              extended byer.extensions.ERXStatelessComponent
                  extended byer.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 Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
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
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
protected  Boolean _hasActivity
           
protected  Boolean _isDisabled
           
protected  Boolean _isSelected
           
protected  int _level
           
protected  boolean _linkDirectlyToDirectActions
           
protected  Boolean _meetsDisplayConditions
           
protected  ERXNavigationItem _navigationItem
           
protected  ERXNavigationState _navigationState
           
protected  WOComponent _redirect
           
static ERXLogger log
          logging support
 
Fields inherited from class er.extensions.ERXNonSynchronizingComponent
_dynamicBindings
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
ERXNavigationMenuItem(WOContext context)
           
 
Method Summary
 String contextComponentActionURL()
           
 WOComponent directActionRedirect()
          AK This is only an experiment: when calling up a DA, we use a component action and redirect to the actual DA
 String displayName()
           
 boolean hasActivity()
           
 boolean hasActivityAndIsEnabled()
           
 boolean isDisabled()
           
 boolean isSelected()
           
 int level()
           
 String linkClass()
           
 boolean meetsDisplayConditions()
          Decides whether the item gets displayed at all.
 WOComponent menuItemSelected()
           
 ERXNavigationItem navigationItem()
           
 ERXNavigationState navigationState()
           
 void reset()
           
 Object resolveValue(String key)
           
 String tdColor()
           
 
Methods inherited from class er.extensions.ERXStatelessComponent
isStateless, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ERXNavigationMenuItem

public ERXNavigationMenuItem(WOContext context)
Method Detail

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()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.