Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WizardUtils

        public WizardUtils()
    • 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