Class: Canis::TabButton

Inherits:
RadioButton show all
Defined in:
lib/canis/core/widgets/rtabbedpane.rb

Overview

class tab

Instance Attribute Summary collapse

Attributes inherited from Widget

#_object_created, #col_offset, #config, #curpos, #focussed, #form, #handler, #id, #key_label, #parent_component, #row_offset, #state

Instance Method Summary collapse

Methods inherited from RadioButton

#checked, #fire, #getvalue, #initialize, #toggle

Methods inherited from ToggleButton

#checked, #checked?, #fire, #getvalue, #handle_key, #initialize, #toggle

Methods inherited from Button

#action, #bind_hotkey, button_layout, #command, #default_button, #fire, #getvalue, #handle_key, #initialize, #map_keys, #mnemonic, #repaint, #text

Methods inherited from Widget

#action_manager, #bgcolor, #color, #color_pair, #command, #destroy, #focus, #focusable, #focusable?, #getvalue, #handle_key, #hide, #init_vars, #initialize, #modified?, #move, #on_enter, #on_leave, #override_graphic, #process_key, #property_set, #remove, #repaint, #repaint_all, #repaint_required, #rowcol, #set_form, #set_form_col, #set_form_row, #set_modified, #setformrowcol, #setrowcol, #show, #unbind_key

Methods included from Io

#__create_footer_window, #clear_this, #get_file, #print_this, #rb_getchar, #rb_gets, #rb_getstr, #warn

Methods included from Utils

#ORIG_process_key, #ORIGbind_key, #ORIGkeycode_tos, #_process_key, #bind_composite_mapping, #bind_key, #bind_keys, #check_composite_mapping, #create_logger, #define_key, #define_prefix_command, #execute_mapping, #get_attrib, #get_color, #key, #key_tos, #print_key_bindings, #repeatm, #run_command, #shell_out, #shell_output, #suspend, #view, #xxxbind_composite_mapping

Methods included from ConfigSetup

#config_setup, #variable_set

Methods included from EventHandler

#bind, #event?, #event_list, #fire_handler, #fire_property_change, #register_events

Constructor Details

This class inherits a constructor from Canis::RadioButton

Instance Attribute Details

#display_tab_on_traversalObject

Returns the value of attribute display_tab_on_traversal.



580
581
582
# File 'lib/canis/core/widgets/rtabbedpane.rb', line 580

def display_tab_on_traversal
  @display_tab_on_traversal
end

Instance Method Details

#getvalue_for_paintObject



581
582
583
# File 'lib/canis/core/widgets/rtabbedpane.rb', line 581

def getvalue_for_paint
  @text
end

#selected?Boolean

Returns:

  • (Boolean)


584
585
586
# File 'lib/canis/core/widgets/rtabbedpane.rb', line 584

def selected?
  @variable.value == @value 
end