Class: Fox::FXDelegator

Inherits:
FXObject show all
Defined in:
rdoc-sources/FXDelegator.rb

Overview

A delegator forwards messages to a delegate object. Delegators are used when you need to multiplex messages toward any number of target objects. For example, many controls may be connected to FXDelegator, instead of directly to the document object. Changing the delegate in FXDelegator will then reconnect the controls with their new target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

#initialize(delegate = nil) ⇒ FXDelegator

Construct a new delegator



19
20
# File 'rdoc-sources/FXDelegator.rb', line 19

def initialize(delegate=nil) # :yields: theDelegate
end

Instance Attribute Details

#delegateObject

The object to which all messages are delegated Fox::FXObject



14
15
16
# File 'rdoc-sources/FXDelegator.rb', line 14

def delegate
  @delegate
end