DateTime

public class DateTime extends AppCompatTextView implements IFormControl

Fields

mCalendar

protected Calendar mCalendar

mDateFormat

protected SimpleDateFormat mDateFormat

mFieldName

protected String mFieldName

mIsShowLast

protected boolean mIsShowLast

mPickerType

protected int mPickerType

mTimeDialog

protected TimePickerDialog mTimeDialog

Constructors

DateTime

public DateTime(Context context)

DateTime

public DateTime(Context context, AttributeSet attrs)

DateTime

public DateTime(Context context, AttributeSet attrs, int defStyle)

Methods

addToLayout

public void addToLayout(ViewGroup layout)

getDateUpdateWatcher

protected View.OnClickListener getDateUpdateWatcher(int pickerType)

getFieldName

public String getFieldName()

getValue

public Object getValue()

init

public void init(JSONObject element, List<Field> fields, Bundle savedState, Cursor featureCursor, SharedPreferences preferences)

isShowLast

public boolean isShowLast()

parseDateTime

protected long parseDateTime(String value, int type)

saveLastValue

public void saveLastValue(SharedPreferences preferences)

saveState

public void saveState(Bundle outState)

setCurrentDate

public void setCurrentDate()

setPickerType

public void setPickerType(int pickerType)