class ArcadiaUserControl::UserItem

Attributes

action[RW]
caption[RW]
context[RW]
context_caption[RW]
event_args[RW]
event_class[RW]
hint[RW]
image_data[RW]
item_obj[R]
name[RW]
rif[RW]

Public Class Methods

new(_sender, _args) click to toggle source
# File lib/a-core.rb, line 1480
def initialize(_sender, _args)
  @sender = _sender
  if _args
    _args.each do |key, value|
      self.send(key+'=', value) if self.respond_to?(key)
    end
  end
  if @action
    @command = proc{Arcadia.process_event(_sender.instance_eval(@action))}
  elsif @event_class
    @command = proc{Arcadia.process_event(@event_class.new(_sender, @event_args))}
  end
end

Public Instance Methods

background() click to toggle source
# File lib/a-core.rb, line 1504
def background
end
enable=(_value) click to toggle source
# File lib/a-core.rb, line 1501
def enable=(_value)
end
foreground() click to toggle source
# File lib/a-core.rb, line 1507
def foreground
end
method_missing(m, *args) click to toggle source
# File lib/a-core.rb, line 1494
def method_missing(m, *args)
  if @item_obj && @item_obj.respond_to?(m)
    @item_obj.send(m, *args)
  end
end