Interface ProfileFieldView
-
- All Known Implementing Classes:
CountryEditText
,DateEditText
,GenderEditText
,PhoneEditText
,ProfileBooleanEditTextView
,ProfileBooleanView
,ProfileEditText
,ProfileModalEditText
,ProfileSingleChoiceListEditText
,StateEditText
public interface ProfileFieldView
TheView
which represents a field inside a givenProfile
model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDataChanges()
Returns the changes from its originaldata
during initialization.java.lang.String
getFieldName()
Returns theProfile
field JSON "name" from the Cheetah Loyalty console.java.lang.String
getValue()
Returns the current value of the viewvoid
initialize(java.lang.String data, Metadata datum)
void
setInputType(int inputType)
Set input type for the edit textvoid
setIsInEditMode(boolean isInEditMode)
Allows changing of editable property if applicablevoid
setMaxLength(Metadata datum)
Set max length of view if applicablevoid
setUseLabelAsHint(boolean useLabelAsHint)
Sets flag for using label as hint
-
-
-
Method Detail
-
getFieldName
java.lang.String getFieldName()
Returns theProfile
field JSON "name" from the Cheetah Loyalty console. The "name" should be identical with its corresponding Metadata acquired viaMetadata.getName()
method.- Returns:
- the
Profile
field "name"
-
initialize
void initialize(java.lang.String data, Metadata datum)
- Parameters:
data
- String value of the attributedatum
- theMetadata
metadata
-
getDataChanges
java.lang.String getDataChanges()
Returns the changes from its originaldata
during initialization. NOTE: Should returnnull
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
- theMetadata
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
-
-