UICustomWidget
instead.public interface UIResponseContext extends UIContext, UIComponentWriter
UIBeanEditor
Modifier and Type | Method and Description |
---|---|
void |
addComboBox(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newComboBox(Path) and UIFormWriter.addWidget(UIWidget) |
void |
addComboBox(UIComboBox aWidget)
Deprecated.
please use
newComboBox(Path) and addWidget(UIWidget) |
void |
addEmptyFieldButton(String buttonId,
boolean isDisabled,
String aJavaScriptCommand)
Deprecated.
|
void |
addFormRow(UIFormRow aFormRow)
Deprecated.
Replaced by
UIFormWriter.addFormRow(UIFormRow) |
void |
addFormRow(UIFormRow aFormRow,
UIWidget aWidget)
Deprecated.
Replaced by
UIFormWriter.addFormRow(UIFormRow, UIWidget) |
void |
addFormRow(UIWidget aWidget)
Deprecated.
Replaced by
UIFormWriter.addFormRow(UIWidget) |
void |
addFormRowBestMatchingComponent(Path nodePath)
Deprecated.
Replaced by
UIFormWriter.addFormRow(Path) |
void |
addFormRowBestMatchingComponent(Path nodePath,
boolean enableIcon)
Deprecated.
|
void |
addFormRowBestMatchingDisplay(Path nodePath)
Deprecated.
|
void |
addFormRowBestMatchingDisplay(Path nodePath,
boolean enableIcon)
|
void |
addFormRowBestMatchingEditor(Path nodePath)
Deprecated.
Replaced by
UIFormWriter.addFormRow(Path) |
void |
addFormRowBestMatchingEditor(Path nodePath,
boolean enableIcon)
Deprecated.
|
UIJavaScriptWriter |
addJS_getNodeValue(Path aPath)
Deprecated.
Replaced by
UIFormWriter.addJS_getNodeValue(Path) |
UIJavaScriptWriter |
addJS_setNodeValue(String aVarName,
Path aPath)
Deprecated.
Replaced by
UIFormWriter.addJS_setNodeValue(String, Path) |
void |
addServiceButton(Path aPath)
Deprecated.
Replaced by
WidgetWriter.addServiceButton(Path) |
void |
addUIBean(Path aPath,
String htmlAttributes)
Deprecated.
please use
addWidget(Path) |
void |
addUIBestMatchingComponent(Path aPath,
String htmlAttributes)
Deprecated.
please use
addWidget(Path) |
void |
addUIBestMatchingDisplay(Path aPath,
String htmlAttributes)
Deprecated.
|
void |
addUIBestMatchingDisplay(Path aPath,
UIRenderingMode renderingMode,
String htmlAttributes)
Deprecated.
|
void |
addUIBestMatchingEditor(Path aPath,
String htmlAttributes)
Deprecated.
please use
addWidget(Path) |
void |
addUICheckBox(int index,
Path aPath,
String htmlAttributes)
Deprecated.
|
void |
addUICheckBox(Path aPath,
String htmlAttributes)
Deprecated.
please use
newCheckBox(Path) and addWidget(UIWidget) |
void |
addUICheckBoxGroup(Path aPath,
String htmlAttributes)
Deprecated.
please use
newCheckBoxGroup(Path) and addWidget(UIWidget) |
void |
addUICheckBoxGroup(Path aPath,
String htmlAttributes,
Nomenclature aSpecificNomenclature)
Deprecated.
|
void |
addUICheckBoxGroup(Path aPath,
String htmlAttributes,
String htmlSeparator)
Deprecated.
please use
newCheckBoxGroup(Path) ,
UICheckBoxGroup.setColumnsNumber(int) (instead of htmlSeparator)
and addWidget(UIWidget) |
void |
addUICheckBoxGroup(Path aPath,
String htmlAttributes,
String htmlSeparator,
Nomenclature aSpecificNomenclature)
Deprecated.
please use
newCheckBoxGroup(Path) ,
UICheckBoxGroup.setColumnsNumber(int) (instead of htmlSeparator),
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
and addWidget(UIWidget) |
void |
addUIComplexEditor(Path aPath,
String htmlAttributes)
Deprecated.
please use
addWidget(Path) |
void |
addUIDescription(Path aPath)
Deprecated.
Replaced by
WidgetWriter.addUIDescription(Path) |
void |
addUIDisplayValue(Path aPath)
Deprecated.
Replaced by
WidgetWriter.addUIDisplayValue(Path) |
void |
addUIDropDownBox(Path aPath,
String htmlAttributes)
Deprecated.
please use
newDropDownList(Path) and addWidget(UIWidget) |
void |
addUIDropDownBox(Path aPath,
String htmlAttributes,
Nomenclature aSpecificNomenclature)
Deprecated.
|
void |
addUIDropDownBoxMultiple(Path aPath,
String htmlAttributes)
Deprecated.
please use
newListBox(Path) and addWidget(UIWidget) |
void |
addUILabel(Path aPath)
Deprecated.
Replaced by
WidgetWriter.addUILabel(Path) |
void |
addUIListSearch(Path aPath,
String htmlAttributes)
Deprecated.
please use
newComboBox(Path) and addWidget(UIWidget) |
void |
addUIListSearch(Path aPath,
String htmlAttributes,
Nomenclature aSpecificNomenclature)
Deprecated.
|
void |
addUIOccurrenceEditor(Path aPath,
String htmlAttributes)
Deprecated.
The default occurrence editor can only work with the default multi-occurrence editor.
In the
UIBeanEditor.addList(UIResponseContext) method,
each occurrence can be added with the best matching display/editor with the indexed
path obtained with UIContext.getPathForListOccurrence(int) . |
void |
addUIPasswordInputField(Path aPath,
String htmlAttributes)
Deprecated.
please use
newPassword(Path) and addWidget(UIWidget) |
void |
addUIRadioButton(Path aPath,
String htmlAttributes,
boolean setCode,
boolean setLabel,
int index)
|
void |
addUIRadioButtonGroup(Path aPath,
String htmlAttributes)
Deprecated.
please use
newRadioButtonGroup(Path) and addWidget(UIWidget) |
void |
addUIRadioButtonGroup(Path aPath,
String htmlAttributes,
String htmlSeparator)
Deprecated.
please use
newRadioButtonGroup(Path) ,
UIRadioButtonGroup.setColumnsNumber(int) (instead of htmlSeparator)
and addWidget(UIWidget) |
void |
addUITextAreaField(Path aPath,
String htmlAttributes)
Deprecated.
please use
newTextBox(Path) ,
UITextBox.setMultiLine(boolean)
and addWidget(UIWidget) |
void |
addUITextHiddenInputField(Path aPath,
String htmlAttributes)
Deprecated.
please use
newTextBox(Path)
and addWidget(UIWidget)
with a <div style="display:none;">...</div> surrounding you widget.Example: aResponse.add("<div style=\"display:none;\">"); UITextBox textBox = aResponse.newTextBox(aPath); aResponse.addWidget(textBox); aResponse.add("</div>"); addJS_getNodeValue(Path) and addJS_setNodeValue(String, Path) still work. |
void |
addUITextInputField(Path aPath,
String htmlAttributes)
Deprecated.
please use
newTextBox(Path) and addWidget(UIWidget) |
void |
addUIValidationMessage(Path aPath)
Deprecated.
Replaced by
WidgetWriter.addUIValidationMessage(Path) |
void |
addWidget(Path aPath)
Deprecated.
Replaced by
UIFormWriter.addWidget(Path) |
void |
addWidget(UIWidget aWidget)
Deprecated.
Replaced by
UIFormWriter.addWidget(UIWidget) |
void |
doEnsureValueIsDefined()
Deprecated.
Pre-instantiates a value for the current node.
|
void |
enableEscapedHtml(boolean enabled)
Deprecated.
See
UIBeanEditorV4 . |
int |
getNextHtmlTabIndex()
Deprecated.
TabIndexes are no longer used in forms, the default order (no tabIndex ) is
preferable.
Currently, the tabIndex attribute is used with the value '-1' to keep the keyboard from
having focus (i.e. control buttons of a field) |
Path |
getPrefixedPath(Path aPath)
Deprecated.
Replaced by
UIFormWriter.getPrefixedPath(Path) |
UIRenderingMode |
getRenderingMode()
Deprecated.
Returns the current rendering mode.
|
UITableCellStyleHandler |
getTableCellStyleHandler()
Deprecated.
Replaced by
WidgetWriter.getTableCellStyleHandler() |
ValueContextForValidation |
getValueContext()
Deprecated.
Replaced by
WidgetDisplayContext.getValueContext() |
ValueContextForValidation |
getValueContext(Path aPath)
Deprecated.
Replaced by
WidgetDisplayContext.getValueContext(Path) |
boolean |
isEscapedHtmlEnable()
Deprecated.
See
UIBeanEditorV4 . |
UIResponseContext |
jsBufferAddJavaScriptExpression(String aJavaScriptExpression)
Deprecated.
This method is inactive except if extending
UIBeanEditorV4 .
Use UIJavaScriptWriter.addJS(String) instead. |
UIResponseContext |
jsBufferAddString(String aString)
Deprecated.
Use
UIJavaScriptWriter.addJS(String) or UIBodyWriter.add(String) instead. |
UIResponseContext |
jsBufferEndOfLine()
Deprecated.
This method is not used unless extending
UIBeanEditorV4 .
Use UIJavaScriptWriter.addJS_cr() or UIBodyWriter.add_cr() instead. |
UIResponseContext |
jsBufferInitalize()
Deprecated.
This method is not used unless extending
UIBeanEditorV4 . |
UIResponseContext |
jsBufferNewLine()
Deprecated.
This method is not used unless extending
UIBeanEditorV4 .
Use UIJavaScriptWriter.addJS_cr() or UIBodyWriter.add_cr() instead. |
UIResponseContext |
jsBufferReenable(boolean isJsBufferWritingModeTemporaryDisabled)
Deprecated.
This method is inactive except if extending
UIBeanEditorV4 . |
boolean |
jsBufferTemporaryDisable()
Deprecated.
This method is inactive except if extending
UIBeanEditorV4 . |
UIWidget |
newBestMatching(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newBestMatching(Path) |
UICheckBox |
newCheckBox(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newCheckBox(Path) |
UICheckBoxGroup |
newCheckBoxGroup(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newCheckBoxGroup(Path) |
UIColorPicker |
newColorPicker(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newColorPicker(Path) |
UIComboBox |
newComboBox(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newComboBox(Path) |
UIDateTime |
newDateTime(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newDateTime(Path) |
UIDropDownList |
newDropDownList(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newDropDownList(Path) |
UIFormGroup |
newFormGroup(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newFormGroup(Path) |
UIFormRow |
newFormRow(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newFormRow(Path) |
UIListBox |
newListBox(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newListBox(Path) |
UIPassword |
newPassword(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newPassword(Path) |
UIRadioButton |
newRadioButton(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newRadioButton(Path) |
UIRadioButtonGroup |
newRadioButtonGroup(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newRadioButtonGroup(Path) |
UITable |
newTable(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newTable(Path) |
UITextBox |
newTextBox(Path aPath)
Deprecated.
Replaced by
UIFormWriter.newTextBox(Path) |
void |
setCellContentWithButtonOnRight(String aString,
UIButtonSpec aButton)
Deprecated.
This method can be used to include content in a table cell with a button to the right.
|
void |
startFormGroup(Path aPath)
Deprecated.
Replaced by
UIFormWriter.startFormGroup(Path) |
void |
startFormRow(Path pathForLabel)
Deprecated.
Replaced by
UIFormWriter.startFormRow(Path) |
void |
startFormRow(Path pathForLabel,
boolean enableIcon)
Deprecated.
|
displayOccurrence, getHierarchyNode, getLocale, getNode, getNode, getPathForListOccurrence, getPathForListOccurrence, getPathInAdaptation, getSession, getValue, getValue, getWebName, getWebNameFor, getWebNameForPath, getWebNameOfParent, isCreatingRecord, isDuplicatingRecord
addButtonHelp, addButtonJavaScript, addButtonJavaScriptToggle, addUILabel, addUserAvatar, buildButtonPreview, buildButtonPreview, buildButtonPreview, endBorder, endExpandCollapseBlock, endFormGroup, endFormRow, endTableFormRow, newExpandCollapseBlock, newFormGroup, newFormRow, startBorder, startBorder, startBorder, startExpandCollapseBlock, startExpandCollapseBlock, startFormGroup, startFormGroup, startFormRow, startFormRow, startFormRow, startFormRow, startTableFormRow
add_cr, add_cr, add, add, add, addSafeAttribute, addSafeAttribute, addSafeInnerHTML, addSafeInnerHTML
addJS_addResizeWorkspaceListener, addJS_cr, addJS_cr, addJS_openPreviewImage, addJS_openPreviewImageFromVar, addJS_setButtonDisabled, addJS_setExpandCollapseBlockExpanded, addJS_setStateToToggleButton, addJS_switchToPerspective, addJS_switchToPerspectiveAction, addJS
createWebComponentForRootSession, createWebComponentForSubSession, getURLForAjaxComponent, getURLForAjaxComponent, getURLForPerspectiveSelection, getURLForPerspectiveSelection, getURLForResource, getURLForResource, getURLForResource, getURLForResource, getURLForResource, getURLForRest, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForViewSelection
addJavaScriptDependency
getLocale, getSession
UIRenderingMode getRenderingMode()
ValueContextForValidation getValueContext()
WidgetDisplayContext.getValueContext()
ValueContextForValidation getValueContext(Path aPath)
WidgetDisplayContext.getValueContext(Path)
void addEmptyFieldButton(String buttonId, boolean isDisabled, String aJavaScriptCommand)
WidgetWriter.addEmptyFieldButton(String, boolean, String)
A click on this button will execute the given JavaScript command.
void addServiceButton(Path aPath)
WidgetWriter.addServiceButton(Path)
If no services are defined for the node, or if no services are granted to the user according to access rights, no button will be added.
The standard position of the service button is to the right of the component; the standard position of the validation message is below the component.
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.addUIValidationMessage(Path)
void addUIBestMatchingComponent(Path aPath, String htmlAttributes)
addWidget(Path)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
addUIBestMatchingDisplay(Path, String)
or addUIBestMatchingEditor(Path, String)
according to the
rendering mode.
A common example:
UIResponseContext.addUIBestMatchingComponent(Path.SELF
, "")
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaddWidget(Path)
void addUIBestMatchingDisplay(Path aPath, String htmlAttributes)
newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
and addWidget(UIWidget)
A common example:
UIResponseContext.addUIBestMatchingDisplay(Path.SELF
, "")
If the field is hidden according to the
permission rules,
then this method does nothing.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML component.newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
,
addWidget(UIWidget)
void addUIBestMatchingDisplay(Path aPath, UIRenderingMode renderingMode, String htmlAttributes)
newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
and addWidget(UIWidget)
If the field is hidden according to the
permission rules,
then this method does nothing.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML component.newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
,
addWidget(UIWidget)
void addUIBestMatchingEditor(Path aPath, String htmlAttributes)
addWidget(Path)
A common example:
UIResponseContext.addUIBestMatchingEditor(Path.SELF
, "")
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
Note:
The use of the argument htmlAttributes
has limited backward compatibility,
and therefore requires extensive testing on any browser that could be used by the end user.
Specifically, if the underlying type
SchemaNode.getFacetEnumeration() depends on an enumeration,
the new combo box will not be used if
htmlAttributes
is not null
or empty;
instead the older UIListSearch
will be
used for backward compatibility.
aPath
- required, location of the target, relative to the current node;
to improve reusability, it is advised to use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML component (see note).addWidget(Path)
void addUIDisplayValue(Path aPath)
WidgetWriter.addUIDisplayValue(Path)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.void addUICheckBox(Path aPath, String htmlAttributes)
newCheckBox(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewCheckBox(Path)
,
addWidget(UIWidget)
void addUICheckBox(int index, Path aPath, String htmlAttributes)
newCheckBox(Path)
,
UIAtomicWithEnumerationItem.setIndex(int)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewCheckBox(Path)
,
UIAtomicWithEnumerationItem.setIndex(int)
,
addWidget(UIWidget)
void addUICheckBoxGroup(Path aPath, String htmlAttributes)
newCheckBoxGroup(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewCheckBoxGroup(Path)
,
addWidget(UIWidget)
void addUICheckBoxGroup(Path aPath, String htmlAttributes, String htmlSeparator)
newCheckBoxGroup(Path)
,
UICheckBoxGroup.setColumnsNumber(int)
(instead of htmlSeparator)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componenthtmlSeparator
- optional, a specific HTML string as value separator
(display on one line:
, or in a column: <br>
)newCheckBoxGroup(Path)
,
UICheckBoxGroup.setColumnsNumber(int)
,
addWidget(UIWidget)
void addUICheckBoxGroup(Path aPath, String htmlAttributes, Nomenclature aSpecificNomenclature)
newCheckBoxGroup(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaSpecificNomenclature
- specifies the value-label pairs to use specifically for this component.newCheckBoxGroup(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
,
addWidget(UIWidget)
void addUICheckBoxGroup(Path aPath, String htmlAttributes, String htmlSeparator, Nomenclature aSpecificNomenclature)
newCheckBoxGroup(Path)
,
UICheckBoxGroup.setColumnsNumber(int)
(instead of htmlSeparator),
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componenthtmlSeparator
- optional, a specific HTML string as value separator
(display in one line:
, or in column:
<br>
)aSpecificNomenclature
- specifies the "value-label" pairs to use specifically for this component.newCheckBoxGroup(Path)
,
UICheckBoxGroup.setColumnsNumber(int)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
,
addWidget(UIWidget)
void addComboBox(Path aPath)
UIFormWriter.newComboBox(Path)
and UIFormWriter.addWidget(UIWidget)
For simple HTML drop-down lists, this widget facilitates selection in the list, especially for large enumerations. Another benefit is its low data transfer cost between the end-user browser and the application server.
If called for a node under an aggregated list, the given path must be indexed and relative.
To get such a path, use the method UIContext.getPathForListOccurrence(int, boolean)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.newComboBox(Path)
,
addWidget(UIWidget)
void addWidget(Path aPath)
UIFormWriter.addWidget(Path)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
This method is equivalent to:
aResponseContext.addWidget(aResponseContext.newBestMatching(aPath));
aPath
- location of the node, relative to the current node.UnsupportedOperationException
- if the specified path refers to a node that is neither
terminal
nor under-terminal.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.newBestMatching(Path)
void addWidget(UIWidget aWidget)
UIFormWriter.addWidget(UIWidget)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
aWidget
- the widget to be added to this UIBean.UnsupportedOperationException
- if the specified widget refers to a node that is neither
terminal
nor under-terminal.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.addFormRow(UIWidget)
UIComboBox newComboBox(Path aPath)
UIFormWriter.newComboBox(Path)
aPath
- required, location of the target, relative to the current node; to improve reusability, use a
relative path.addWidget(UIWidget)
UIColorPicker newColorPicker(Path aPath)
UIFormWriter.newColorPicker(Path)
aPath
- required, location of the target, relative to the current node; to improve reusability, use a
relative path.addWidget(UIWidget)
UIWidget newBestMatching(Path aPath)
UIFormWriter.newBestMatching(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node that is either
terminal
or under-terminal.addWidget(UIWidget)
UITextBox newTextBox(Path aPath)
UIFormWriter.newTextBox(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type.addWidget(UIWidget)
UITable newTable(Path aPath)
UIFormWriter.newTable(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node that is a
association.addWidget(UIWidget)
UIDateTime newDateTime(Path aPath)
UIFormWriter.newDateTime(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type.addWidget(UIWidget)
UICheckBox newCheckBox(Path aPath)
UIFormWriter.newCheckBox(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a boolean or an aggregated list of a simple
type and
depending on an enumeration.addWidget(UIWidget)
UICheckBoxGroup newCheckBoxGroup(Path aPath)
UIFormWriter.newCheckBoxGroup(Path)
aPath
- location of the target node, relative to the current node;
it must refer to an aggregated list of a simple type and
depending on an enumeration.addWidget(UIWidget)
UIDropDownList newDropDownList(Path aPath)
UIFormWriter.newDropDownList(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type and
depending on an enumeration.addWidget(UIWidget)
UIListBox newListBox(Path aPath)
UIFormWriter.newListBox(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type and
depending on an enumeration.addWidget(UIWidget)
UIPassword newPassword(Path aPath)
UIFormWriter.newPassword(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a simple type node.addWidget(UIWidget)
UIRadioButton newRadioButton(Path aPath)
UIFormWriter.newRadioButton(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type and
depending on an enumeration.addWidget(UIWidget)
UIRadioButtonGroup newRadioButtonGroup(Path aPath)
UIFormWriter.newRadioButtonGroup(Path)
aPath
- location of the target node, relative to the current node;
it must refer to a node of a simple type and
depending on an enumeration.addWidget(UIWidget)
void addComboBox(UIComboBox aWidget)
newComboBox(Path)
and addWidget(UIWidget)
Regarding the simple HTML drop-down list, this widget facilitates the selection in the list, especially for large enumerations. Another benefit is its low cost for data transfer between the end-user browser and the application server.
aWidget
- the combo box to be added.newComboBox(Path)
,
addWidget(UIWidget)
void addUIDropDownBox(Path aPath, String htmlAttributes)
newDropDownList(Path)
and addWidget(UIWidget)
It is generally recommended to use the more advanced combo box.
The list displayed in the drop-down comes from the enumeration
defined by the target node (see SchemaNode.getEnumerationList(ValueContext)
).
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewDropDownList(Path)
,
addWidget(UIWidget)
void addUIDropDownBox(Path aPath, String htmlAttributes, Nomenclature aSpecificNomenclature)
newDropDownList(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
and addWidget(UIWidget)
It is generally recommended to use the more advanced combo box.
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaSpecificNomenclature
- specifies the value-label pairs to use specifically for this component.newDropDownList(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
,
addWidget(UIWidget)
void addUIListSearch(Path aPath, String htmlAttributes)
newComboBox(Path)
and addWidget(UIWidget)
The list used for search and selection comes from the enumeration
defined by the target node (see SchemaNode.getEnumerationList(ValueContext)
).
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewComboBox(Path)
,
addWidget(UIWidget)
void addUIListSearch(Path aPath, String htmlAttributes, Nomenclature aSpecificNomenclature)
newComboBox(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
and addWidget(UIWidget)
For drop-down components
,
this component facilitates the selection for large enumerations.
Another benefit is its low data transfer cost
between the end-user browser and the application server.
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaSpecificNomenclature
- specifies the "value-label" pairs to use specifically for this component.newComboBox(Path)
,
UIAtomicWithEnumeration.setSpecificNomenclature(Nomenclature)
,
addWidget(UIWidget)
void addUIDropDownBoxMultiple(Path aPath, String htmlAttributes)
newListBox(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewListBox(Path)
,
addWidget(UIWidget)
void addUILabel(Path aPath)
WidgetWriter.addUILabel(Path)
The description and additional information about the node are available in a pop-up.
aPath
- required, location of the target, relative to the current node
(for better reusability, it is advised to use a relative path)UIComponentWriter.addUILabel(UIFormLabelSpec)
void addUIDescription(Path aPath)
WidgetWriter.addUIDescription(Path)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.void addUIValidationMessage(Path aPath)
WidgetWriter.addUIValidationMessage(Path)
The standard position of the validation message is below the component, and the standard position of the service button is to the right of the component.
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.addServiceButton(Path)
void addUIOccurrenceEditor(Path aPath, String htmlAttributes)
UIBeanEditor.addList(UIResponseContext)
method,
each occurrence can be added with the best matching display/editor with the indexed
path obtained with UIContext.getPathForListOccurrence(int)
..[0]
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentvoid addUIComplexEditor(Path aPath, String htmlAttributes)
addWidget(Path)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaddWidget(Path)
void addUIBean(Path aPath, String htmlAttributes)
addWidget(Path)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentaddWidget(Path)
void addUIRadioButton(Path aPath, String htmlAttributes, boolean setCode, boolean setLabel, int index)
newRadioButton(Path)
,
UIWidget.setEditorDisabled(boolean)
,
UIAtomicWithEnumerationItem.setLabelEnabled(boolean)
,
UIAtomicWithEnumerationItem.setIndex(int)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node;
to improve reusability, use a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentsetCode
- this parameter is ignored for version 5.4.1 and highernewRadioButton(Path)
,
UIWidget.setEditorDisabled(boolean)
,
UIAtomicWithEnumerationItem.setLabelEnabled(boolean)
,
UIAtomicWithEnumerationItem.setIndex(int)
,
addWidget(UIWidget)
void addUIRadioButtonGroup(Path aPath, String htmlAttributes)
newRadioButtonGroup(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewRadioButton(Path)
,
addWidget(UIWidget)
void addUIRadioButtonGroup(Path aPath, String htmlAttributes, String htmlSeparator)
newRadioButtonGroup(Path)
,
UIRadioButtonGroup.setColumnsNumber(int)
(instead of htmlSeparator)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componenthtmlSeparator
- optional, a specific HTML string as value separator
(display in one line:
, or in column: <br>
)newRadioButtonGroup(Path)
,
UIRadioButtonGroup.setColumnsNumber(int)
,
addWidget(UIWidget)
void addUITextAreaField(Path aPath, String htmlAttributes)
newTextBox(Path)
,
UITextBox.setMultiLine(boolean)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewTextBox(Path)
,
UITextBox.setMultiLine(boolean)
,
addWidget(UIWidget)
void addUITextInputField(Path aPath, String htmlAttributes)
newTextBox(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewTextBox(Path)
,
addWidget(UIWidget)
void addUIPasswordInputField(Path aPath, String htmlAttributes)
newPassword(Path)
and addWidget(UIWidget)
aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewPassword(Path)
,
addWidget(UIWidget)
void addUITextHiddenInputField(Path aPath, String htmlAttributes)
newTextBox(Path)
and addWidget(UIWidget)
with a <div style="display:none;">...</div> surrounding you widget.aResponse.add("<div style=\"display:none;\">"); UITextBox textBox = aResponse.newTextBox(aPath); aResponse.addWidget(textBox); aResponse.add("</div>");
addJS_getNodeValue(Path)
and addJS_setNodeValue(String, Path)
still work.aPath
- required, location of the target, relative to the current node; to improve reusability, use
a relative path.htmlAttributes
- optional, the string is added to the attributes of the main HTML componentnewTextBox(Path)
,
addWidget(UIWidget)
void addFormRowBestMatchingComponent(Path nodePath)
UIFormWriter.addFormRow(Path)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here)..
This method calls addFormRowBestMatchingDisplay(Path)
or addFormRowBestMatchingEditor(Path)
, depending on the
rendering mode and permission rules.
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.addFormRowBestMatchingComponent(Path, boolean)
void addFormRow(UIWidget aWidget)
UIFormWriter.addFormRow(UIWidget)
A form row is composed of an icon, a label and the user interface widget corresponding to the specified field or group, either in read-only or read-write mode.
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here)..
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
aWidget
- the widget to be added to this UIBean.UnsupportedOperationException
- if the specified widget refers to a node that is neither
terminal
nor under-terminal.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.void addFormRowBestMatchingComponent(Path nodePath, boolean enableIcon)
UIFormWriter.newFormRow(Path)
,
UIFormRow.setIconDisplayed(boolean)
and UIFormWriter.addFormRow(UIFormRow)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
This method calls addFormRowBestMatchingDisplay(Path)
or addFormRowBestMatchingEditor(Path)
, depending on the
rendering mode and permission rules.
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.enableIcon
- true
, includes an icon,
false
, no icon.addFormRowBestMatchingComponent(Path)
void addFormRowBestMatchingEditor(Path nodePath)
UIFormWriter.addFormRow(Path)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.addUIBestMatchingEditor(Path, String)
void addFormRowBestMatchingEditor(Path nodePath, boolean enableIcon)
UIFormWriter.newFormRow(Path)
,
UIFormRow.setIconDisplayed(boolean)
and
UIFormWriter.addFormRow(UIFormRow)
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.enableIcon
- true
, include an icon,
false
, no icon.addUIBestMatchingEditor(Path, String)
void addFormRowBestMatchingDisplay(Path nodePath)
UIFormWriter.newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
and
UIFormWriter.addFormRow(UIWidget)
If the field is hidden according to the
permission rules,
then this method does nothing.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.addUIBestMatchingDisplay(Path, String)
void addFormRowBestMatchingDisplay(Path nodePath, boolean enableIcon)
UIFormWriter.newBestMatching(Path)
,
UIWidget.setEditorDisabled(boolean)
,
UIFormWriter.newFormRow(Path)
,
UIFormRow.setIconDisplayed(boolean)
and
UIFormWriter.addFormRow(UIFormRow, UIWidget)
If the field is hidden according to the
permission rules,
then this method does nothing.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here).
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
nodePath
- the path of the node to display.enableIcon
- true
, include an icon,
false
, no icon.addUIBestMatchingDisplay(Path, String)
UIFormRow newFormRow(Path aPath)
UIFormWriter.newFormRow(Path)
aPath
- location of the target node, relative to the current node.UIComponentWriter.newFormRow()
void addFormRow(UIFormRow aFormRow)
UIFormWriter.addFormRow(UIFormRow)
newFormRow(Path)
, the user input zone
will be adapted to the data type and the facets of the underlying node.
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here)..
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
aFormRow
- the form row, this object shall be built by means of the method newFormRow(Path)
.IllegalArgumentException
- if the specified form row has not been built with
newFormRow(Path)
.UnsupportedOperationException
- if the specified row's path refers to a node that is neither
terminal
nor under-terminal.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.void addFormRow(UIFormRow aFormRow, UIWidget aWidget)
UIFormWriter.addFormRow(UIFormRow, UIWidget)
A form row is composed of an icon, a label and the user interface widget corresponding to the specified field or group, either in read-only or read-write mode.
If the field is hidden according to the
permission rules,
then this method does nothing.
If the field is read-only according to the permission rules, then a read-only component is displayed.
This method does not take into account the defaultView
property
(since its application is restricted to the default view, which is not the case here)..
This method is equivalent to:
aResponseContext.startFormRow(aFormRow); aResponseContext.addWidget(aWidget); aResponseContext.endFormRow();
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
aFormRow
- the form row specification with the Path
of the target nodeaWidget
- the widget to be added to this pane.UnsupportedOperationException
- if the specified widget refers to a node that is neither
terminal
nor under-terminal.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.void startFormRow(Path pathForLabel)
UIFormWriter.startFormRow(Path)
Note: The form row must be closed with UIComponentWriter.endFormRow() after creating its HTML content.
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
pathForLabel
- the path of a node to display its label.UIComponentWriter.startFormRow(UIFormLabelSpec)
,
addFormRowBestMatchingEditor(Path)
void startFormRow(Path pathForLabel, boolean enableIcon)
UIFormWriter.newFormRow(Path)
,
UIFormRow.setIconDisplayed(boolean)
and
UIComponentWriter.startFormRow(UIFormRow)
Note: The form row must be closed with UIComponentWriter.endFormRow() after creating its HTML content.
It is strongly recommended to surround form rows with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
pathForLabel
- the path of a node to display its label.enableIcon
- true
to enable the icon,
false
to have no icon.UIComponentWriter.startFormRow(UIFormLabelSpec)
,
addFormRowBestMatchingEditor(Path)
UIFormGroup newFormGroup(Path aPath)
UIFormWriter.newFormGroup(Path)
aPath
- location of the target node, relative to the current node.UIComponentWriter.newFormGroup(UIFormLabelSpec)
,
UIComponentWriter.startFormGroup(UIFormGroup)
void startFormGroup(Path aPath)
UIFormWriter.startFormGroup(Path)
This method displays the default model-driven form group based on the specified node. Here, "default model-driven" means that the label, the documentation pane and the initial state of the group (expanded or collapsed) are computed from the data model definition.
This method is equivalent to:
aResponseContext.startFormGroup(aResponseContext.newFormGroup(aPath));
It is mandatory to surround a form group with
UIComponentWriter.startTableFormRow()
and
UIComponentWriter.endTableFormRow()
to have an
automatic width for labels and benefit from the latest rendering innovations.
Note: The form group must be ended with UIComponentWriter.endFormGroup() to stop the indentation.
aPath
- location of the target node, relative to the current node.PathAccessException
- if the specified path is incorrect; for instance, it does not refer to
an existing node or it is absolute and specifies a record node.IllegalStateException
- if UIComponentWriter.startTableFormRow()
was not called before.UIComponentWriter.startFormGroup(UIFormGroup)
,
UIComponentWriter.startFormGroup(UIFormLabelSpec)
void doEnsureValueIsDefined()
UITableCellStyleHandler getTableCellStyleHandler() throws IllegalStateException
WidgetWriter.getTableCellStyleHandler()
It can only be invoked in the context of the method
UIBeanEditor.addForDisplayInTable(UIResponseContext)
.
IllegalStateException
- if this method is called outside of a table cell.void setCellContentWithButtonOnRight(String aString, UIButtonSpec aButton) throws IllegalStateException
It can only be invoked in the context of the method
UIBeanEditor.addForDisplayInTable(UIResponseContext)
).
This style of presentation is used for 'Preview' button in tables, for example.
The button stays aligned to the right of the cell, and on most browsers, if there is not enough space to display the entire text, the text is truncated and displayed with an ellipsis.
The button style will be forced using the following instructions:
aButton.setButtonLayout(UIButtonLayout.ICON_ONLY);
Thus, any previously defined button layout properties, such as the relief and CSS classes, will be lost.
aButton.setRelief(UIButtonRelief.FLAT);
aButton.setCssClass(...);
Note: if content is added after calling this method, an IllegalStateException
is raised.
aString
- cell content (HTML or simple text)aButton
- the right-aligned buttonIllegalStateException
- if this method is called outside of a table cell or if content has been added
before.UIResponseContext jsBufferAddJavaScriptExpression(String aJavaScriptExpression)
UIBeanEditorV4
.
Use UIJavaScriptWriter.addJS(String)
instead.UIResponseContext jsBufferAddString(String aString)
UIJavaScriptWriter.addJS(String)
or UIBodyWriter.add(String)
instead.UIBeanEditorV4
, adds a String to JavaScript writer.
Otherwise, adds a String to the HTTP output stream.UIResponseContext jsBufferEndOfLine()
UIBeanEditorV4
.
Use UIJavaScriptWriter.addJS_cr()
or UIBodyWriter.add_cr()
instead.UIResponseContext jsBufferInitalize()
UIBeanEditorV4
.UIResponseContext jsBufferNewLine()
UIBeanEditorV4
.
Use UIJavaScriptWriter.addJS_cr()
or UIBodyWriter.add_cr()
instead.UIResponseContext jsBufferReenable(boolean isJsBufferWritingModeTemporaryDisabled)
UIBeanEditorV4
.
The boolean argument must be the result of a previous call to method
jsBufferTemporaryDisable()
.
jsBufferTemporaryDisable()
,
jsBufferNewLine()
boolean jsBufferTemporaryDisable()
UIBeanEditorV4
.
Returns true
if current mode was writing to the JavaScript buffer.
jsBufferNewLine()
,
jsBufferReenable(boolean)
void enableEscapedHtml(boolean enabled)
UIBeanEditorV4
.isEscapedHtmlEnable()
boolean isEscapedHtmlEnable()
UIBeanEditorV4
.enableEscapedHtml(boolean)
int getNextHtmlTabIndex()
TabIndexes
are no longer used in forms, the default order (no tabIndex
) is
preferable.
Currently, the tabIndex
attribute is used with the value '-1' to keep the keyboard from
having focus (i.e. control buttons of a field)UIJavaScriptWriter addJS_getNodeValue(Path aPath)
UIFormWriter.addJS_getNodeValue(Path)
For more information and usage, see UIFormWriter.addJS_getNodeValue(Path)
.
aPath
- location of the target node, relative to the current node.UIFormWriter.addJS_getNodeValue(Path)
UIJavaScriptWriter addJS_setNodeValue(String aVarName, Path aPath)
UIFormWriter.addJS_setNodeValue(String, Path)
For more information and usage, see UIFormWriter.addJS_setNodeValue(String, Path)
.
aVarName
- the name of a JavaScript variable containing the value, or the raw value.aPath
- location of the target node, relative to the current node.UIFormWriter.addJS_setNodeValue(String, Path)
Path getPrefixedPath(Path aPath)
UIFormWriter.getPrefixedPath(Path)
JavaScriptCatalog.ebx_form_getValue(String)
and
JavaScriptCatalog.ebx_form_setValue(String, Object)
.