WebObjects 5.4.2

com.webobjects.woextensions
Class WOAnyField

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.woextensions.WOAnyField
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable

public class WOAnyField
extends WOComponent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
protected static String DEFAULT_DATE_FORMAT
           
protected static String DEFAULT_NUMBER_FORMAT
           
 String selectedKeyItem
           
 String selectedOperatorItem
           
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
WOAnyField(WOContext aContext)
           
 
Method Summary
 WODisplayGroup displayGroup()
           
 void finalize()
           
 String formatterForKey(String key)
           
 void invalidateCaches()
           
 boolean isStateless()
          By default, this method returns false, indicating that state will be maintained for instances of the receiver.
 String relationshipKey()
           
 void reset()
          Allows a stateless component to reset temporary references.
 String selectedKey()
           
 String selectedOperator()
           
 void setSelectedKey(String key)
           
 void setSelectedOperator(String anOperator)
           
 void setTextFieldValue(String value)
           
 void setValue(Object newValue)
           
 String textFieldValue()
           
 Object value()
           
 String valueClassNameForKey(String key)
           
 
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, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_DATE_FORMAT

protected static String DEFAULT_DATE_FORMAT

DEFAULT_NUMBER_FORMAT

protected static String DEFAULT_NUMBER_FORMAT

selectedKeyItem

public String selectedKeyItem

selectedOperatorItem

public String selectedOperatorItem
Constructor Detail

WOAnyField

public WOAnyField(WOContext aContext)
Method Detail

isStateless

public boolean isStateless()
Description copied from class: WOComponent
By default, this method returns false, indicating that state will be maintained for instances of the receiver. Overriding this method to return true will make the component stateless. A single instance of each stateless component is shared between multiple sessions, reducing the application's memory footprint.

By default, stateless components don't synchronize. So, if you override this method to return true and you want the component to synchronize, you must also override synchronizesVariablesWithBindings and return true.

Overrides:
isStateless in class WOComponent
Returns:
true if this method is overidden, false otherwise
See Also:
WOComponent.reset(), WOComponent.synchronizesVariablesWithBindings()

relationshipKey

public String relationshipKey()

selectedKey

public String selectedKey()

setSelectedKey

public void setSelectedKey(String key)

valueClassNameForKey

public String valueClassNameForKey(String key)

formatterForKey

public String formatterForKey(String key)

displayGroup

public WODisplayGroup displayGroup()

selectedOperator

public String selectedOperator()

setSelectedOperator

public void setSelectedOperator(String anOperator)

value

public Object value()

setValue

public void setValue(Object newValue)

textFieldValue

public String textFieldValue()

setTextFieldValue

public void setTextFieldValue(String value)

invalidateCaches

public void invalidateCaches()

finalize

public void finalize()
              throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

reset

public void reset()
Description copied from class: WOComponent
Allows a stateless component to reset temporary references. This method -- which is only invoked if the component is stateless -- allows a component instance to reset or delete temporary references to objects that are specific to a given context. To ensure that when the shared instance of a component is reused by another session there are no side effects, implement this method so that it releases and sets to null each of the component's instance variables.

Overrides:
reset in class WOComponent
See Also:
WOComponent.isStateless()

Last updated June 2008

Copyright © 2000-2008 Apple Inc.