what-the-bank/sources/com/scb/phone/view/custom/common/ScheduleDate.java

124 lines
3.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.common;
import android.content.Context;
import android.content.res.ColorStateList;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import o.C16034kdZ;
import o.InterfaceC12869fJm;
import o.fIV;
import o.nMh;
/* loaded from: classes5.dex */
public class ScheduleDate extends RelativeLayout {
@BindView
ImageView arrowIcon;
@BindView
ImageButton calendarButton;
private fIV d;
@BindView
public EditText dateField;
@BindView
TextView dateLabel;
private InterfaceC12869fJm e;
@BindView
EditText paymentField;
public ScheduleDate(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559326, (ViewGroup) this, true);
ButterKnife.c(this);
}
public void setDateHint(String str) {
this.dateField.setHint(str);
}
public void setPaymentHint(String str) {
this.paymentField.setHint(str);
}
public void setLabel(CharSequence charSequence) {
this.dateLabel.setText(charSequence);
}
public void setDateField(String str) {
this.dateField.setText(str);
}
public void setPaymentField(String str) {
this.paymentField.setText(str);
}
public void setDateFieldVisible(int i) {
this.dateField.setVisibility(i);
}
public void setPaymentFieldVisible(int i) {
this.paymentField.setVisibility(i);
}
public void setCalendarButtonVisible(int i) {
this.calendarButton.setVisibility(i);
}
public void setArrowIconVisible(int i) {
this.arrowIcon.setVisibility(i);
}
@OnClick
public void onFieldClick() {
InterfaceC12869fJm interfaceC12869fJm = this.e;
if (interfaceC12869fJm != null) {
interfaceC12869fJm.b();
}
}
@OnClick
public void onCalendarClick() {
InterfaceC12869fJm interfaceC12869fJm = this.e;
if (interfaceC12869fJm != null) {
interfaceC12869fJm.b();
}
}
@OnClick
public void onPaymentFieldClick() {
fIV fiv = this.d;
if (fiv != null) {
fiv.c();
}
}
public void setCalendarButtonTint(int i) {
C16034kdZ.vs_(this.calendarButton, ColorStateList.valueOf(nMh.getColor(getContext(), i)));
}
public void setDateFieldBackground(int i) {
this.dateField.setBackground(nMh.getDrawable(getContext(), i));
}
public void setOnSelectDateListener(InterfaceC12869fJm interfaceC12869fJm) {
this.e = interfaceC12869fJm;
}
public void setOnMakePaymentEveryListener(fIV fiv) {
this.d = fiv;
}
}