Interface ProfileFieldView

    • Method Detail

      • getFieldName

        java.lang.String getFieldName()
        Returns the Profile field JSON "name" from the Cheetah Loyalty console. The "name" should be identical with its corresponding Metadata acquired via Metadata.getName() method.
        Returns:
        the Profile field "name"
      • initialize

        void initialize​(java.lang.String data,
                        Metadata datum)
        Initializes the current ProfileFieldView given the Data from Profile and Profile Metadata Metadata.
        Parameters:
        data - String value of the attribute
        datum - the Metadata metadata
      • getDataChanges

        java.lang.String getDataChanges()
        Returns the changes from its original data during initialization. NOTE: Should return null if there were NO changes.
        Returns:
        the Data change in String format, null if no changes
      • setIsInEditMode

        void setIsInEditMode​(boolean isInEditMode)
        Allows changing of editable property if applicable
        Parameters:
        isInEditMode - flag for whether to set this view to be editable or not
      • setMaxLength

        void setMaxLength​(Metadata datum)
        Set max length of view if applicable
        Parameters:
        datum - the Metadata metadata
      • setInputType

        void setInputType​(int inputType)
        Set input type for the edit text
        Parameters:
        inputType - InputType constants
      • setUseLabelAsHint

        void setUseLabelAsHint​(boolean useLabelAsHint)
        Sets flag for using label as hint
        Parameters:
        useLabelAsHint - true to enable using of label as hint, else false
      • getValue

        java.lang.String getValue()
        Returns the current value of the view
        Returns:
        String value of the View