|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.directtoweb.D2WSwitchComponent
public class D2WSwitchComponent
The D2WSwitchComponent class gives a reusable Direct to Web component the option to choose which D2WComponent to use in a given context.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
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.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary | |
---|---|
protected static Vector |
possibleBindings
The set of possible bindings. |
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 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 missingD2WSwitchComponent.subContext()
,
D2WSwitchComponent.task()
,
D2WSwitchComponent.entityName()
,
WOComponent.awake()
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.
public String entityName()
The current implementation uses the binding
_entityName
.
The implementation is subject to change in future releases.
public 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 String lookFromSettings()
D2WSwitchComponent.settings()
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.
D2WSwitchComponent.lookFromSettings()
,
D2WSwitchComponent.settings()
,
D2WContext.takeValueForInferrableKey(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 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 determinedD2WSwitchComponent.subContext()
,
D2WContext.pageName()
,
D2WContext.rawSystemPageName()
,
WOComponent.parent()
public static void addToPossibleBindings(String newBinding)
newBinding
- instance of StringD2WSwitchComponent.possibleBindings
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.
D2WSwitchComponent.possibleBindings
,
D2WSwitchComponent.setExtraBindings(Object)
,
WOComponent.valueForBinding(String)
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 - expectedD2WSwitchComponent.possibleBindings
,
D2WSwitchComponent.extraBindings()
,
WOComponent.setValueForBinding(Object, String)
public void sleep()
sleep
in class WOComponent
D2WSwitchComponent.settings()
,
WOComponent.sleep()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |