|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.appserver.WOElement | +--com.webobjects.appserver.WOComponent | +--com.webobjects.directtoweb.D2WSwitchComponent
The D2WSwitchComponent class gives a reusable Direct to Web component the option to choose which D2WComponent to use in a given context.
Inner classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Inner classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary | |
protected static Vector |
possibleBindings
The set of possible bindings. |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
KeyPathSeparator |
Constructor Summary | |
D2WSwitchComponent(WOContext aContext)
Creates an instance of D2WSwitchComponent with the specified context. |
Method Summary | |
static void |
addToPossibleBindings(String newBinding)
Adds the specified binding to the set of possible bindings. |
void |
awake()
Throws an exception if any of the required bindings are missing. |
String |
componentName()
Gets the name of the component. |
String |
entityName()
Gets the name of the entity. |
NSDictionary |
extraBindings()
Gets the extra bindings. |
String |
lookFromSettings()
Gets the name of the look from the settings. |
void |
setExtraBindings(Object newValue)
Sets the extra bindings to the specified value. |
void |
setSubContext(Object newValue)
Sets the sub-context. |
NSDictionary |
settings()
Gets the settings with the display properties. |
void |
sleep()
Clears the local settings. |
D2WContext |
subContext()
Gets the sub-context. |
boolean |
synchronizesVariablesWithBindings()
Indicates that the component does not synchronize variables with bindings. |
String |
task()
Gets the name of the task. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static Vector possibleBindings
In the current implementation, the bindings include:
nextPageDelegate
, dataSource
,
queryDataSource
, nextPage
, object
,
masterObjectAndRelationshipKey
, selectedObject
,
fetchSpecificationName
, action
, and
menu
.
The implementation is subject to change in future releases.
Constructor Detail |
public D2WSwitchComponent(WOContext aContext)
aContext
- instance of WOContextWOComponent.WOComponent(WOContext)
Method Detail |
public static void addToPossibleBindings(String newBinding)
newBinding
- instance of StringpossibleBindings
public void awake()
The current implementation requires the following bindings:
_dynamicPage
, _task
, _entityName
.
The implementation is subject to change in future releases.
awake
in class WOComponent
IllegalArgumentException
- if required bindings are missingsubContext()
,
task()
,
entityName()
,
WOComponent.awake()
public String componentName()
Throws an exception if no rule can be found to decide which page to embed in the parent to display in the sub-context.
D2WModelException
- if name cannot be determinedsubContext()
,
D2WContext.pageName()
,
D2WContext.rawSystemPageName()
,
WOComponent.parent()
public String entityName()
The current implementation uses the binding
_entityName
.
The implementation is subject to change in future releases.
public NSDictionary extraBindings()
The current implementation removes all objects and copies the values for the possible bindings.
The implementation is subject to change in future releases.
possibleBindings
,
setExtraBindings(Object)
,
WOComponent.valueForBinding(String)
public String lookFromSettings()
settings()
public void setExtraBindings(Object newValue)
The current implementation expects the new value to be an instance of NSMutableDictionary and sets the values for the bindings.
The implementation is subject to change in future releases.
newValue
- instance of NSMutableDictionary - expectedpossibleBindings
,
extraBindings()
,
WOComponent.setValueForBinding(Object, String)
public void setSubContext(Object newValue)
The current implementation does nothing.
The implementation is subject to change in future releases.
newValue
- instance of Object - ignoredpublic NSDictionary settings()
The current implementation uses the bindings
_settings
and displayKeys
.
Parses a property list if the value for settings is a String.
The implementation is subject to change in future releases.
public void sleep()
sleep
in class WOComponent
settings()
,
WOComponent.sleep()
public D2WContext subContext()
The current implementation uses the binding
_dynamicPage
.
Takes value from the settings and the look from settings.
The implementation is subject to change in future releases.
lookFromSettings()
,
settings()
,
D2WContext.takeValueForInferrableKey(Object, String)
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class WOComponent
WOComponent.synchronizesVariablesWithBindings()
public String task()
The current implementation uses the binding _task
.
The implementation is subject to change in future releases.
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |