
selections binding. sortKey (optional) to use in order to produce a sorted menu | ERXJSToManyRelationshipEditor | ( | WOContext | context | ) |
| String addItemScript | ( | ) |
Builds the JavaScript used to add the selected item from the selections popup to the selected items.
| void appendToResponse | ( | WOResponse | response, | |
| WOContext | context | |||
| ) |
Calls resetCachedBindingsInStatefulComponent prior to super.appendToResponse.
| response | to which we are appending | |
| context | context of the response |
Reimplemented from ERXNonSynchronizingComponent.
| String availableValuesPopupMenu | ( | ) |
Builds the select menu for adding available items to the selected items.
| NSDictionary cachedPossibleValues | ( | ) | [private] |
Builds a cached dictionary of the list item offsets and their display strings.
| Object currentItem | ( | ) |
Gets the item currently being displayed.
| String displayString | ( | ) |
Gets the display string for the current item.
| String editorContextID | ( | ) |
Gets the context ID of the editor (this component), escaped for use in JavaScript.
| String editorName | ( | ) |
Formats the name of this editor instance.
| String hiddenFieldName | ( | ) |
Formats the name of the hidden field for this editor instance.
| int indexOfObjectInArrayUsingERXEOControlUtilitiesEOEquals | ( | Object | anObject, | |
| NSArray | anArray | |||
| ) | [private] |
| void invalidateCaches | ( | ) |
Resets the state variables.
| boolean isListEmpty | ( | ) |
Determines if the list is empty
| boolean isStateless | ( | ) |
component is not stateless
Reimplemented from ERXNonSynchronizingComponent.
| int itemIndex | ( | ) |
Gets the index of the current item in the overall list.
| String javascriptForThisEditorInstance | ( | ) |
Formats the JavaScript used to initialize this instance of the editor.
| NSArray list | ( | ) |
Gets the list of items to display.
| NSArray listFromBindings | ( | ) | [private] |
Pulls the list from the list binding.
| NSArray maybeSortedList | ( | ) |
Gets the list of items and sorts it by the sort key if a sort key is available.
| String possibleValuesHashForScript | ( | ) | [private] |
Creates a JSON/JavaScript-formatted hash of the list item offsets and their display strings.
| void pushSelectionsBinding | ( | NSArray | selections | ) | [private] |
Pushes the selections up to the parent component.
| selections | array |
| String removeItemScript | ( | ) |
Builds the JavaScript used to remove the item from the selections.
| void reset | ( | ) |
Reimplemented from ERXComponent.
| String selectedValuesArrayForScript | ( | ) | [private] |
Creates a JSON/JavaScript-formatted array of the selected list items' offsets.
| String selectedValuesTableName | ( | ) |
Formats the name of the selected values table for this editor instance.
| NSArray selections | ( | ) |
Gets the selections.
| NSArray selectionsFromBindings | ( | ) | [private] |
Pulls the selections from the selections binding.
| String selectionsString | ( | ) |
Formats the selection string for the hidden field from the indexes of the items in the selection subset of the list.
| void setCurrentItem | ( | Object | anItem | ) |
Sets the item being displayed.
| anItem | to display |
| void setSelectionsString | ( | String | value | ) |
Sets the selection string from the input. Parses the input string to isolate the indexes of the selected items and looks them up in the array. Then pushes the selections up to the parent binding.
| value | of the selections string |
| void sleep | ( | ) |
NSDictionary _cachedPossibleValuesDict [private] |
String _editorContextID [private] |
NSArray _list [protected] |
NSArray _selections [protected] |
String _selectionsString [private] |
Object currentItem [protected] |
final Logger log = Logger.getLogger(ERXJSToManyRelationshipEditor.class) [static] |
1.5.8