Class: CWM::InputField

Inherits:
AbstractWidget show all
Includes:
ValueBasedWidget
Defined in:
library/cwm/src/lib/cwm/common_widgets.rb

Overview

An input field widget. The AbstractWidget#label method is mandatory.

Examples:

input field widget child

class MyWidget < CWM::InputField
  def initialize(myconfig)
    @config = myconfig
  end

  def label
    _("The best widget ever is:")
  end

  def init
    self.value = @config.value
  end

  def store
    @config.value = value
  end
end

Direct Known Subclasses

UI::Widgets::KeyboardLayoutTest

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Method Summary

Methods included from ValueBasedWidget

#value, #value=

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=