Class: Glimmer::SWT::TableColumnProxy

Inherits:
WidgetProxy show all
Defined in:
lib/glimmer/swt/table_column_proxy.rb

Constant Summary

Constants inherited from WidgetProxy

WidgetProxy::DEFAULT_INITIALIZERS, WidgetProxy::DEFAULT_STYLES

Instance Attribute Summary collapse

Attributes inherited from WidgetProxy

#drag_source_proxy, #drag_source_style, #drag_source_transfer, #drop_target_proxy, #drop_target_transfer, #parent_proxy, #swt_widget

Instance Method Summary collapse

Methods inherited from WidgetProxy

#add_observer, #async_exec, #can_add_observer?, #can_handle_drag_observation_request?, #can_handle_drop_observation_request?, #can_handle_observation_request?, #content, create, #dispose, #ensure_drag_source_proxy, #ensure_drop_target_proxy, #extract_args, #get_attribute, #handle_observation_request, #has_attribute?, #has_style?, #method_missing, #pack_same_size, #post_add_content, #post_initialize_child, #remove_observer, #respond_to?, #set_attribute, swt_widget_class_for, #sync_exec, underscored_widget_name, widget_exists?, #widget_property_listener_installers, widget_proxy_class

Methods included from Packages

included

Constructor Details

#initialize(underscored_widget_name, parent, args) ⇒ TableColumnProxy

Returns a new instance of TableColumnProxy.



10
11
12
13
14
15
16
# File 'lib/glimmer/swt/table_column_proxy.rb', line 10

def initialize(underscored_widget_name, parent, args)
  @no_sort = args.delete(:no_sort)
  super
  on_widget_selected do |event|
    parent.sort_by_column(self)
  end unless no_sort?
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Glimmer::SWT::WidgetProxy

Instance Attribute Details

#editorObject

Returns the value of attribute editor.



6
7
8
# File 'lib/glimmer/swt/table_column_proxy.rb', line 6

def editor
  @editor
end

#no_sortObject (readonly) Also known as: no_sort?

Returns the value of attribute no_sort.



6
7
8
# File 'lib/glimmer/swt/table_column_proxy.rb', line 6

def no_sort
  @no_sort
end

#sort_blockObject

Returns the value of attribute sort_block.



8
9
10
# File 'lib/glimmer/swt/table_column_proxy.rb', line 8

def sort_block
  @sort_block
end

#sort_by_blockObject

Returns the value of attribute sort_by_block.



8
9
10
# File 'lib/glimmer/swt/table_column_proxy.rb', line 8

def sort_by_block
  @sort_by_block
end

#sort_propertyObject

Returns the value of attribute sort_property.



6
7
8
# File 'lib/glimmer/swt/table_column_proxy.rb', line 6

def sort_property
  @sort_property
end