android :: NativeButton :: defaultinit
android $ NativeButton :: SELF
Type of this instance, automatically specialized in every classandroid $ NativeButton :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
android :: NativeButton :: defaultinit
core :: Object :: defaultinit
jvm :: JavaObject :: defaultinit
android :: NativeTextView :: defaultinit
core :: Pointer :: defaultinit
android :: NativeView :: defaultinit
android :: NativeView :: enabled
android :: NativeView :: enabled=
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
android :: NativeView :: minimum_height=
android :: NativeView :: minimum_width=
android :: NativeTextView :: new
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
android :: NativeTextView :: set_text_appearance
Java implementation: android.widget.TextView.setTextAppearance(android.content.Context, int)android :: NativeTextView :: text
android :: NativeTextView :: text=
android :: NativeTextView :: text_size
android :: NativeTextView :: text_size=
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
android :: Android_widget_CompoundButton
Java abstract class: android.widget.CompoundButtonandroid :: Android_widget_CheckBox
Java class: android.widget.CheckBox
extern class NativeButton in "Java" `{ android.widget.Button `}
super NativeTextView
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = NativeButton_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
end
lib/android/ui/native_ui.nit:191,1--199,3
redef class NativeButton
private new (context: NativeActivity, sender_object: Button)
import Button.on_click in "Java" `{
final nit.app.NitObject final_sender_object = sender_object;
Button_incr_ref(final_sender_object);
return new android.widget.Button(context) {
@Override
public boolean onTouchEvent(android.view.MotionEvent event) {
if (event.getAction() == android.view.MotionEvent.ACTION_UP) {
Button_on_click(final_sender_object);
return true;
} else if (event.getAction() == android.view.MotionEvent.ACTION_DOWN) {
return true;
}
return false;
}
};
`}
end
lib/android/ui/ui.nit:328,1--347,3