ariba.ui.aribaweb.core
Class AWConcreteTemplate
java.lang.Object
ariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWBaseElement
ariba.ui.aribaweb.core.AWTemplate
ariba.ui.aribaweb.core.AWConcreteTemplate
- All Implemented Interfaces:
- AWCycleable, AWCycleableReference, AWElement, AWElementContaining, AWVisitable, AWObject, java.lang.Cloneable
public final class AWConcreteTemplate
- extends AWTemplate
- implements AWElementContaining
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AWConcreteTemplate
public AWConcreteTemplate()
_elements
public AWElement[] _elements()
_elementCount
public int _elementCount()
add
public void add(AWElement element)
- Specified by:
add
in interface AWElementContaining
hasElements
public boolean hasElements()
- Specified by:
hasElements
in class AWTemplate
elementArray
public AWElement[] elementArray()
- Specified by:
elementArray
in class AWTemplate
extractElementsOfClass
public AWElement[] extractElementsOfClass(java.lang.Class targetClass)
- Specified by:
extractElementsOfClass
in class AWTemplate
indexOfNamedSubtemplate
public int indexOfNamedSubtemplate(java.lang.String templateName,
AWComponent component)
- Specified by:
indexOfNamedSubtemplate
in class AWTemplate
subtemplateAt
public AWContent subtemplateAt(int index)
- Specified by:
subtemplateAt
in class AWTemplate
validated
public boolean validated()
- Specified by:
validated
in class AWTemplate
subtemplateForName
public AWContent subtemplateForName(java.lang.String templateName,
AWComponent component)
applyValues
public void applyValues(AWRequestContext requestContext,
AWComponent component)
- Description copied from interface:
AWCycleable
- The receiver should take any form values (or query string parameters) that it owns from the
AWRequestContext.request()
.
- Specified by:
applyValues
in interface AWCycleable
- Overrides:
applyValues
in class AWBaseElement
- 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 AWBaseElement
- Parameters:
requestContext
- the context for the current request.component
- the current parent component
- Returns:
- the response for the action
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 AWBaseElement
- Parameters:
requestContext
- the context for the current request.component
- the current parent component
validate
public void validate(AWValidationContext validationContext,
AWComponent component)
- Description copied from class:
AWBaseElement
- Checks for things like valid binding names and definitions. Logs all errors and warnings.
This is the default, which is to do nothing.
- Specified by:
validate
in interface AWElement
- Overrides:
validate
in class AWBaseElement
removeApiTag
public AWApi removeApiTag()
appendTo
public void appendTo(java.lang.StringBuffer buffer)
- Append a representation of this template to the buffer. The representation
should match the original template parsed except where ordering of
constructs is not required (ie, ordering of bindings).
- Specified by:
appendTo
in interface AWElement
- Overrides:
appendTo
in class AWBaseElement
- Parameters:
buffer
-
startVisit
public void startVisit(AWVisitor visitor)
- Specified by:
startVisit
in interface AWVisitable
- Overrides:
startVisit
in class AWBaseElement
toString
public java.lang.String toString()
- Overrides:
toString
in class AWBaseElement
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.