|
Project Wonder 5.0 | |||||||||||
| 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
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WStatelessComponent
com.webobjects.directtoweb.QueryComponent
com.webobjects.directtoweb.D2WQueryBoolean
er.directtoweb.components.bool.ERD2WCustomQueryBoolean
public class ERD2WCustomQueryBoolean
Better D2WQueryBoolean, which allows you to sprecify the choices names via a context key, containing the labels in a format like ("Don't care", "Yes", "No") or ("Yes", "No"). Also keeps the selected value.
| D2W Keys | |
choicesNames | choicesNames |
| Nested Class Summary |
|---|
| 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 |
_choicesNames
|
| Fields inherited from class com.webobjects.directtoweb.D2WQueryBoolean |
|---|
index, item, queryNumbers |
| Fields inherited from class com.webobjects.directtoweb.QueryComponent |
|---|
_value |
| Fields inherited from class com.webobjects.directtoweb.D2WComponent |
|---|
_eo, _localContext, currentObjectKey |
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
| 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.NSKeyValueCoding |
|---|
NullValue |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERD2WCustomQueryBoolean(WOContext context)
Public constructor |
|
| Method Summary | |
|---|---|
boolean |
allowsNull()
|
NSArray<String> |
choicesNames()
|
String |
displayString()
|
void |
reset()
|
void |
setValue(Object obj)
|
String |
stringForNo()
|
String |
stringForNull()
|
String |
stringForYes()
|
Object |
value()
|
| Methods inherited from class com.webobjects.directtoweb.QueryComponent |
|---|
displayGroup, replacementAssociationForAssociation |
| Methods inherited from class com.webobjects.directtoweb.D2WStatelessComponent |
|---|
d2wContext, isStateless, localContext, object |
| 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, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setLocalContext, setObject, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected NSArray _choicesNames
| Constructor Detail |
|---|
public ERD2WCustomQueryBoolean(WOContext context)
context - the context| Method Detail |
|---|
public NSArray<String> choicesNames()
public void reset()
reset in class com.webobjects.directtoweb.QueryComponentpublic Object value()
value in class com.webobjects.directtoweb.D2WQueryBooleanpublic void setValue(Object obj)
setValue in class com.webobjects.directtoweb.D2WQueryBooleanpublic String stringForYes()
public String stringForNo()
public String stringForNull()
public boolean allowsNull()
public String displayString()
displayString in class com.webobjects.directtoweb.D2WQueryBoolean
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||