ariba.ui.meta.core
Class MetaIncludeComponent

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.core.AWBaseElement
          extended by ariba.ui.aribaweb.core.AWBindableElement
              extended by ariba.ui.aribaweb.core.AWContainerElement
                  extended by ariba.ui.aribaweb.core.AWIncludeComponent
                      extended by ariba.ui.meta.core.MetaIncludeComponent
All Implemented Interfaces:
AWBindable, AWCycleable, AWCycleableReference, AWElement, AWElementContaining, AWVisitable, AWObject, java.lang.Cloneable

public class MetaIncludeComponent
extends AWIncludeComponent

MetaIncludeComponent is (along with MetaContext) the key element for binding MetaUI into AribaWeb user interfaces. MetaIncludeComponent dynamically switches in an AWComponent (or other AWElement) based on the current MetaContext's 'component' property and sets its bindings from the 'bindings' property. This alone enables almost any existing AW widget to be specified for use for a particular field or layout using rules -- without any additional glue code or "adaptor components". MetaIncludeComponent support additional, more sophisticated, component bindings: wrapping the main component using 'wrapperComponent' and 'wrapperBindings', binding component content using the bindings 'awcontent' and 'awcontentElement', and event binding named Content templates using an 'awcontentLayouts' map binding.


Field Summary
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
MetaIncludeComponent()
           
 
Method Summary
 void init(java.lang.String tagName, java.util.Map bindingsHashtable)
           
 AWResponseGenerating invokeAction(AWRequestContext requestContext, AWComponent component)
          The receiver should determine if it is the intended recipient of the current action (by checking the AWRequestContext.request() AWRequest.senderId()) and, if so, handle the action and return the result.
 void renderResponse(AWRequestContext requestContext, AWComponent component)
          The receiver should render its content to the AWRequestContext.response()
 
Methods inherited from class ariba.ui.aribaweb.core.AWIncludeComponent
_currentComponentReference, allBindings, applyValues, isKindOfClass
 
Methods inherited from class ariba.ui.aribaweb.core.AWContainerElement
add, appendTo, contentElement, continueVisit, setContentElement, validate
 
Methods inherited from class ariba.ui.aribaweb.core.AWBindableElement
determineInstance, tagName
 
Methods inherited from class ariba.ui.aribaweb.core.AWBaseElement
bareStringContent, clone, determineInstance, lineNumber, setLineNumber, setTemplateName, startVisit, templateName, toString
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ariba.ui.aribaweb.core.AWElement
clone
 
Methods inherited from interface ariba.ui.aribaweb.core.AWCycleableReference
determineInstance
 
Methods inherited from interface ariba.ui.aribaweb.util.AWObject
getFieldValue, init, setFieldValue
 
Methods inherited from interface ariba.ui.aribaweb.core.AWVisitable
startVisit
 

Constructor Detail

MetaIncludeComponent

public MetaIncludeComponent()
Method Detail

init

public void init(java.lang.String tagName,
                 java.util.Map bindingsHashtable)
Specified by:
init in interface AWBindable
Overrides:
init in class AWIncludeComponent

renderResponse

public void renderResponse(AWRequestContext requestContext,
                           AWComponent component)
Description copied from interface: AWCycleable
The receiver should render its content to the AWRequestContext.response()

Specified by:
renderResponse in interface AWCycleable
Overrides:
renderResponse in class AWIncludeComponent
Parameters:
requestContext - the context for the current request.
component - the current parent component

invokeAction

public AWResponseGenerating invokeAction(AWRequestContext requestContext,
                                         AWComponent component)
Description copied from interface: AWCycleable
The receiver should determine if it is the intended recipient of the current action (by checking the AWRequestContext.request() AWRequest.senderId()) and, if so, handle the action and return the result.

Specified by:
invokeAction in interface AWCycleable
Overrides:
invokeAction in class AWIncludeComponent
Parameters:
requestContext - the context for the current request.
component - the current parent component
Returns:
the response for the action


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.