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, #displayed?, #enable, #enabled?, #focus, #fun_ref, #handle, #help, #init, #label, #my_event?, #opt, #refresh_help, #store, #validate, widget_type=