Class: Sirens::Window
- Inherits:
-
PrimitiveComponent
- Object
- AbstractComponent
- PrimitiveComponent
- Sirens::Window
- Defined in:
- lib/components/containers/window.rb
Overview
Component that wraps a WindowView.
Instance Method Summary collapse
-
#create_view ⇒ Object
Returns a WindowView.
- #open ⇒ Object
-
#show ⇒ Object
Makes this component visible.
Methods inherited from PrimitiveComponent
#apply_props, #initialize, #on_component_added, #on_model_changed, #on_value_changed, #populate_popup_menu, #set_props, #subscribe_to_model_events, #sync_ui_from_model
Methods inherited from AbstractComponent
#add_all_components, #add_component, #child_components, #default_model, #initialize, #model, #on_component_added, #on_model_changed, open, #props, #remove_component_at, #remove_last_component, #set_model, #set_props, #view
Constructor Details
This class inherits a constructor from Sirens::PrimitiveComponent
Instance Method Details
#create_view ⇒ Object
Returns a WindowView.
9 10 11 |
# File 'lib/components/containers/window.rb', line 9 def create_view() WindowView.new end |
#open ⇒ Object
20 21 22 |
# File 'lib/components/containers/window.rb', line 20 def open() show() end |
#show ⇒ Object
Makes this component visible.
16 17 18 |
# File 'lib/components/containers/window.rb', line 16 def show() view.show end |