Class: Nobbie::Wx::SelectOperations
- Inherits:
-
Object
- Object
- Nobbie::Wx::SelectOperations
- Defined in:
- lib/nobbie/wx/impl/operation/select.rb
Instance Method Summary collapse
-
#choose(value) ⇒ Object
Selects the given value for the component specified in the path.
-
#initialize(operations, path) ⇒ SelectOperations
constructor
A new instance of SelectOperations.
-
#selected_value ⇒ Object
Retrieves the currently selected value for the component specified in the path.
Constructor Details
#initialize(operations, path) ⇒ SelectOperations
Returns a new instance of SelectOperations.
5 6 7 8 |
# File 'lib/nobbie/wx/impl/operation/select.rb', line 5 def initialize(operations, path) @operations = operations @path = path end |
Instance Method Details
#choose(value) ⇒ Object
Selects the given value for the component specified in the path.
Supported components: Notebook, Menu, ComboBox, ListBox, Choice
18 19 20 |
# File 'lib/nobbie/wx/impl/operation/select.rb', line 18 def choose(value) execute(@operations.command_factory.create_select_command(@path, value)) end |
#selected_value ⇒ Object
Retrieves the currently selected value for the component specified in the path.
Supported components: Notebook, ComboBox, ListBox, Choice
12 13 14 |
# File 'lib/nobbie/wx/impl/operation/select.rb', line 12 def selected_value execute(@operations.command_factory.create_get_selected_values_command(@path)) end |