Class: Reactive::View::Wx::Helpers::ModelShowCtrl
- Inherits:
-
Wx::Panel
- Object
- Wx::Panel
- Reactive::View::Wx::Helpers::ModelShowCtrl
- Defined in:
- lib/helpers/model_show_ctrl_class.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(parent, record, options = {}) ⇒ ModelShowCtrl
constructor
A new instance of ModelShowCtrl.
- #selected_records ⇒ Object
Constructor Details
#initialize(parent, record, options = {}) ⇒ ModelShowCtrl
Returns a new instance of ModelShowCtrl.
13 14 15 16 17 18 |
# File 'lib/helpers/model_show_ctrl_class.rb', line 13 def initialize(parent, record, = {}) super(parent, ) @model, @record = record.class, record fill_controls(record) end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/helpers/model_show_ctrl_class.rb', line 7 def model @model end |
Instance Method Details
#selected_records ⇒ Object
9 10 11 |
# File 'lib/helpers/model_show_ctrl_class.rb', line 9 def selected_records [@record] end |