Class: Glimmer::SWT::TableColumnProxy
- Inherits:
-
WidgetProxy
- Object
- WidgetProxy
- Glimmer::SWT::TableColumnProxy
- Defined in:
- lib/glimmer/swt/table_column_proxy.rb
Overview
A proxy object representing SWT TableColumn Accepts a :no_sort custom style to disable sorting on this column
Constant Summary
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS, WidgetProxy::DEFAULT_STYLES, WidgetProxy::KEYWORD_ALIASES
Instance Attribute Summary collapse
-
#editor ⇒ Object
Returns the value of attribute editor.
-
#no_sort ⇒ Object
(also: #no_sort?)
readonly
Returns the value of attribute no_sort.
-
#sort_block ⇒ Object
Returns the value of attribute sort_block.
-
#sort_by_block ⇒ Object
Returns the value of attribute sort_by_block.
-
#sort_property ⇒ Object
Returns the value of attribute sort_property.
Attributes inherited from WidgetProxy
#drag_source_proxy, #drag_source_style, #drag_source_transfer, #drop_target_proxy, #drop_target_transfer, #finished_add_content, #parent_proxy, #swt_widget
Attributes included from Custom::Drawable
#image_double_buffered, #requires_shape_disposal
Instance Method Summary collapse
- #editable? ⇒ Boolean
-
#initialize(underscored_widget_name, parent, args) ⇒ TableColumnProxy
constructor
A new instance of TableColumnProxy.
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, #disposed?, #ensure_drag_source_proxy, #ensure_drop_target_proxy, #extract_args, #finish_add_content!, flyweight_swt_widget_classes, #get_attribute, #handle_observation_request, #has_attribute?, #has_attribute_getter?, #has_attribute_setter?, #has_style?, #method_missing, #pack_same_size, #post_add_content, #post_initialize_child, #remove_observer, #respond_to?, #set_attribute, swt_widget_class_for, swt_widget_class_manual_entries, #sync_exec, #timer_exec, underscored_widget_name, widget_exists?, #widget_property_listener_installers, widget_proxy_class
Methods included from Custom::Drawable
#add_shape, #clear_shapes, #deregister_shape_painting, #image_buffered_shapes, #setup_shape_painting, #shapes
Methods included from Properties
attribute_getter, #attribute_getter, attribute_setter, #attribute_setter, normalized_attribute, #normalized_attribute, ruby_attribute_getter, #ruby_attribute_setter, ruby_attribute_setter
Methods included from Packages
Constructor Details
#initialize(underscored_widget_name, parent, args) ⇒ TableColumnProxy
Returns a new instance of TableColumnProxy.
34 35 36 37 38 39 40 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 34 def initialize(, parent, args) @no_sort = args.delete(:no_sort) super 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
#editor ⇒ Object
Returns the value of attribute editor.
30 31 32 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 30 def editor @editor end |
#no_sort ⇒ Object (readonly) Also known as: no_sort?
Returns the value of attribute no_sort.
30 31 32 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 30 def no_sort @no_sort end |
#sort_block ⇒ Object
Returns the value of attribute sort_block.
32 33 34 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 32 def sort_block @sort_block end |
#sort_by_block ⇒ Object
Returns the value of attribute sort_by_block.
32 33 34 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 32 def sort_by_block @sort_by_block end |
#sort_property ⇒ Object
Returns the value of attribute sort_property.
30 31 32 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 30 def sort_property @sort_property end |
Instance Method Details
#editable? ⇒ Boolean
51 52 53 |
# File 'lib/glimmer/swt/table_column_proxy.rb', line 51 def editable? !@editor&.include?(:none) end |