Project Wonder 5.0

er.modern.directtoweb.assignments.defaults
Class ERMDDefaultCSSAssignment

java.lang.Object
  extended by com.webobjects.directtoweb.Assignment
      extended by er.directtoweb.assignments.ERDAssignment
          extended by er.modern.directtoweb.assignments.defaults.ERMDDefaultCSSAssignment
All Implemented Interfaces:
com.webobjects.eocontrol.EOKeyValueArchiving, ERDComputingAssignmentInterface, java.io.Serializable

public class ERMDDefaultCSSAssignment
extends ERDAssignment

Assignment class to generate the default CSS class and id values used by the ERModernLook.

See Also:
Serialized Form
Author:
davidleber

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
 
Field Summary
protected static com.webobjects.foundation.NSDictionary keys
          holds the array of keys this assignment depends upon
static org.apache.log4j.Logger log
          logging support
 
Fields inherited from class er.directtoweb.assignments.ERDAssignment
D2WContextClassArray
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
_CLASS
 
Constructor Summary
ERMDDefaultCSSAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
          Public constructor
ERMDDefaultCSSAssignment(java.lang.String key, java.lang.Object value)
          Public constructor
 
Method Summary
 java.lang.String classForAttributeColumn(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForAttributeRepetition(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.Object classForAttributeRepetitionWrapper(com.webobjects.directtoweb.D2WContext c)
          Obtains a class for the attribute repetition wrapper based on the baseClassForAttributeRepetitionWrapper
 java.lang.String classForAttributeValue(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForBanner(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForBottomActionBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForBottomBatchSize(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForBottomNavBar(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForConfirmBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmbeddedCreateBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmbeddedEditBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmbeddedInspectBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmbeddedListBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmbeddedQueryBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForEmptyLabelSpan(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForErrorBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForHeader(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForInnerWrapper(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForLabelSpan(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForObjectTable(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForObjectTableHeader(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForSection(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForTopActionBlock(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForTopBatchSize(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForTopNavBar(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String classForWrapper(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String cssClassBuilder(com.webobjects.directtoweb.D2WContext c, java.lang.String base, java.lang.String root)
          Builds a css class for page elements based on the supplied base and root.
 java.lang.String cssClassBuilderFromBaseName(com.webobjects.directtoweb.D2WContext c, java.lang.String baseName, java.lang.String rootName)
          Builds a css class for a page element Looks up the css base and root using the supplied baseName and rootName from the rules Depends on pageConfiguration, parentPageConfiguration, and task
static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
          Static constructor required by the EOKeyValueUnarchiver interface.
 com.webobjects.foundation.NSArray dependentKeys(java.lang.String keyPath)
          Implementation of the ERDComputingAssignmentInterface.
 java.lang.String idForMainBusyIndicator(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForMainContainer(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForPageConfiguration(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForPageTabContainer(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForParentMainContainer(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForParentPageConfiguration(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForPropertyContainer(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String idForRepetitionContainer(com.webobjects.directtoweb.D2WContext c)
           
 java.lang.String pageConfigAppender(com.webobjects.directtoweb.D2WContext c, java.lang.String base, java.lang.String suffix)
          Appends the pageConfiguration if it exists to a supplied base and suffix
 java.lang.String pageType(com.webobjects.directtoweb.D2WContext c)
          Builds a css friendly name for the page task.
 
Methods inherited from class er.directtoweb.assignments.ERDAssignment
booleanContextValueForKey, fire, keyForMethodLookup, localizedTemplateStringForKeyInContext, localizedValueForKeyInContext, localizedValueForKeyWithDefaultInContext, localizerForContext, logDeprecatedMessage
 
Methods inherited from class com.webobjects.directtoweb.Assignment
encodeWithKeyValueArchiver, keyPath, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
logging support


keys

protected static final com.webobjects.foundation.NSDictionary keys
holds the array of keys this assignment depends upon

Constructor Detail

ERMDDefaultCSSAssignment

public ERMDDefaultCSSAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
Public constructor

Parameters:
u - key-value unarchiver used when unarchiving from rule files.

ERMDDefaultCSSAssignment

public ERMDDefaultCSSAssignment(java.lang.String key,
                                java.lang.Object value)
Public constructor

Parameters:
key - context key
value - of the assignment
Method Detail

dependentKeys

public com.webobjects.foundation.NSArray dependentKeys(java.lang.String keyPath)
Implementation of the ERDComputingAssignmentInterface. This array of keys is used when constructing the significant keys for the passed in keyPath.

Parameters:
keyPath - to compute significant keys for.
Returns:
array of context keys this assignment depends upon.

decodeWithKeyValueUnarchiver

public static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
Static constructor required by the EOKeyValueUnarchiver interface. If this isn't implemented then the default behavior is to construct the first super class that does implement this method. Very lame.

Parameters:
eokeyvalueunarchiver - to be unarchived
Returns:
decoded assignment of this class

classForAttributeRepetitionWrapper

public java.lang.Object classForAttributeRepetitionWrapper(com.webobjects.directtoweb.D2WContext c)
Obtains a class for the attribute repetition wrapper based on the baseClassForAttributeRepetitionWrapper


classForAttributeRepetition

public java.lang.String classForAttributeRepetition(com.webobjects.directtoweb.D2WContext c)

classForLabelSpan

public java.lang.String classForLabelSpan(com.webobjects.directtoweb.D2WContext c)

classForEmptyLabelSpan

public java.lang.String classForEmptyLabelSpan(com.webobjects.directtoweb.D2WContext c)

classForAttributeValue

public java.lang.String classForAttributeValue(com.webobjects.directtoweb.D2WContext c)

classForSection

public java.lang.String classForSection(com.webobjects.directtoweb.D2WContext c)

classForHeader

public java.lang.String classForHeader(com.webobjects.directtoweb.D2WContext c)

classForBanner

public java.lang.String classForBanner(com.webobjects.directtoweb.D2WContext c)

classForTopActionBlock

public java.lang.String classForTopActionBlock(com.webobjects.directtoweb.D2WContext c)

classForBottomActionBlock

public java.lang.String classForBottomActionBlock(com.webobjects.directtoweb.D2WContext c)

classForConfirmBlock

public java.lang.String classForConfirmBlock(com.webobjects.directtoweb.D2WContext c)

classForErrorBlock

public java.lang.String classForErrorBlock(com.webobjects.directtoweb.D2WContext c)

classForTopNavBar

public java.lang.String classForTopNavBar(com.webobjects.directtoweb.D2WContext c)

classForTopBatchSize

public java.lang.String classForTopBatchSize(com.webobjects.directtoweb.D2WContext c)

classForBottomNavBar

public java.lang.String classForBottomNavBar(com.webobjects.directtoweb.D2WContext c)

classForBottomBatchSize

public java.lang.String classForBottomBatchSize(com.webobjects.directtoweb.D2WContext c)

classForWrapper

public java.lang.String classForWrapper(com.webobjects.directtoweb.D2WContext c)

classForInnerWrapper

public java.lang.String classForInnerWrapper(com.webobjects.directtoweb.D2WContext c)

classForObjectTable

public java.lang.String classForObjectTable(com.webobjects.directtoweb.D2WContext c)

classForObjectTableHeader

public java.lang.String classForObjectTableHeader(com.webobjects.directtoweb.D2WContext c)

classForAttributeColumn

public java.lang.String classForAttributeColumn(com.webobjects.directtoweb.D2WContext c)

classForEmbeddedQueryBlock

public java.lang.String classForEmbeddedQueryBlock(com.webobjects.directtoweb.D2WContext c)

classForEmbeddedListBlock

public java.lang.String classForEmbeddedListBlock(com.webobjects.directtoweb.D2WContext c)

classForEmbeddedInspectBlock

public java.lang.String classForEmbeddedInspectBlock(com.webobjects.directtoweb.D2WContext c)

classForEmbeddedCreateBlock

public java.lang.String classForEmbeddedCreateBlock(com.webobjects.directtoweb.D2WContext c)

classForEmbeddedEditBlock

public java.lang.String classForEmbeddedEditBlock(com.webobjects.directtoweb.D2WContext c)

idForMainContainer

public java.lang.String idForMainContainer(com.webobjects.directtoweb.D2WContext c)

idForRepetitionContainer

public java.lang.String idForRepetitionContainer(com.webobjects.directtoweb.D2WContext c)

idForPageTabContainer

public java.lang.String idForPageTabContainer(com.webobjects.directtoweb.D2WContext c)

idForPropertyContainer

public java.lang.String idForPropertyContainer(com.webobjects.directtoweb.D2WContext c)

idForParentMainContainer

public java.lang.String idForParentMainContainer(com.webobjects.directtoweb.D2WContext c)

idForParentPageConfiguration

public java.lang.String idForParentPageConfiguration(com.webobjects.directtoweb.D2WContext c)

idForPageConfiguration

public java.lang.String idForPageConfiguration(com.webobjects.directtoweb.D2WContext c)

idForMainBusyIndicator

public java.lang.String idForMainBusyIndicator(com.webobjects.directtoweb.D2WContext c)

pageType

public java.lang.String pageType(com.webobjects.directtoweb.D2WContext c)
Builds a css friendly name for the page task. Depends on pageConfiguration and task


cssClassBuilderFromBaseName

public java.lang.String cssClassBuilderFromBaseName(com.webobjects.directtoweb.D2WContext c,
                                                    java.lang.String baseName,
                                                    java.lang.String rootName)
Builds a css class for a page element Looks up the css base and root using the supplied baseName and rootName from the rules Depends on pageConfiguration, parentPageConfiguration, and task

Parameters:
c -
baseName -
rootName -
Returns:

cssClassBuilder

public java.lang.String cssClassBuilder(com.webobjects.directtoweb.D2WContext c,
                                        java.lang.String base,
                                        java.lang.String root)
Builds a css class for page elements based on the supplied base and root. Depends on pageConfiguration, parentPageConfiguration and task

Parameters:
c -
base -
root -
Returns:

pageConfigAppender

public java.lang.String pageConfigAppender(com.webobjects.directtoweb.D2WContext c,
                                           java.lang.String base,
                                           java.lang.String suffix)
Appends the pageConfiguration if it exists to a supplied base and suffix

Parameters:
c -
base -
suffix -
Returns:

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

Copyright © 2002 – 2007 Project Wonder.