Interface UIContext
-
- All Known Subinterfaces:
UIRequestContext
,UIResponseContext
@Deprecated public interface UIContext
Deprecated., @seeUICustomWidget
Common abstract class forUIBeanEditor
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:
UIBeanEditor
-
-
Method Summary
-
-
-
Method Detail
-
getLocale
@Deprecated Locale getLocale()
Deprecated.Replaced byUISessionContext.getLocale()
Returns the current locale of the user session.
-
isCreatingRecord
@Deprecated boolean 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 boolean 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 Session getSession()
Deprecated.Replaced byUISessionContext.getSession()
Returns the current session.
-
getHierarchyMember
@Deprecated com.orchestranetworks.hierarchy.Member 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 HierarchyNode getHierarchyNode()
Deprecated.Replaced bygetHierarchyMember()
.
-
getValue
@Deprecated Object getValue()
Deprecated.Replaced byValueContext.getValue()
fromWidgetDisplayContext.getValueContext()
.Returns the current value of the current node.
-
getValue
@Deprecated Object getValue(Path aPath)
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 String displayOccurrence(Object aValue, boolean useLabels)
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 SchemaNode getNode()
Deprecated.Replaced byWidgetDisplayContext.getNode()
.Returns the node to which the component is attached, as specified in the data model.- See Also:
ValueContext.getNode()
-
getPathInAdaptation
@Deprecated Path 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:
Step.isIndexed()
,getNode()
-
getPathForListOccurrence
@Deprecated Path getPathForListOccurrence(int index)
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:
Step.isIndexed()
,UIBeanEditor.addList(UIResponseContext)
,getPathForListOccurrence(int, boolean)
-
getPathForListOccurrence
@Deprecated Path getPathForListOccurrence(int index, boolean isRelative)
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:
Step.isIndexed()
,UIBeanEditor.addList(UIResponseContext)
-
getNode
@Deprecated SchemaNode getNode(Path aPath)
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:
SchemaNode.getNode(Path)
-
getWebNameFor
@Deprecated String getWebNameFor(String aLocalId)
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 String getWebNameForPath(Path aPath)
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 String 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 String 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.
-
-