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")))

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Instance Method Summary collapse

Methods inherited from AbstractWidget

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

Constructor Details

#initialize(id) ⇒ Empty

Returns a new instance of Empty

Parameters:

  • id (String)

    widget ID



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

def initialize(id)
  self.widget_id = id
end