Class: CWM::Empty

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

Overview

An empty widget useful mainly as placeholder for replacement or for catching global events

Examples:

empty widget usage

CWM.show(VBox(CWM::Empty.new("replace_point")))

Direct Known Subclasses

Dialog::FakeHelp

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Instance Method Summary collapse

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=

Constructor Details

#initialize(id) ⇒ Empty

Returns a new instance of Empty.

Parameters:

  • id (String)

    widget ID



20
21
22
23
24
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 20

def initialize(id)
  super()

  self.widget_id = id
end