Sha256: 0b12dbdab5648ba3fec0e209066cbb2b3733560fcf3775dd949d35be56e6bd3d
Contents?: true
Size: 811 Bytes
Versions: 4
Compression:
Stored size: 811 Bytes
Contents
require File.dirname(__FILE__) + "/g_widget_listener" require File.dirname(__FILE__) + "/g_runnable" module Glimmer class GTabItemComposite < GWidget include_package 'org.eclipse.swt.widgets' attr_reader :tab_item def initialize(tab_item, parent, style, &contents) super("composite", parent, style, &contents) @tab_item = tab_item @tab_item.widget.control = self.widget end def has_attribute?(attribute_name, *args) if attribute_name.to_s == "text" true else super(attribute_name, *args) end end def set_attribute(attribute_name, *args) if attribute_name.to_s == "text" text_value = args[0] @tab_item.widget.text = text_value else super(attribute_name, *args) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems