er.directtoweb
Class ERD2WPickListPage
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WPage
er.directtoweb.ERD2WPage
er.directtoweb.ERD2WListPage
er.directtoweb.ERD2WPickListPage
- All Implemented Interfaces:
- Cloneable, DTWGeneration, EditRelationshipPageInterface, ERDBranchInterface, ERDListPageInterface, ERDPickPageInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, ListPageInterface, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, SelectPageInterface, Serializable, WOActionResults
- Direct Known Subclasses:
- ERD2WPickListPageTemplate
- public class ERD2WPickListPage
- extends ERD2WListPage
- implements ERDPickPageInterface, EditRelationshipPageInterface
Allows the selection of one or more objects from a set of EOs. Can also be used directly as a
EditRelationshipPage for editing to-one and to-many relationships.
- See Also:
- Serialized Form
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Fields inherited from class er.directtoweb.ERD2WPage |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationLog |
Methods inherited from class er.directtoweb.ERD2WListPage |
alternatingColorForRow, appendToResponse, backgroundColorForRow, colorForRow, defaultSortKey, deleteObjectAction, descriptionForResponse, displayGroup, editingContextDidSaveChanges, editObjectAction, finalize, formTargetJavaScriptUrl, inspectObjectAction, invokeAction, isEntityEditable, isEntityInspectable, isEntityReadOnly, isListEmpty, isSelecting, isSelectingNotTopLevel, listSize, localInstanceOfObject, numberOfObjectsPerBatch, printerFriendlyVersion, printerFriendlyVersion, referenceEOs, selectedObject, selectObjectAction, setBackgroundColorForRow, setDataSource, setSelectedObject, setSortOrderingsOnDisplayGroup, setupPhase, shouldShowSelectAll, sortOrderings, takeValuesFromRequest, targetString, urlForCurrentState, userPreferencesCanSpecifySorting, warmUpForDisplay |
Methods inherited from class er.directtoweb.ERD2WPage |
allConfigurationNames, awake, branch, branchChoices, branchName, clearValidationFailed, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, editingContext, errorMessage, errorMessages, hasBranchChoices, hasValidationExceptionForPropertyKey, isEmbedded, isObjectDeleteable, isObjectEditable, isObjectInspectable, nextPage, nextPageDelegate, now, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setObject, shouldCollectValidationExceptions, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, validationFailedWithException |
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, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, object, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames |
Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, 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, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForKey, valueForKeyPath |
log
public static final ERXLogger log
- logging support
selectedObjects
protected NSMutableArray selectedObjects
- holds the selected objects
dummy
public String dummy
- IE sometimes won't submit the form if it only has checkboxes, we bind
this to a WOHiddenField.
_singleSelection
public Boolean _singleSelection
- Caches if we are in single selection mode.
_masterObject
public EOEnterpriseObject _masterObject
- These are set when we are in edit-relationship mode.
_relationshipKey
public String _relationshipKey
ERD2WPickListPage
public ERD2WPickListPage(WOContext context)
- Public constructor.
- Parameters:
context
- current context
showCancel
public boolean showCancel()
- Determines if the cancel button should be shown.
- Overrides:
showCancel
in class ERD2WListPage
- Returns:
- if we have a nextPage set
checked
public boolean checked()
setChecked
public void setChecked(boolean newChecked)
selectedObjects
public NSArray selectedObjects()
- Specified by:
selectedObjects
in interface ERDPickPageInterface
setSelectedObjects
public void setSelectedObjects(NSArray selectedObjects)
- Specified by:
setSelectedObjects
in interface ERDPickPageInterface
cancelPage
public WOComponent cancelPage()
- Specified by:
cancelPage
in interface ERDPickPageInterface
setCancelPage
public void setCancelPage(WOComponent cp)
- Specified by:
setCancelPage
in interface ERDPickPageInterface
backAction
public WOComponent backAction()
- Overrides:
backAction
in class ERD2WListPage
setChoices
public void setChoices(NSArray choices)
- Specified by:
setChoices
in interface ERDPickPageInterface
selectAll
public WOComponent selectAll()
unselectAll
public WOComponent unselectAll()
singleSelection
public boolean singleSelection()
selectionWidgetName
public String selectionWidgetName()
setMasterObjectAndRelationshipKey
public void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo,
String relationshipName)
- Specified by:
setMasterObjectAndRelationshipKey
in interface EditRelationshipPageInterface
Copyright © 2002 – 2004 Project Wonder.