Project Wonder 5.0

er.extensions.components
Class ERXStyledContainer

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by com.webobjects.appserver._private.WOGenericElement
                      extended by com.webobjects.appserver._private.WOGenericContainer
                          extended by er.extensions.components.ERXStyledContainer

public class ERXStyledContainer
extends com.webobjects.appserver._private.WOGenericContainer

Same as a WOGenericContainer, except that you can add individual style attributes by supplying style.background-color="red" bindings. This is sometimes preferable to putting all the styles in code.
If a normal style attribute is present, its value will be prepended. You can also define a background-image and a style.background-image.type (mime type of the image in case it is an NSData). Some fixing will be done for you, like you can give a style.unit which will be applied to all bindings that evalutate to a number. If none is supplied, "px" is appended to make size definitions settable via plain numerical bindings.

Author:
ak

Field Summary
 
Fields inherited from class com.webobjects.appserver._private.WOGenericElement
_elementId
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXStyledContainer(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement template)
           
 
Method Summary
 void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse, com.webobjects.appserver.WOContext wocontext)
           
 
Methods inherited from class com.webobjects.appserver._private.WOGenericContainer
appendToResponse, invokeAction, takeValuesFromRequest
 
Methods inherited from class com.webobjects.appserver._private.WOGenericElement
_elementNameInContext, toString
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendAttributesFromAssociationsToResponse, _appendCloseTagToResponse, _appendOpenTagToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributesRepresentation, elementName, escapeHTML, nonUrlAttributeAssociations, urlAttributeAssociations
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXStyledContainer

public ERXStyledContainer(java.lang.String name,
                          com.webobjects.foundation.NSDictionary associations,
                          com.webobjects.appserver.WOElement template)
Method Detail

appendAttributesToResponse

public void appendAttributesToResponse(com.webobjects.appserver.WOResponse woresponse,
                                       com.webobjects.appserver.WOContext wocontext)
Overrides:
appendAttributesToResponse in class com.webobjects.appserver._private.WOGenericElement

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.