public class BuiltinModes extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANY |
static String |
BULK_EDIT |
static String |
CREATE |
static String |
CSV |
static String |
DEV |
static String |
EDIT |
protected static String |
HEADER
Deprecated.
|
static String |
LISTING
Deprecated.
|
static String |
PDF |
static String |
PLAIN |
static String |
SEARCH |
static String |
SUMMARY |
static String |
VIEW |
Modifier and Type | Method and 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.
|
public static final String ANY
public static final String VIEW
public static final String EDIT
public static final String BULK_EDIT
public static final String CREATE
public static final String SEARCH
@Deprecated public static final String LISTING
public static final String SUMMARY
@Deprecated protected static final String HEADER
public static final String CSV
public static final String PDF
public static final String PLAIN
public static final String DEV
public static boolean isBoundToEditMode(String layoutMode)
public static String getWidgetModeFromLayoutMode(String layoutMode)
Returns BuiltinWidgetModes.EDIT
for all modes bound to edit, BuiltinWidgetModes.VIEW
for modes
VIEW
, HEADER
and SUMMARY
. PDF
and CSV
are respectively bound to
BuiltinWidgetModes.PDF
and BuiltinWidgetModes.CSV
. In other cases, returns
BuiltinWidgetModes.PLAIN
.
This method is not called when mode is explicitely set on the widget.
Copyright © 2015 Nuxeo SA. All rights reserved.