PATH |
D2WComponent
Package: com.webobjects.directtowebInherits from:com.webobjects.appserver.WOComponent
Subclasses:
- EditRelationship
- D2WPage
- D2WStatelessComponent
- D2WEditToManyFault
- D2WCustomQueryComponent
- D2WCompactInspectComponent
- D2WDisplayToMany
- D2WHead
- D2WKeyPathContainer
- D2WRemoteControl
- D2WCustomComponent
- D2WWebAssistantPage
- D2WWebAssistantFrame
Class Description
This class is the parent class for the Direct to Web templates and the property-level components. These components all access a Direct to Web context with the d2wContext
method. The .wod
) files for the Direct to Web templates. In addition, showWebAssistant
, that opens the Web Assistant in the user's browser.
Method Types
Constructors
Static Constants
Actions
Key-Value Coding
- backgroundColorForHeaderRow
- backgroundColorForTable
- d2wContext
- d2wContextVisibleEntityNamesCountPlus1
- defaultRowspan
- displayNameForKeyWhenRelationship
- displayNameForProperty
- displayPropertyKeys
- entity
- entityName
- hasEntity
- homeHref
- isEntityReadOnly
- isPropertyAnAttribute
- keyWhenRelationship
- object
- objectPropertyValue
- propertyKey
- propertyValueClassName
- relationship
- setLocalContext
- setObject
- showBanner
- submitActionName
- task
- visibleEntityNames
Private Methods
- allEntities
- allowCollapsing
- applicationPort
- assistantPort
- attribute
- backgroundColorForPage
- backgroundColorForTableDark
- backgroundColorForTableLight
- color
- currentSettings
- dynamicPages
- finalize
- formatter
- generationReplacementFor
- hasCustomKey
- hasNoColor
- homeClicked
- isEditing
- isEntityReadOnly
- isNotBoldAsBoolean
- isNotItalicAsBoolean
- isWebAssistantActive
- isWebAssistantConnected
- isWebAssistantEnabled
- keyForGenerationReplacementForVariableNamed
- length
- objectPropertyValueIsNonNull
- pageTitle
- property
- replacementAssociationForAssociation
- resourcePathURL
- sessionID
- setCurrentSettings
- setDynamicPages
- setEntities
- setEntity
- setEntityName
- setPropertyKey
- setResourcePathURL
- setTask
- setTasks
- target
- tasks
Constructors
D2WComponent
public D2WComponent()
Standard Java no-argument constructor.
Static Constants
currentObjectKey
java.lang.String
This constant is intentionally undocumented.
Methods
allEntities
public String allEntities()
This method is intentionally undocumented. You should never have to invoke or customize it.
allowCollapsing
public Integer allowCollapsing()
This method is intentionally undocumented. You should never have to invoke or customize it.
applicationPort
public int applicationPort()
This method is intentionally undocumented. You should never have to invoke or customize it.
assistantPort
protected int assistantPort()
This method is intentionally undocumented. You should never have to invoke or customize it.
attribute
public EOAttribute attribute()
This method is intentionally undocumented. You should never have to invoke or customize it.
backgroundColorForHeaderRow
public String backgroundColorForHeaderRow()
Returns the background color for the header rows of tables rendered by Direct to Web.
backgroundColorForPage
public String backgroundColorForPage()
This method is intentionally undocumented. You should never have to invoke or customize it.
backgroundColorForTable
public String backgroundColorForTable()
Returns the background color for tables rendered in this component. This key is resolved using the rule system.
backgroundColorForTableDark
public String backgroundColorForTableDark()
This method is intentionally undocumented. You should never have to invoke or customize it.
backgroundColorForTableLight
public String backgroundColorForTableLight()
This method is intentionally undocumented. You should never have to invoke or customize it.
color
public String color()
This method is intentionally undocumented. You should never have to invoke or customize it.
currentSettings
public String currentSettings()
This method is intentionally undocumented. You should never have to invoke or customize it.
d2wContext
public D2WContext d2wContext()
Returns the receiver's Direct to Web context (a
d2wContextVisibleEntityNamesCountPlus1
public String d2wContextVisibleEntityNamesCountPlus1()
Returns a
defaultRowspan
public 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 receiver's rule fires. The query and inspect pages in the WebObjects look use this method.
displayNameForKeyWhenRelationship
public String displayNameForKeyWhenRelationship()
Returns a
null
if the current property in the component's Direct to Web context is not a relationship.
The name is derived from the key for one of the properties of the destination entity that can be used to represent that entity. For example, the representative key for Studio
could be name
. This method determines the key using the rule system. To convert the key to a user-presentable name, the method capitalizes lower case words and inserts spaces between words with mixed case (for example, "firstName" becomes "First Name").
displayNameForProperty
public String displayNameForProperty()
Returns a
displayPropertyKeys
public NSArray displayPropertyKeys()
Returns an
You can hide a property or make it visible with the Web Assistant.
dynamicPages
protected String dynamicPages()
This method is intentionally undocumented. You should never have to invoke or customize it.
entity
public EOEntity entity()
Returns the current entity (an
entityName
public String entityName()
Returns a
finalize
public void finalize()
This method is intentionally undocumented. You should never have to invoke or customize it.
formatter
public String formatter()
This method is intentionally undocumented. You should never have to invoke or customize it.
generationReplacementFor
protected String generationReplacementFor(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
hasCustomKey
public boolean hasCustomKey(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
hasEntity
public boolean hasEntity()
Returns whether the receiver's Direct to Web context has an entity or not.
hasNoColor
public boolean hasNoColor()
This method is intentionally undocumented. You should never have to invoke or customize it.
homeClicked
public WOComponent homeClicked()
This method is intentionally undocumented. You should never have to invoke or customize it.
homeHref
public String homeHref()
Returns a
Main
component).
isEditing
public boolean isEditing()
This method is intentionally undocumented. You should never have to invoke or customize it.
isEntityReadOnly
public boolean isEntityReadOnly()
Returns whether the current entity in the receiver's Direct to Web context can be modified or not. You can specify if an entity can be modified using the Web Assistant.
isEntityReadOnly
public boolean isEntityReadOnly(EOEntity anEntity)
This method is intentionally undocumented. You should never have to invoke or customize it.
isLiveAssistantEnabled
public boolean isLiveAssistantEnabled()
This method is intentionally undocumented. You should never have to invoke or customize it.
isNotBoldAsBoolean
public boolean isNotBoldAsBoolean()
This method is intentionally undocumented. You should never have to invoke or customize it.
isNotItalicAsBoolean
public boolean isNotItalicAsBoolean()
This method is intentionally undocumented. You should never have to invoke or customize it.
isPropertyAnAttribute
public boolean isPropertyAnAttribute()
Returns
true
if the property in the receiver's Direct to Web context is an attribute (and not a relationship).
isWebAssistantActive
public boolean isWebAssistantActive()
This method is intentionally undocumented. You should never have to invoke or customize it.
isWebAssistantConnected
public boolean isWebAssistantConnected()
This method is intentionally undocumented. You should never have to invoke or customize it.
isWebAssistantEnabled
public boolean isWebAssistantEnabled()
This method is intentionally undocumented. You should never have to invoke or customize it.
keyForGenerationReplacementForVariableNamed
public static String keyForGenerationReplacementForVariableNamed(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
keyWhenRelationship
public String keyWhenRelationship()
Returns a
null
if the current property in the Direct to Web is not a relationship.
The returned key is the key for one of the properties of the destination entity that can be used to represent the entity. For example, the representative key for Studio
could be name
. The method determines the result using the rule system.
length
public String length()
This method is intentionally undocumented. You should never have to invoke or customize it.
localContext
public D2WContext localContext()
This method is deprecated. Use
d2wContext
instead.
logout
public WOComponent logout()
This action method is invoked when the user clicks Logout in the menu bar. It terminates the current session and returns the application's home page
Main
).
object
public EOEnterpriseObject object()
Returns the
objectPropertyValue
public Object objectPropertyValue()
Returns the value of the current property for the object the receiver displays. For example, if the current entity in the component's Direct to Web context is "Movie" and the current property key is "title", this method returns the title of the movie displayed in this component.
objectPropertyValueIsNonNull
public boolean objectPropertyValueIsNonNull()
This method is intentionally undocumented. You should never have to invoke or customize it.
pageTitle
public String pageTitle()
This method is intentionally undocumented. You should never have to invoke or customize it.
property
public Object property()
This method is intentionally undocumented. You should never have to invoke or customize it.
propertyKey
public String propertyKey()
Returns the key corresponding to the current property in the receiver's Direct to Web context.
propertyValueClassName
public String propertyValueClassName()
Returns a
null
.
relationship
public EORelationship relationship()
Returns the
null
if the property is not a relationship.
replacementAssociationForAssociation
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
This method is intentionally undocumented. You should never have to invoke or customize it.
resourcePathURL
public String resourcePathURL()
This method is intentionally undocumented. You should never have to invoke or customize it.
sessionID
protected String sessionID()
This method is intentionally undocumented. You should never have to invoke or customize it.
setCurrentSettings
public void setCurrentSettings(String settings)
This method is intentionally undocumented. You should never have to invoke or customize it.
setDynamicPages
protected void setDynamicPages(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setEntities
public void setEntities(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setEntity
public void setEntity(EOEntity entity)
This method is intentionally undocumented. You should never have to invoke or customize it.
setEntityName
public void setEntityName(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setLocalContext
public void setLocalContext(D2WContext context)
Sets the Direct to Web context for this component to
context
.
setObject
public void setObject(EOEnterpriseObject object)
Sets the
object
.
setPropertyKey
public void setPropertyKey(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setResourcePathURL
public void setResourcePathURL(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setTask
protected void setTask(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
setTasks
protected void setTasks(String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
showBanner
public boolean showBanner()
Returns whether the banner should be shown in this component or not. If the component is an embedded component, the banner is not shown.
showWebAssistant
public WOComponent showWebAssistant()
This action method is invoked when the user clicks Customize in the menu bar. It displays the Web Assistant in the user's browser.
submitActionName
public String submitActionName()
The name of an action method that is called when the user clicks a submit button within the form. This action method is used in the tab panel components, that is,
submitActionName
binding.
target
public String target()
This method is intentionally undocumented. You should never have to invoke or customize it.
task
protected String task()
Returns a
tasks
protected String tasks()
This method is intentionally undocumented. You should never have to invoke or customize it.
visibleEntityNames
public NSArray visibleEntityNames()
Returns an
© 2001 Apple Computer, Inc.