Class: CWM::SelectionBox
- Inherits:
-
AbstractWidget
- Object
- AbstractWidget
- CWM::SelectionBox
- Includes:
- ItemsSelection
- Defined in:
- library/cwm/src/lib/cwm/common_widgets.rb
Overview
Widget representing selection box to select value. The AbstractWidget#label method is mandatory.
Instance Attribute Summary
Attributes inherited from AbstractWidget
#handle_all_events, #widget_id
Instance Method Summary collapse
-
#value ⇒ String
Get widget value.
-
#value=(val) ⇒ Object
Set widget value.
Methods included from ItemsSelection
#change_items, #cwm_definition, #items
Methods inherited from AbstractWidget
#cleanup, #cwm_definition, #disable, #displayed?, #enable, #enabled?, #focus, #fun_ref, #handle, #help, #init, #label, #my_event?, #opt, #refresh_help, #store, #validate, widget_type=
Instance Method Details
#value ⇒ String
Get widget value
Calling this method only make sense when the widget is displayed (see #displayed?).
212 213 214 |
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 212 def value Yast::UI.QueryWidget(Id(), :CurrentItem) end |
#value=(val) ⇒ Object
Set widget value
Calling this method only make sense when the widget is displayed (see #displayed?).
221 222 223 |
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 221 def value=(val) Yast::UI.ChangeWidget(Id(), :CurrentItem, val) end |