Class: CWM::Tabs

Inherits:
Pager show all
Defined in:
library/cwm/src/lib/cwm/tabs.rb

Overview

See Also:

  • examples/object_api_tabsexamples/object_api_tabs.rb

Instance Attribute Summary

Attributes inherited from AbstractWidget

#handle_all_events, #widget_id

Class Method Summary collapse

Methods inherited from Pager

#contents, #handle, #init, #initial_page, #initialize, #mark_page, #page_for_id, #page_order, #replace_point, #store_page, #switch_page

Methods inherited from CustomWidget

#contents, #cwm_contents, #cwm_definition, #find_ids, #ids_in_contents

Methods inherited from AbstractWidget

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

Constructor Details

This class inherits a constructor from CWM::Pager

Class Method Details

.new(*args) ⇒ Object

CWM::Tabs does not have instances: Tabs.new overrides Class.new and calls either DumbTabPager.new or PushButtonTabPager.new.



15
16
17
18
19
20
21
# File 'library/cwm/src/lib/cwm/tabs.rb', line 15

def self.new(*args)
  if Yast::UI.HasSpecialWidget(:DumbTab)
    DumbTabPager.new(*args)
  else
    PushButtonTabPager.new(*args)
  end
end