|
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.D2WComponent
public class D2WComponent
The D2WComponent
class is the parent class for the Direct to Web
templates and the property-level components.
The components access a Direct to Web context with the d2wContext
method.
The D2WComponent class also defines several keys that are used
in the binding (.wod) files for the Direct to Web templates.
In addition, D2WComponent defines an action method, showWebAssistant
,
that opens the Web Assistant in the user's Web browser.
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 | |
---|---|
static String |
currentObjectKey
This constant is intentionally undocumented. |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
KeyPathSeparator |
Constructor Summary | |
---|---|
D2WComponent(WOContext aContext)
Constructs a D2WComponent with the specified context. |
Method Summary | |
---|---|
String |
allEntities()
This method is intentionally undocumented. |
Integer |
allowCollapsing()
This method is intentionally undocumented. |
int |
applicationPort()
This method is intentionally undocumented. |
int |
assistantPort()
This method is intentionally undocumented. |
EOAttribute |
attribute()
This method is intentionally undocumented. |
String |
backgroundColorForHeaderRow()
Returns the background color for the header rows of tables rendered by Direct to Web. |
String |
backgroundColorForPage()
This method is intentionally undocumented. |
String |
backgroundColorForTable()
Returns the background color for tables rendered in this component. |
String |
backgroundColorForTableDark()
This method is intentionally undocumented. |
String |
backgroundColorForTableLight()
This method is intentionally undocumented. |
String |
color()
This method is intentionally undocumented. |
String |
currentSettings()
This method is intentionally undocumented. |
String |
currentUrl()
Returns a String containing the URL for the current page. |
D2WContext |
d2wContext()
Returns the Direct to Web context of the receiver. |
String |
d2wContextVisibleEntityNamesCountPlus1()
Returns a String containing the number of visible entities in the Direct to Web context of the receiver incremented by one. |
String |
defaultRowspan()
Returns the number of HTML table rows spanned by the vertical rule in the page containing the Direct to Web context in which the rule of the receiver fires. |
String |
displayNameForKeyWhenRelationship()
Returns a String containing the name of a property that represents the destination object of the current relationship in the Direct to Web context of the receiver. |
String |
displayNameForProperty()
Returns a String containing a user-presentable name for the current property in the Direct to Web context of the component. |
NSArray |
displayPropertyKeys()
Returns an NSArray containing the keys (Strings) for all visible properties of the current entity in the components Direct to Web context. |
String |
dynamicPages()
This method is intentionally undocumented. |
EOEntity |
entity()
Returns the current entity in the Direct to Web context of the receiver. |
String |
entityName()
Returns a String containing the name of the entity displayed by this component. |
String |
formatter()
This method is intentionally undocumented. |
protected String |
generationReplacementFor(String variableName)
This method is intentionally undocumented. |
String |
generationReplacementForCurrentObject()
This method is intentionally undocumented. |
boolean |
hasCustomKey(String customKey)
This method is intentionally undocumented. |
boolean |
hasEntity()
Returns whether the Direct to Web context of the receiver has an entity. |
boolean |
hasNoColor()
This method is intentionally undocumented. |
WOComponent |
homeClicked()
This method is intentionally undocumented. |
String |
homeHref()
Returns a String containing the URL of the home page (the Main component) of the application. |
boolean |
isEditing()
This method is intentionally undocumented. |
boolean |
isEntityReadOnly()
Returns whether the current entity in the Direct to Web context of the receiver can be modified or not. |
boolean |
isEntityReadOnly(EOEntity e)
This method is intentionally undocumented. |
boolean |
isLiveAssistantEnabled()
Deprecated. |
boolean |
isNotBoldAsBoolean()
This method is intentionally undocumented. |
boolean |
isNotItalicAsBoolean()
This method is intentionally undocumented. |
boolean |
isPropertyAnAttribute()
Returns true if the property in the Direct to Web context of the receiver is an attribute (and not a relationship). |
boolean |
isWebAssistantActive()
This method is intentionally undocumented. |
boolean |
isWebAssistantConnected()
This method is intentionally undocumented. |
boolean |
isWebAssistantEnabled()
This method is intentionally undocumented. |
static String |
keyForGenerationReplacementForVariableNamed(String variableName)
This method is intentionally undocumented. |
String |
keyWhenRelationship()
This method is intentionally undocumented. |
String |
lastUrl()
Returns a String containing the URL for the last page. |
String |
length()
This method is intentionally undocumented. |
D2WContext |
localContext()
Deprecated. |
WOComponent |
logout()
Is invoked when the user clicks Logout in the menu bar. |
EOEnterpriseObject |
object()
Returns the EOEnterpriseObject, defined in the EOControl Framework, displayed by this component. |
Object |
objectPropertyValue()
Returns the value of the current property for the object that the receiver displays. |
boolean |
objectPropertyValueIsNonNull()
This method is intentionally undocumented. |
String |
pageTitle()
This method is intentionally undocumented. |
Object |
property()
This method is intentionally undocumented. |
String |
propertyKey()
Returns the key corresponding to the current property in the Direct to Web context of the receiver. |
String |
propertyValueClassName()
Returns a String containing the name of the class for the values of the current attribute (for example, "NSString"). |
EORelationship |
relationship()
Returns the EORelationship, defined in the EOAccess Framework, for the current property in the Direct to Web context of the receiver, or null if the property is not a relationship. |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
|
String |
resourcePathURL()
This method is intentionally undocumented. |
String |
sessionID()
This method is intentionally undocumented. |
void |
setCurrentSettings(String newValue)
This method is intentionally undocumented. |
void |
setDynamicPages(String newValue)
This method is intentionally undocumented. |
void |
setEntities(String newValue)
This method is intentionally undocumented. |
void |
setEntity(EOEntity newValue)
This method is intentionally undocumented. |
void |
setEntityName(String newValue)
This method is intentionally undocumented. |
void |
setLocalContext(D2WContext newValue)
Sets the Direct to Web context for this component to newValue . |
void |
setObject(EOEnterpriseObject eo)
Sets the EOEnterpriseObject, defined in the EOControl Framework, that the receiver manipulates to the specified object. |
void |
setPropertyKey(String newValue)
This method is intentionally undocumented. |
void |
setResourcePathURL(String newValue)
This method is intentionally undocumented. |
void |
setTask(String newValue)
This method is intentionally undocumented. |
void |
setTasks(String newValue)
This method is intentionally undocumented. |
boolean |
showBanner()
Returns whether the banner should be shown in this component. |
WOComponent |
showWebAssistant()
|
String |
submitActionName()
The name of an action method that is called when the user clicks a submit button within the form. |
String |
target()
This method is intentionally undocumented. |
String |
task()
Returns a String containing the current task in the Direct to Web context of the receiver. |
String |
tasks()
This method is intentionally undocumented. |
NSArray |
visibleEntityNames()
Returns an NSArray of the names of entities visible in the application. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String currentObjectKey
Constructor Detail |
---|
public D2WComponent(WOContext aContext)
aContext
- - the WOContext.Method Detail |
---|
@Deprecated public D2WContext localContext()
d2wContext
instead.
public D2WContext d2wContext()
public void setLocalContext(D2WContext newValue)
newValue
.
newValue
- - the new local context.public static String keyForGenerationReplacementForVariableNamed(String variableName)
protected String generationReplacementFor(String variableName)
public String generationReplacementForCurrentObject()
public String propertyKey()
public void setPropertyKey(String newValue)
public EOEnterpriseObject object()
public void setObject(EOEnterpriseObject eo)
eo
- - the EOEnterpriseObject of the receiver.public boolean isEntityReadOnly()
public boolean isEntityReadOnly(EOEntity e)
public EOAttribute attribute()
public EORelationship relationship()
public Object property()
public boolean objectPropertyValueIsNonNull()
public Object objectPropertyValue()
public String keyWhenRelationship()
public String target()
public String formatter()
public String length()
public Integer allowCollapsing()
public String pageTitle()
public boolean hasEntity()
public String task()
public void setTask(String newValue)
public EOEntity entity()
public void setEntity(EOEntity newValue)
public String entityName()
public void setEntityName(String newValue)
public String propertyValueClassName()
public String displayNameForProperty()
public boolean isPropertyAnAttribute()
public boolean showBanner()
public boolean isNotBoldAsBoolean()
public boolean isNotItalicAsBoolean()
public String color()
public boolean hasNoColor()
public boolean hasCustomKey(String customKey)
public NSArray displayPropertyKeys()
You can hide a property or make it visible with the Web Assistant.
public String backgroundColorForPage()
public String backgroundColorForHeaderRow()
public String backgroundColorForTable()
public String backgroundColorForTableDark()
public String backgroundColorForTableLight()
public String defaultRowspan()
The query and inspect pages in the WebObjects look use this method.
public String d2wContextVisibleEntityNamesCountPlus1()
public String displayNameForKeyWhenRelationship()
public NSArray visibleEntityNames()
public boolean isEditing()
public String submitActionName()
submitActionName
binding of the WOTabPanel.
public WOComponent logout()
public WOComponent homeClicked()
public String homeHref()
public String resourcePathURL()
public void setResourcePathURL(String newValue)
public String tasks()
public void setTasks(String newValue)
public String dynamicPages()
public void setDynamicPages(String newValue)
public String allEntities()
public void setEntities(String newValue)
public String currentSettings()
public void setCurrentSettings(String newValue)
public int applicationPort()
public int assistantPort()
public String sessionID()
public WOComponent showWebAssistant()
public boolean isWebAssistantConnected()
public boolean isWebAssistantActive()
public boolean isWebAssistantEnabled()
@Deprecated public boolean isLiveAssistantEnabled()
public String currentUrl()
public String lastUrl()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
replacementAssociationForAssociation
in interface DTWGeneration
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |