Class: CWM::PushButton

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

Overview

Widget representing button.

Examples:

push button widget child

class MyEvilWidget < CWM::PushButton
  def label
    _("Win the lottery by clicking this.")
  end

  def handle
    Virus.install
    nil
  end
end

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Method Summary

Methods inherited from AbstractWidget

#cleanup, #cwm_definition, #disable, #enable, #enabled?, #handle, #help, #init, #label, #opt, #store, #validate, widget_type=