Class WizardUtils
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.WizardUtils
-
public class WizardUtils extends java.lang.Object
This class contains some useful methods that can be used when working with wizards
-
-
Constructor Summary
Constructors Constructor Description WizardUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getObjectTextLabel(TypedObject object)
Returns the label for the typed object provided by the labelService from the current UISession.static java.lang.String
getObjectTextLabel(TypedObject object, UISession session)
Returns the label for the typed object provided by the labelService from the given UISession.static boolean
isLocalValueEmpty(java.lang.Object localValue)
Method for checking value from value handler, allows to avoid overwriting original value with default value
-
-
-
Method Detail
-
getObjectTextLabel
public static java.lang.String getObjectTextLabel(TypedObject object)
Returns the label for the typed object provided by the labelService from the current UISession. Must be invoked from within a cockpit environment
-
getObjectTextLabel
public static java.lang.String getObjectTextLabel(TypedObject object, UISession session)
Returns the label for the typed object provided by the labelService from the given UISession.
-
isLocalValueEmpty
public static boolean isLocalValueEmpty(java.lang.Object localValue)
Method for checking value from value handler, allows to avoid overwriting original value with default value- Parameters:
localValue
- local value taken from value handler- Returns:
- true if value is null or empty, otherwise false
-
-