Class: Glimmer::SWT::StyledTextProxy
- Inherits:
-
WidgetProxy
- Object
- WidgetProxy
- Glimmer::SWT::StyledTextProxy
- Defined in:
- lib/glimmer/swt/styled_text_proxy.rb
Overview
Proxy for org.eclipse.swt.custom.StyledText
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from WidgetProxy
WidgetProxy::DEFAULT_INITIALIZERS, WidgetProxy::DEFAULT_STYLES, WidgetProxy::KEYWORD_ALIASES
Instance Attribute Summary
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?, #initialize, #method_missing, #pack_same_size, #post_add_content, #post_initialize_child, #remove_observer, #respond_to?, swt_widget_class_for, #sync_exec, underscored_widget_name, widget_exists?, #widget_property_listener_installers, widget_proxy_class
Methods included from Packages
Constructor Details
This class inherits a constructor from Glimmer::SWT::WidgetProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::SWT::WidgetProxy
Instance Method Details
#set_attribute(attribute_name, *args) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/glimmer/swt/styled_text_proxy.rb', line 30 def set_attribute(attribute_name, *args) if attribute_name.to_s == 'selection' if args.first async_exec { @swt_widget.setCaretOffset(args.first.x) } async_exec { @swt_widget.setSelection(args.first) } end else super(attribute_name, *args) end end |