android :: NativeTextView :: defaultinit
android :: NativeTextView :: new
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=
android $ NativeTextView :: SELF
Type of this instance, automatically specialized in every classandroid $ NativeTextView :: 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 :: NativeTextView :: defaultinit
jvm :: JavaObject :: defaultinit
core :: Pointer :: defaultinit
android :: NativeView :: defaultinit
core :: Object :: 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_CheckBox
Java class: android.widget.CheckBoxandroid :: Android_widget_CompoundButton
Java abstract class: android.widget.CompoundButton
extern class NativeTextView in "Java" `{ android.widget.TextView `}
super NativeView
new (context: NativeActivity) in "Java" `{ return new TextView(context); `}
fun text: JavaString in "Java" `{ return self.getText().toString(); `}
fun text=(value: JavaString) in "Java" `{ self.setText(value); `}
fun gravity_center in "Java" `{
self.setGravity(Gravity.CENTER);
`}
fun text_size: Float in "Java" `{
return self.getTextSize();
`}
fun text_size=(dpi: Float) in "Java" `{
self.setTextSize(android.util.TypedValue.COMPLEX_UNIT_DIP, (float)dpi);
`}
# Java implementation: android.widget.TextView.setTextAppearance(android.content.Context, int)
fun set_text_appearance(arg0: NativeContext, arg1: Int) in "Java" `{
self.setTextAppearance(arg0, (int)arg1);
`}
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = NativeTextView_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
end
lib/android/ui/native_ui.nit:142,1--173,3