Sha256: 91d9844c9f32cd88e3c1d58f0ada06791c9d09d456c7b4de3fdeb870efff1fe7
Contents?: true
Size: 1004 Bytes
Versions: 3
Compression:
Stored size: 1004 Bytes
Contents
require File.dirname(__FILE__) + "/g_runnable" module Glimmer module SWT 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 def get_attribute(attribute_name) if attribute_name.to_s == "text" @tab_item.widget.text else super(attribute_name) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
glimmer-0.4.9 | lib/glimmer/swt/g_tab_item_composite.rb |
glimmer-0.4.8 | lib/glimmer/swt/g_tab_item_composite.rb |
glimmer-0.4.7 | lib/glimmer/swt/g_tab_item_composite.rb |