/** * Creates a new ButtonBase component. * * @param container container, component will be placed in */ public ButtonBase(ComponentContainer container) { super(container); view = new android.widget.Button(container.$context()); // Save the default values in case the user wants them back later. defaultButtonDrawable = view.getBackground(); defaultColorStateList = view.getTextColors(); // Adds the component to its designated container container.$add(this); // Listen to clicks and focus changes view.setOnClickListener(this); view.setOnFocusChangeListener(this); view.setOnLongClickListener(this); view.setOnTouchListener(this); // Default property values TextAlignment(Component.ALIGNMENT_CENTER); // BackgroundColor and Image are dangerous properties: // Once either of them is set, the 3D bevel effect for the button is // irretrievable, except by reloading defaultButtonDrawable, defined above. BackgroundColor(Component.COLOR_DEFAULT); Image(""); Enabled(true); fontTypeface = Component.TYPEFACE_DEFAULT; TextViewUtil.setFontTypeface(view, fontTypeface, bold, italic); FontSize(Component.FONT_DEFAULT_SIZE); Text(""); TextColor(Component.COLOR_DEFAULT); Shape(Component.BUTTON_SHAPE_DEFAULT); }
private void b() { Utils.a( Utils.getResourceId(Utils.jdField_a_of_type_JavaLangString, "id", "tv_header"), getResources() .getString( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "string", "upomp_bypay_editpass"))); jdField_a_of_type_AndroidWidgetButton = (Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_userpass_old_editpass")); jdField_a_of_type_AndroidWidgetButton.setFocusable(true); jdField_a_of_type_AndroidWidgetButton.setFocusableInTouchMode(true); jdField_a_of_type_AndroidWidgetButton.setOnFocusChangeListener( this.jdField_a_of_type_AndroidViewView$OnFocusChangeListener); jdField_a_of_type_AndroidWidgetButton.setOnClickListener(this); jdField_b_of_type_AndroidWidgetButton = (Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_userpass_new_editpass")); jdField_b_of_type_AndroidWidgetButton.setFocusable(true); jdField_b_of_type_AndroidWidgetButton.setFocusableInTouchMode(true); jdField_b_of_type_AndroidWidgetButton.setOnFocusChangeListener( this.jdField_a_of_type_AndroidViewView$OnFocusChangeListener); jdField_b_of_type_AndroidWidgetButton.setOnClickListener(this); jdField_c_of_type_AndroidWidgetButton = (Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_userpass_re_editpass")); jdField_c_of_type_AndroidWidgetButton.setFocusable(true); jdField_c_of_type_AndroidWidgetButton.setFocusableInTouchMode(true); jdField_c_of_type_AndroidWidgetButton.setOnFocusChangeListener( this.jdField_a_of_type_AndroidViewView$OnFocusChangeListener); jdField_c_of_type_AndroidWidgetButton.setOnClickListener(this); this.jdField_a_of_type_AndroidWidgetTextView = ((TextView) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "tv_tel_content_editpass"))); this.jdField_a_of_type_AndroidWidgetTextView.setText(Utils.a(eh.R, 3, 3)); jdField_a_of_type_AndroidWidgetEditText = (EditText) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "et_validcode_editpass")); jdField_a_of_type_AndroidWidgetEditText.setFocusable(true); jdField_a_of_type_AndroidWidgetEditText.setFocusableInTouchMode(true); jdField_a_of_type_AndroidWidgetEditText.setOnFocusChangeListener( this.jdField_a_of_type_AndroidViewView$OnFocusChangeListener); this.e = ((Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_validcode_editpass"))); this.e.setFocusable(true); this.e.setFocusableInTouchMode(true); this.e.setOnFocusChangeListener(this.jdField_a_of_type_AndroidViewView$OnFocusChangeListener); this.e.setOnClickListener(this); this.jdField_d_of_type_AndroidWidgetButton = ((Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_button_editpass"))); this.jdField_d_of_type_AndroidWidgetButton.setOnClickListener(this); this.f = ((Button) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "btn_return_editpass"))); this.f.setOnClickListener(this); ((TextView) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "tv_welcome_editpass"))) .setText( getResources() .getString( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "string", "upomp_bypay_welcome")) + eh.X); this.jdField_a_of_type_AndroidWidgetRelativeLayout = ((RelativeLayout) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "rl_userpass_old_editpass"))); this.jdField_b_of_type_AndroidWidgetRelativeLayout = ((RelativeLayout) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "rl_userpass_new_editpass"))); this.jdField_c_of_type_AndroidWidgetRelativeLayout = ((RelativeLayout) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "rl_userpass_re_editpass"))); this.jdField_d_of_type_AndroidWidgetRelativeLayout = ((RelativeLayout) findViewById( Utils.getResourceId( Utils.jdField_a_of_type_JavaLangString, "id", "rl_validcode_editpass"))); }