app :: HttpRequestClientWindow :: label_response
Label displaying feedback to userapp :: HttpRequestClientWindow :: label_response=
Label displaying feedback to userapp $ HttpRequestClientWindow :: SELF
Type of this instance, automatically specialized in every classapp $ HttpRequestClientWindow :: on_event
Notification ofevent
raised by sender
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
app :: Window :: defaultinit
gtk :: GtkCallable :: defaultinit
core :: Finalizable :: defaultinit
core :: Object :: defaultinit
app :: AppComponent :: defaultinit
app :: Control :: defaultinit
app :: AppObserver :: defaultinit
app :: CompositeControl :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself
before the memory holding self
is freed
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 :: HttpRequestClientWindow :: label_response
Label displaying feedback to userapp :: HttpRequestClientWindow :: label_response=
Label displaying feedback to userapp :: 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 :: AppComponent
An element of an application that is notified of the application life cyclegtk :: GtkCallable
# Simple window with a label and a button
class HttpRequestClientWindow
super Window
# Root layout
var layout = new ListLayout(parent=self)
# Button to send request
var button_request = new Button(parent=layout, text="Press to send HTTP request")
# Label displaying feedback to user
var label_response = new Label(parent=layout, text="No response yet.")
init do button_request.observers.add self
redef fun on_event(event)
do
if event isa ButtonPressEvent and event.sender == button_request then
# Prepare and send request
var request = new MyHttpRequest(self)
request.start
end
end
end
lib/app/examples/http_request_example.nit:60,1--83,3