Class: Sirens::Window

Inherits:
PrimitiveComponent show all
Defined in:
lib/components/containers/window.rb

Overview

Component that wraps a WindowView.

Instance Method Summary collapse

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_viewObject

Returns a WindowView.



9
10
11
# File 'lib/components/containers/window.rb', line 9

def create_view()
    WindowView.new
end

#openObject



20
21
22
# File 'lib/components/containers/window.rb', line 20

def open()
    show()
end

#showObject

Makes this component visible.



16
17
18
# File 'lib/components/containers/window.rb', line 16

def show()
    view.show
end