Interface UIContext
- All Known Subinterfaces:
UIRequestContext
,UIResponseContext
UIBeanEditor
contexts.
A UIBeanEditor
request context
and a response context are both
associated with a specific data model node and to a validation context.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondisplayOccurrence
(Object aValue, boolean useLabels) Deprecated.com.orchestranetworks.hierarchy.Member
Deprecated.Replaced byWidgetDisplayContext.getHierarchyMember()
.Deprecated.Replaced bygetHierarchyMember()
.Deprecated.Replaced byUISessionContext.getLocale()
getNode()
Deprecated.Replaced byWidgetDisplayContext.getNode()
.Deprecated.Replaced bySchemaNode.getNode(Path)
fromWidgetDisplayContext.getNode()
.getPathForListOccurrence
(int index) Deprecated.getPathForListOccurrence
(int index, boolean isRelative) Deprecated.Deprecated.Replaced bySchemaNode.getPathInAdaptation()
fromWidgetDisplayContext.getNode()
.Deprecated.Replaced byUISessionContext.getSession()
getValue()
Deprecated.Replaced byValueContext.getValue()
fromWidgetDisplayContext.getValueContext()
.Deprecated.Replaced byValueContext.getValue(Path)
fromWidgetDisplayContext.getValueContext()
.Deprecated.Replaced byWidgetWriter.getWidgetName()
Replaced byWidgetValidationContext.getWidgetName()
getWebNameFor
(String aLocalId) Deprecated.Replaced byWidgetWriter.getWidgetName(String)
Replaced byWidgetValidationContext.getWidgetName(String)
getWebNameForPath
(Path aPath) Deprecated.Replaced byWidgetWriter.getWidgetName(Path)
Replaced byWidgetValidationContext.getWidgetName(Path)
Deprecated.Replaced byWidgetWriter.getWidgetNameOfParent()
Replaced byWidgetValidationContext.getWidgetNameOfParent()
boolean
Deprecated.Replaced byWidgetDisplayContext.isCreatingRecord()
boolean
Deprecated.Replaced byWidgetDisplayContext.isDuplicatingRecord()
-
Method Details
-
getLocale
Deprecated.Replaced byUISessionContext.getLocale()
Returns the current locale of the user session. -
isCreatingRecord
Deprecated.Replaced byWidgetDisplayContext.isCreatingRecord()
Returnstrue
if this component is displayed in the context of a new record creation. In this case, the persistent record does not yet exist.- Since:
- 5.5.0
-
isDuplicatingRecord
Deprecated.Replaced byWidgetDisplayContext.isDuplicatingRecord()
Returnstrue
if this component is displayed in the context of the duplication of an existing record. In this case, the target persistent record does not yet exist.- Since:
- 5.5.0
-
getSession
Deprecated.Replaced byUISessionContext.getSession()
Returns the current session. -
getHierarchyMember
Deprecated.Replaced byWidgetDisplayContext.getHierarchyMember()
.Returns current hierarchy node if the currentUIBeanEditor
is instantiated in the context of a hierarchy. Returnsnull
otherwise.This method allows specializing the look and feel of user interface for hierarchy contexts.
-
getHierarchyNode
Deprecated.Replaced bygetHierarchyMember()
. -
getValue
Deprecated.Replaced byValueContext.getValue()
fromWidgetDisplayContext.getValueContext()
.Returns the current value of the current node. -
getValue
Deprecated.Replaced byValueContext.getValue(Path)
fromWidgetDisplayContext.getValueContext()
.Returns the value at the specified path.- Parameters:
aPath
- the location of the target relative to the current node (to maximize reusability, it is advised to use a relative path)
-
displayOccurrence
Deprecated.Returns a string to display the specified value according to the current locale of this context.The specified value must be related to the current node.
-
getNode
Deprecated.Replaced byWidgetDisplayContext.getNode()
.Returns the node to which the component is attached, as specified in the data model.- See Also:
-
getPathInAdaptation
Deprecated.Replaced bySchemaNode.getPathInAdaptation()
fromWidgetDisplayContext.getNode()
.Returns the path of the current node to which the component is attached.The result of this method is more precise than
getNode().getPathInAdaptation()
because it is able to specify indexes (position predicates in XPath).- See Also:
-
getPathForListOccurrence
Deprecated.Returns the absolute path of an occurrence at the specified index under the current aggregated list field (
maxOccurs > 1
).This method can be useful for UI beans that implement
UIBeanEditor.addList(UIResponseContext)
to call the best matching widget for each occurrence.- Parameters:
index
- The index of an occurrence in the current aggregated list field.- Returns:
- The path of an occurrence at the specified index.
- Since:
- 5.2.0
- See Also:
-
getPathForListOccurrence
Deprecated.Returns the path of an occurrence at the specified index under the current aggregated list field (
maxOccurs > 1
).This method can be useful for UI beans that implement
UIBeanEditor.addList(UIResponseContext)
to call the best matching widget for each occurrence.- Parameters:
index
- The index of an occurrence in the current aggregated list field.isRelative
- If true, the returned path will be relative. If false, it will be absolute.- Returns:
- The path of an occurrence at the specified index.
- Since:
- 5.5.0
- See Also:
-
getNode
Deprecated.Replaced bySchemaNode.getNode(Path)
fromWidgetDisplayContext.getNode()
.Returns the node located at the specified path.This method is equivalent to : UIContext.getNode().getNode(aPath)
- See Also:
-
getWebNameFor
Deprecated.Replaced byWidgetWriter.getWidgetName(String)
Replaced byWidgetValidationContext.getWidgetName(String)
Returns a string that uniquely identifies the entity specified in the context of the current component in the current page.The web name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the web name policy can be modified at any time.
- Parameters:
aLocalId
- must respect the pattern[a-zA-Z0-9_.-]+
-
getWebNameForPath
Deprecated.Replaced byWidgetWriter.getWidgetName(Path)
Replaced byWidgetValidationContext.getWidgetName(Path)
Returns a string that uniquely identifies the entity specified in the context of the current component in the current page.The web name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the web name policy can be modified at any time.
- Parameters:
aPath
- location of the target relative to the current node. An absolute path may be used only for instance nodes.
-
getWebNameOfParent
Deprecated.Replaced byWidgetWriter.getWidgetNameOfParent()
Replaced byWidgetValidationContext.getWidgetNameOfParent()
Returns a string that uniquely identifies the entity specified in the context of the current component in the current page.The web name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the web name policy can be modified at any time.
-
getWebName
Deprecated.Replaced byWidgetWriter.getWidgetName()
Replaced byWidgetValidationContext.getWidgetName()
Returns a string that uniquely identifies the current component in the current page.The web name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the web name policy can be modified at any time.
-
UICustomWidget