android :: NativeEditText :: defaultinit
android :: NativeEditText :: is_password=
Configure this view to hide passwordsandroid :: NativeEditText :: new
android :: NativeEditText :: width=
android $ NativeEditText :: SELF
Type of this instance, automatically specialized in every classandroid $ NativeEditText :: 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.
core :: Pointer :: defaultinit
android :: NativeEditText :: defaultinit
jvm :: JavaObject :: defaultinit
android :: NativeView :: defaultinit
core :: Object :: defaultinit
android :: NativeTextView :: defaultinit
android :: NativeView :: enabled
android :: NativeView :: enabled=
android :: NativeEditText :: is_password=
Configure this view to hide passwordscore :: 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
android :: NativeEditText :: 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 :: NativeEditText :: width=
extern class NativeEditText in "Java" `{ android.widget.EditText `}
super NativeTextView
new (context: NativeActivity) in "Java" `{ return new android.widget.EditText(context); `}
fun width=(val: Int) in "Java" `{ self.setWidth((int)val); `}
fun input_type_text in "Java" `{ self.setInputType(android.text.InputType.TYPE_CLASS_TEXT); `}
redef fun new_global_ref import sys, Sys.jni_env `{
Sys sys = NativeEditText_sys(self);
JNIEnv *env = Sys_jni_env(sys);
return (*env)->NewGlobalRef(env, self);
`}
end
lib/android/ui/native_ui.nit:175,1--189,3
redef class NativeEditText
# Configure this view to hide passwords
fun is_password=(value: Bool) in "Java" `{
if (value) {
self.setInputType(android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD);
self.setTransformationMethod(android.text.method.PasswordTransformationMethod.getInstance());
} else {
self.setInputType(android.text.InputType.TYPE_CLASS_TEXT);
self.setTransformationMethod(null);
}
`}
end
lib/android/ui/ui.nit:303,1--315,3