Interface ProfileFieldView
-
- All Known Implementing Classes:
CountryEditText,DateEditText,GenderEditText,PhoneEditText,ProfileBooleanEditTextView,ProfileBooleanView,ProfileEditText,ProfileModalEditText,ProfileSingleChoiceListEditText,StateEditText
public interface ProfileFieldViewTheViewwhich represents a field inside a givenProfilemodel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDataChanges()Returns the changes from its originaldataduring initialization.java.lang.StringgetFieldName()Returns theProfilefield JSON "name" from the Cheetah Loyalty console.java.lang.StringgetValue()Returns the current value of the viewvoidinitialize(java.lang.String data, Metadata datum)voidsetInputType(int inputType)Set input type for the edit textvoidsetIsInEditMode(boolean isInEditMode)Allows changing of editable property if applicablevoidsetMaxLength(Metadata datum)Set max length of view if applicablevoidsetUseLabelAsHint(boolean useLabelAsHint)Sets flag for using label as hint
-
-
-
Method Detail
-
getFieldName
java.lang.String getFieldName()
Returns theProfilefield JSON "name" from the Cheetah Loyalty console. The "name" should be identical with its corresponding Metadata acquired viaMetadata.getName()method.- Returns:
- the
Profilefield "name"
-
initialize
void initialize(java.lang.String data, Metadata datum)- Parameters:
data- String value of the attributedatum- theMetadatametadata
-
getDataChanges
java.lang.String getDataChanges()
Returns the changes from its originaldataduring initialization. NOTE: Should returnnullif there were NO changes.- Returns:
- the Data change in
Stringformat,nullif 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- theMetadatametadata
-
setInputType
void setInputType(int inputType)
Set input type for the edit text- Parameters:
inputType-InputTypeconstants
-
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
-
-