Class BuiltinModes
java.lang.Object
org.nuxeo.ecm.platform.forms.layout.api.BuiltinModes
List of built-in modes.
- Author:
- Anahide Tchertchian
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getWidgetModeFromLayoutMode
(String layoutMode) Returns the default mode to use for a widget, given the layout mode.static boolean
isBoundToEditMode
(String layoutMode) Returns true if given layout mode is mapped by default to the edit widget mode.
-
Field Details
-
ANY
- See Also:
-
VIEW
- See Also:
-
EDIT
- See Also:
-
BULK_EDIT
- See Also:
-
CREATE
- See Also:
-
SEARCH
- See Also:
-
SUMMARY
- See Also:
-
CSV
- Since:
- 5.4.2
- See Also:
-
PDF
- Since:
- 5.4.2
- See Also:
-
PLAIN
- Since:
- 5.4.2
- See Also:
-
DEV
- Since:
- 6.0
- See Also:
-
-
Method Details
-
isBoundToEditMode
Returns true if given layout mode is mapped by default to the edit widget mode. -
getWidgetModeFromLayoutMode
Returns the default mode to use for a widget, given the layout mode.Returns
BuiltinWidgetModes.EDIT
for all modes bound to edit,BuiltinWidgetModes.VIEW
for modesVIEW
andSUMMARY
.PDF
andCSV
are respectively bound toBuiltinWidgetModes.PDF
andBuiltinWidgetModes.CSV
. In other cases, returnsBuiltinWidgetModes.PLAIN
.This method is not called when mode is explicitely set on the widget.
-