@@ -0,0 +1,1638 @@
+/*%0A * Copyright 2018 Nikita Shakarun%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage javax.microedition.lcdui;%0A%0Aimport android.view.View;%0A%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0Aimport java.util.TimeZone;%0A%0Apublic class DateField extends Item %7B%0A%09public static final int DATE = 1;%0A%09public static final int DATE_TIME = 3;%0A%09public static final int TIME = 2;%0A%0A%09private View view;%0A%09private int mode;%0A%09private Date date;%0A%0A%09public DateField(String label, int mode) %7B%0A%09%09this(label, mode, TimeZone.getDefault());%0A%09%7D%0A%0A%09public DateField(String label, int mode, TimeZone timeZone) %7B%0A%09%09setDate(Calendar.getInstance(timeZone).getTime());%0A%09%09setInputMode(mode);%0A%09%09setLabel(label);%0A%09%7D%0A%0A%09public Date getDate() %7B%0A%09%09return date;%0A%09%7D%0A%0A%09public int getInputMode() %7B%0A%09%09return mode;%0A%09%7D%0A%0A%09public void setDate(Date date) %7B%0A%09%09this.date = date;%0A%09%7D%0A%0A%09public void setInputMode(int mode) %7B%0A%09%09this.mode = mode;%0A%09%7D%0A%0A%09@Override%0A%09protected View getItemContentView() %7B%0A%09%09if (view == null) %7B%0A%09%09%09view = new View(getOwnerForm().getParentActivity());%0A%09%09%7D%0A%0A%09%09return view;%0A%09%7D%0A%0A%09@Override%0A%09protected void clearItemContentView() %7B%0A%09%09view = null;%0A%09%7D%0A%7D%0A

Add stub for DateField