Class BuiltinModes
- java.lang.Object
-
- org.nuxeo.ecm.platform.forms.layout.api.BuiltinModes
-
public class BuiltinModes extends Object
List of built-in modes.- Author:
- Anahide Tchertchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ANY
public static final String ANY
- See Also:
- Constant Field Values
-
VIEW
public static final String VIEW
- See Also:
- Constant Field Values
-
EDIT
public static final String EDIT
- See Also:
- Constant Field Values
-
BULK_EDIT
public static final String BULK_EDIT
- See Also:
- Constant Field Values
-
CREATE
public static final String CREATE
- See Also:
- Constant Field Values
-
SEARCH
public static final String SEARCH
- See Also:
- Constant Field Values
-
SUMMARY
public static final String SUMMARY
- See Also:
- Constant Field Values
-
CSV
public static final String CSV
- Since:
- 5.4.2
- See Also:
- Constant Field Values
-
PDF
public static final String PDF
- Since:
- 5.4.2
- See Also:
- Constant Field Values
-
PLAIN
public static final String PLAIN
- Since:
- 5.4.2
- See Also:
- Constant Field Values
-
DEV
public static final String DEV
- Since:
- 6.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
isBoundToEditMode
public static boolean isBoundToEditMode(String layoutMode)
Returns true if given layout mode is mapped by default to the edit widget mode.
-
getWidgetModeFromLayoutMode
public static String getWidgetModeFromLayoutMode(String layoutMode)
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.
-
-