WebObjects 5.4.2

Class WOTable

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

public class WOTable
extends WOComponent

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
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
 int currentCol
 int currentRow
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
Constructor Summary
WOTable(WOContext aContext)
Method Summary
 int colCount()
 boolean isStateless()
          By default, this method returns false, indicating that state will be maintained for instances of the receiver.
 NSArray list()
 int maxColumns()
 void pushItem()
 void reset()
          Allows a stateless component to reset temporary references.
 int rowCount()
 void setCurrentCol(Number newValue)
 void setCurrentRow(Number newValue)
 void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
          Tells the component to synchronize its variables with values from the request.
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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public int currentRow


public int currentCol
Constructor Detail


public WOTable(WOContext aContext)
Method Detail


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.

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


public NSArray list()


public int maxColumns()


public int rowCount()


public int colCount()


public void setCurrentRow(Number newValue)


public void pushItem()


public void setCurrentCol(Number newValue)


public void takeValuesFromRequest(WORequest aRequest,
                                  WOContext aContext)
Description copied from class: WOComponent
Tells the component to synchronize its variables with values from the request. It is systematically called during the first phase of the component request handling. All WOComponent objects associated with a request are called with this method during the first phase of the request-response loop. The default WOComponent behavior is to invoke the method on the root WOElement object of the component's template (returned by template(). In this phase, each dynamic element in the template extracts any entered data or changed state (such as a check in a check box) associated with an attribute and assigns the value to the component variable bound to the attribute. Subclasses of WOComponent can override this method to replace or supplement the default behavior with custom logic.

takeValuesFromRequest in class WOComponent
aRequest - the current request with the WOComponent object
aContext - context of a transaction
See Also:
WOComponent.appendToResponse(WOResponse aResponse, WOContext aContext), WOComponent.invokeAction(WORequest aRequest, WOContext aContext)


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.

reset in class WOComponent
See Also:

Last updated June 2008

Copyright © 2000-2008 Apple Inc.