|
Project Wonder 5.0.0.8787 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.extensions.components.javascript.ERXJSToManyRelationshipEditor
public class ERXJSToManyRelationshipEditor
A fancy to-many relationship editor component.
| Bindings | |
displayString | displayString |
item | item |
list | list |
selections | selections |
sortKey | sortKey |
| Nested Class Summary | |
|---|---|
static interface |
ERXJSToManyRelationshipEditor.Keys
|
| Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
|---|
WOComponent._EventLoggingEnabler, 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._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
protected NSArray |
_list
|
protected NSArray |
_selections
|
protected Object |
currentItem
|
static Logger |
log
|
| Fields inherited from class er.extensions.components.ERXComponent |
|---|
_dynamicBindings |
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERXJSToManyRelationshipEditor(WOContext context)
|
|
| Method Summary | |
|---|---|
String |
addItemScript()
Builds the JavaScript used to add the selected item from the selections popup to the selected items. |
void |
appendToResponse(WOResponse aResponse,
WOContext aContext)
Calls _checkAccess prior to super.appendToResponse and adds support for ClickToOpen (TM). |
String |
availableValuesPopupMenu()
Builds the select menu for adding available items to the selected items. |
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. |
void |
invalidateCaches()
Resets the state variables. |
boolean |
isListEmpty()
Determines if the list is empty |
boolean |
isStateless()
component is not stateless |
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 |
maybeSortedList()
Gets the list of items and sorts it by the sort key if a sort key is available. |
String |
removeItemScript()
Builds the JavaScript used to remove the item from the selections. |
void |
reset()
|
String |
selectedValuesTableName()
Formats the name of the selected values table for this editor instance. |
NSArray |
selections()
Gets the selections. |
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. |
void |
setSelectionsString(String value)
Sets the selection string from the input. |
void |
sleep()
|
| Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
|---|
synchronizesVariablesWithBindings |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Logger log
protected NSArray _list
protected NSArray _selections
protected Object currentItem
| Constructor Detail |
|---|
public ERXJSToManyRelationshipEditor(WOContext context)
| Method Detail |
|---|
public boolean isStateless()
ERXNonSynchronizingComponent
isStateless in class ERXNonSynchronizingComponentpublic void reset()
reset in class ERXComponentpublic Object currentItem()
public void setCurrentItem(Object anItem)
anItem - to displaypublic NSArray list()
public NSArray selections()
public String displayString()
public void invalidateCaches()
public void sleep()
sleep in class WOComponent
public void appendToResponse(WOResponse aResponse,
WOContext aContext)
ERXComponent
appendToResponse in class ERXComponentpublic NSArray maybeSortedList()
public boolean isListEmpty()
public int itemIndex()
public String selectionsString()
public void setSelectionsString(String value)
value - of the selections stringpublic String editorContextID()
public String editorName()
public String hiddenFieldName()
public String selectedValuesTableName()
public String javascriptForThisEditorInstance()
public String removeItemScript()
public String addItemScript()
public String availableValuesPopupMenu()
|
Last updated: Wed, Jan 7, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||