com.webobjects.directtoweb
Class D2WEditNumber
java.lang.Object
  |
  +--com.webobjects.appserver.WOElement
        |
        +--com.webobjects.appserver.WOComponent
              |
              +--com.webobjects.directtoweb.D2WComponent
                    |
                    +--com.webobjects.directtoweb.D2WStatelessComponent
                          |
                          +--com.webobjects.directtoweb.EditComponent
                                |
                                +--com.webobjects.directtoweb.D2WEditNumber
- All Implemented Interfaces: 
 - Cloneable, com.webobjects.directtoweb.generation.DTWGeneration, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
 
- public class D2WEditNumber
- extends EditComponent
- implements com.webobjects.directtoweb.generation.DTWGeneration
   
D2WEditNumber is a property-level component that provides a text field for
 the user to enter a number.  It also converts the entered text into a
 Number object with the help of a formatter that you can specify.
 
Property-level components are not accessed programmatically.
 Instead, you use the Web Assistant or Rule Editor to choose the
 property-level component that Direct to Web uses to display a property
 on a particular entity and task page.
 If you want to create a property-level component to edit a property,
 use D2WCustomComponent.
- See Also:
 D2WCustomComponent, 
Serialized Form
 
 
 
 
 
 
 
 
 
| 
Constructor Summary | 
D2WEditNumber(WOContext aContext)
 
          Creates an instance of D2WEditNumber with the specified context. | 
 
 
 
 
| Methods inherited from class com.webobjects.directtoweb.D2WComponent | 
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setLocalContext, setObject, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames | 
 
| Methods inherited from class com.webobjects.appserver.WOComponent | 
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, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateValueForKey, valueForBinding, valueForKey, valueForKeyPath | 
 
 
D2WEditNumber
public D2WEditNumber(WOContext aContext)
- Creates an instance of D2WEditNumber with the specified context.
 - Parameters:
 aContext - instance of WOContext- See Also:
 EditComponent.EditComponent(WOContext)
isDecimalNumber
public boolean isDecimalNumber()
- Provides the 
useDecimalNumber value for a WOTextField.
 Returns whether the attribute is a decimal number.
 The current implementation returns false if the class name of the
 attribute is equal to "java.lang.Number"; true otherwise.
 The implementation is subject to change in future releases.
 
- Returns:
 - true if the attribute is a decimal number; false otherwise.
 - See Also:
 D2WComponent.attribute()
 
 
replacementAssociationForAssociation
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation,
                                                          String oldBinding,
                                                          com.webobjects.directtoweb.generation.DTWTemplate aTemplate,
                                                          WOContext aContext)
- Replaces the binding 
isDecimalNumber.
 The implementation is subject to change in future releases.
- Specified by:
 replacementAssociationForAssociation in interface com.webobjects.directtoweb.generation.DTWGeneration- Overrides:
 replacementAssociationForAssociation in class EditComponent
 
- Parameters:
 oldAssociation - instance of WOAssociationoldBinding - instance of StringaTemplate - instance of DTWTemplateaContext - instance of WOContext
- Returns:
 - instance of WOAssociation
 - See Also:
 isDecimalNumber(), 
EditComponent.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
 
 
Copyright © 2003 Apple Computer, Inc.