text
app :: TextInput :: defaultinit
app :: TextInput :: is_password
Hide password or any content entered in this view?app :: TextInput :: is_password=
Hide password or any content entered in this view?app :: TextInput :: placeholder=
Set the placeholder text, shown in light gray when the field is emptyios :: ui $ TextInput :: is_password=
Hide password or any content entered in this view?linux :: ui $ TextInput :: is_password=
Hide password or any content entered in this view?android :: ui $ TextInput :: is_password=
Hide password or any content entered in this view?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
app :: TextInput :: defaultinit
core :: Finalizable :: defaultinit
gtk :: GtkCallable :: defaultinit
app :: AppComponent :: defaultinit
app :: View :: defaultinit
core :: Object :: defaultinit
app :: AppObserver :: defaultinit
app :: Control :: defaultinit
app :: TextView :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself
before the memory holding self
is freed
app :: TextInput :: is_password
Hide password or any content entered in this view?app :: TextInput :: is_password=
Hide password or any content entered in this view?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.
app :: AppComponent :: notify_observers
Propagateevent
to all observers
by calling AppObserver::on_event
app :: AppComponent :: observers
AllAppObserver
notified of events raised by self
app :: AppComponent :: observers=
AllAppObserver
notified of events raised by self
app :: AppComponent :: on_pause
The application leaves the active state but is still partially visibleapp :: AppComponent :: on_restart
The application returns to a visible state from a previouson_stop
app :: AppComponent :: on_restore_state
The application is launching, restore its state from a previouson_save_state
app :: AppComponent :: on_resume
The application enters the active state, it is in the foreground and interactiveapp :: AppComponent :: on_save_state
The application may be destroyed soon, save its state for a futureon_restore_state
app :: AppComponent :: on_start
The application is starting or restarting, it is visible to the usercore :: Object :: output_class_name
Display class name on stdout (debug only).Control
in the control tree
Control
in the control tree
app :: TextInput :: placeholder=
Set the placeholder text, shown in light gray when the field is emptyapp :: AppComponent
An element of an application that is notified of the application life cyclegtk :: GtkCallable
redef class TextInput
redef type NATIVE: UITextField
redef var native = new UITextField
redef fun text=(text) do native.text = (text or else "").to_nsstring
redef fun text do return native.text.to_s
redef fun is_password=(value)
do
native.secure_text_entry = value or else false
super
end
redef fun size=(size) do native.size = ios_points(size)
redef fun align=(align) do native.align = align or else 0.0
# Set the placeholder text, shown in light gray when the field is empty
fun placeholder=(text: Text) do native.placeholder = text.to_nsstring
end
lib/ios/ui/ui.nit:361,1--381,3
redef class TextInput
redef type NATIVE: GtkEntry
redef var native = new GtkEntry
redef fun text do return native.text
redef fun text=(value) do
if value == null then value = ""
native.text = value.to_s
end
redef fun is_password=(value)
do
native.visibility = value != true
super
end
end
lib/linux/ui.nit:328,1--343,3
redef class TextInput
redef type NATIVE: NativeEditText
redef var native = (new NativeEditText(app.native_activity)).new_global_ref
redef fun is_password=(value)
do
native.is_password = value or else false
super
end
end
lib/android/ui/ui.nit:292,1--301,3