package com.jiuqi.ui.widget; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import com.jqyd.uilib.R; /** * 文本录入框编辑器 */ public class EditorEditTextWithButton extends EditorBase { private Context context; public EditorEditTextWithButton(Context context, Param param, ViewGroup parent){ super(context, param, parent); this.context = context; } /** * */ private static final long serialVersionUID = -3773925210814413470L; private TextView tvLabel; private EditText etInput; private RelativeLayout evLayout; private String recid; private Button etButton; private LinearLayout speechLayout; @Override public void doInit(){ View root = inflater.inflate(R.layout.editor_edittext_withbutton, mWrapper); tvLabel = (TextView)root.findViewById(R.id.tvLabel); etInput = (EditText)root.findViewById(R.id.etInput); etButton = (Button)root.findViewById(R.id.etButton); evLayout = (RelativeLayout)root.findViewById(R.id.etlayout); speechLayout=(LinearLayout) root.findViewById(R.id.speechLayout); } @Override public TextView getLabel(){ return tvLabel; } public Button getEtButton() { return etButton; } public void setEtButton(Button etButton) { this.etButton = etButton; } @Override public TextView getInputWidget(){ return etInput; } public RelativeLayout getRelativeLayout() { return evLayout; } public LinearLayout getLinearLayout() { return speechLayout; } public String getRecid() { return recid; } public void setRecid(String recid) { this.recid = recid; } }