Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.forms.layout.api
Class BuiltinWidgetModes

java.lang.Object
  extended by org.nuxeo.ecm.platform.forms.layout.api.BuiltinWidgetModes

public class BuiltinWidgetModes
extends Object

List of built in widget modes.

Author:
Anahide Tchertchian

Field Summary
static String CSV
           
static String EDIT
           
static String HIDDEN
           
static String PDF
           
static String PLAIN
           
static String VIEW
           
 
Method Summary
static boolean isLikePlainMode(String widgetMode)
          Returns true if given mode is one of PLAIN, or CSV.
static boolean isLikeViewMode(String widgetMode)
          Returns true if given mode is not null and is not one of EDIT, PLAIN, CSV, PDF or HIDDEN mode.
static boolean isModeSupported(String widgetMode, List<String> supportedModes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW

public static final String VIEW
See Also:
Constant Field Values

EDIT

public static final String EDIT
See Also:
Constant Field Values

PLAIN

public static final String PLAIN
Since:
5.4.2
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

HIDDEN

public static final String HIDDEN
See Also:
Constant Field Values
Method Detail

isModeSupported

public static final boolean isModeSupported(String widgetMode,
                                            List<String> supportedModes)

isLikePlainMode

public static final boolean isLikePlainMode(String widgetMode)
Returns true if given mode is one of PLAIN, or CSV.

Since:
5.4.2

isLikeViewMode

public static final boolean isLikeViewMode(String widgetMode)
Returns true if given mode is not null and is not one of EDIT, PLAIN, CSV, PDF or HIDDEN mode.

Parameters:
widgetMode -
Returns:
Since:
5.4.2

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.