2023-09-01 12:55:04 +02:00
|
|
|
package android.widget;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
|
|
2023-09-19 23:22:21 +02:00
|
|
|
public class CheckBox extends CompoundButton {
|
2023-09-01 12:55:04 +02:00
|
|
|
|
|
|
|
|
public CheckBox(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CheckBox(Context context, AttributeSet attributeSet) {
|
|
|
|
|
super(context, attributeSet);
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-08 21:40:39 +01:00
|
|
|
public void setLines(int lines) {}
|
|
|
|
|
|
2024-03-10 16:05:31 +01:00
|
|
|
@Override
|
|
|
|
|
protected native long native_constructor(Context context, AttributeSet attrs);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native void setOnCheckedChangeListener(OnCheckedChangeListener listener);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native void setChecked(boolean checked);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native boolean isChecked();
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public native void setText(CharSequence text);
|
|
|
|
|
|
|
|
|
|
// following methods are overridden to prevent calling incompatible methods from superclasses
|
|
|
|
|
@Override
|
|
|
|
|
public void setOnClickListener(final OnClickListener l) {}
|
|
|
|
|
@Override
|
|
|
|
|
public void setTextColor(int color) {}
|
|
|
|
|
@Override
|
|
|
|
|
public void setTextSize(float size) {}
|
|
|
|
|
|
2023-09-01 12:55:04 +02:00
|
|
|
}
|