public class AjaxInPlace
extends com.webobjects.appserver.WOComponent
HTML:
<webobject name = "ExampleInPlace"> <webobject name = "View">View: <webobject name = "Value"/></webobject> <webobject name = "Edit">Edit: <webobject name = "ValueField"/></webobject> </webobject>WOD:
ExampleInPlace : AjaxInPlace { } View : ERXWOTemplate { templateName = "view"; } Value : WOString { value = value; } Edit : ERXWOTemplate { templateName = "edit"; } ValueField : WOTextField { value = value; }
Name | Description |
---|---|
class | the class used on the top container |
id | the id used on various parts of this component |
saveLabel | the label to show on the save button |
saveAction | the action to invoke on save |
saveUpdateContainerID | by default save updates the container specified in "id", but you can override that with this binding |
saveClass | the class of the save button |
canSave | if true, the results are saved; if false, the user is not allowed to leave edit mode |
onSaveClick | the action to fire when save is clicked |
onSaveSuccess | the javascript function to execute after a successful save |
onSaveFailure | the javascript function to execute after a failed save |
onSaving | the javascript action to fire when saving |
button | if true, the save action is a button; if false, it's a link |
submitOnSave | if true, the save button is an AjaxSubmitButton; if false, it's an AjaxUpdateLink (which will not actually submit a form -- you would have to do some work here) // PROTOTYPE FUNCTIONS |
saveInsertion | the insertion function to use on save |
saveInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
saveBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
saveAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
cancelLabel | the label to show on the cancel button |
cancelAction | the action to invoke on cancel |
cancelUpdateContainerID | by default cancel updates the container specified in "id", but you can override that with this binding |
cancelClass | the class of the cancel button |
onCancelClick | the action to fire when cancel is clicked |
onCancelSuccess | the javascript function to execute after a successful cancel |
onCancelFailure | the javascript function to execute after a failed cancel |
onCancelling | the javascript action to fire when cancelling // PROTOTYPE FUNCTIONS |
cancelInsertion | the insertion function to use on cancel |
cancelInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
cancelBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
cancelAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
editClass | the class of the div that you click on to trigger edit mode (yes this name sucks) |
formClass | the class of the form around the edit view |
canEdit | if true, edit mode is entered; if false, view mode remains active |
editOnly | if true, edit mode is locked on (and save controls don't show if it's in a parent form); if false, you can switch between edit and view mode |
onEditClick | the action to fire when edit mode is triggered |
onEditSuccess | the javascript function to execute after a successful edit |
onEditFailure | the javascript function to execute after a failed edit |
onEditing | the javascript action to fire when editing mode is loading // PROTOTYPE FUNCTIONS |
editInsertion | the insertion function to use on edit |
editInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
editBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
editAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
onRefreshComplete | the javascript function to execute after refreshing the container |
disabled | whether or not edit mode should be disabled |
manualControl | if true, it is up to you to provide click-to-edit, save, and cancel controls |
manualViewControl | if true, it is up to you to provide click-to-edit controls |
manualEditControl | if true, it is up to you to provide save and cancel controls |
style | the style of the top level container |
elementName | the name of the container element (defaults to "div") |
formSerializer | the name of the javascript function to call to serialize the form |
onsubmit | pass through onsubmit to form |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
AjaxInPlace(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(com.webobjects.appserver.WOResponse aResponse,
com.webobjects.appserver.WOContext aContext) |
boolean |
button() |
com.webobjects.appserver.WOActionResults |
cancel() |
String |
cancelFunctionCall() |
String |
cancelFunctionName() |
String |
cancelUpdateContainerID() |
boolean |
canEdit() |
boolean |
canSave() |
boolean |
changingToEdit() |
boolean |
changingToView() |
String |
cleanupFunction() |
boolean |
disabled() |
boolean |
disableForm() |
String |
editFunctionCall() |
String |
editFunctionName() |
boolean |
editing() |
boolean |
editOnly() |
String |
elementName() |
String |
formName() |
String |
id() |
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest aRequest,
com.webobjects.appserver.WOContext aContext) |
boolean |
linkOnSave() |
boolean |
manualControl() |
boolean |
manualEditControl() |
boolean |
manualViewControl() |
com.webobjects.appserver.WOActionResults |
save() |
String |
saveFunctionCall() |
String |
saveFunctionName() |
String |
saveLabel() |
String |
saveUpdateContainerID() |
void |
setEditing(boolean editing) |
com.webobjects.appserver.WOActionResults |
startEditing() |
boolean |
submitOnSave() |
boolean |
synchronizesVariablesWithBindings() |
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest aRequest,
com.webobjects.appserver.WOContext aContext) |
String |
updateFunctionName() |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class com.webobjects.appserver.WOComponent
public String elementName()
public String id()
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest aRequest, com.webobjects.appserver.WOContext aContext)
invokeAction
in class com.webobjects.appserver.WOComponent
public void takeValuesFromRequest(com.webobjects.appserver.WORequest aRequest, com.webobjects.appserver.WOContext aContext)
takeValuesFromRequest
in class com.webobjects.appserver.WOComponent
public void appendToResponse(com.webobjects.appserver.WOResponse aResponse, com.webobjects.appserver.WOContext aContext)
appendToResponse
in class com.webobjects.appserver.WOComponent
public String saveUpdateContainerID()
public String cancelUpdateContainerID()
public String saveLabel()
public String formName()
public boolean button()
public boolean submitOnSave()
public boolean linkOnSave()
public boolean disableForm()
public String updateFunctionName()
public String editFunctionName()
public String editFunctionCall()
public String saveFunctionName()
public String saveFunctionCall()
public String cancelFunctionName()
public String cancelFunctionCall()
public boolean manualControl()
public boolean manualEditControl()
public boolean manualViewControl()
public boolean disabled()
public boolean editOnly()
public boolean editing()
public boolean canEdit()
public boolean canSave()
public boolean changingToEdit()
public boolean changingToView()
public void setEditing(boolean editing)
public String cleanupFunction()
public com.webobjects.appserver.WOActionResults startEditing()
public com.webobjects.appserver.WOActionResults save()
public com.webobjects.appserver.WOActionResults cancel()
Copyright © 2002 – 2020 Project Wonder.