class Plugin::GUI::Pane

Public Class Methods

active() click to toggle source
# File core/plugin/gui/pane.rb, line 31
def self.active
  @@default ||= instance(:default, "デフォルト")
end
new(*args) click to toggle source

instanceから呼ばれる。勝手に作成しないこと

Calls superclass method Plugin::GUI::Cuscadable.new
# File core/plugin/gui/pane.rb, line 21
def initialize(*args)
  super
  @@default ||= self
  Plugin.call(:pane_created, self)
end

Public Instance Methods

active!(just_this=true, by_toolkit=false) click to toggle source
Calls superclass method Plugin::GUI::HierarchyChild#active!
# File core/plugin/gui/pane.rb, line 27
def active!(just_this=true, by_toolkit=false)
  @@default = self
  super end
add_child(child, index=children.size) click to toggle source
Calls superclass method Plugin::GUI::HierarchyParent#add_child
# File core/plugin/gui/pane.rb, line 35
def add_child(child, index=children.size)
  result = super(child, index)
  if children[index+1] == @active_child
    Delayer.new{ child.active! } end
  result end