Class: PropLineReadOnly

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-rad/ae-rad-inspector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_bodyprops, _key, _value) ⇒ PropLineReadOnly

Returns a new instance of PropLineReadOnly.



449
450
451
452
453
454
455
456
457
458
459
460
# File 'ext/ae-rad/ae-rad-inspector.rb', line 449

def initialize(_bodyprops, _key, _value)
  @bodyprops = _bodyprops
  @key = _key
  @splitted_frame = AGTkVSplittedFrames.new(@bodyprops.host,@bodyprops.host, 85)
  @propkey = TkLabel.new(@splitted_frame.left_frame, Arcadia.style('label')){
    text _key
    justify 'right'
    anchor 'w'
    pack('fill'=>'x',:padx=>0, :pady=>0)
  }
  @valueobj = ValueRapReadOnly.new(self, _value)
end

Instance Attribute Details

#bodypropsObject (readonly)

Returns the value of attribute bodyprops.



448
449
450
# File 'ext/ae-rad/ae-rad-inspector.rb', line 448

def bodyprops
  @bodyprops
end

#splitted_frameObject (readonly)

Returns the value of attribute splitted_frame.



447
448
449
# File 'ext/ae-rad/ae-rad-inspector.rb', line 447

def splitted_frame
  @splitted_frame
end

#valueobjObject (readonly)

Returns the value of attribute valueobj.



446
447
448
# File 'ext/ae-rad/ae-rad-inspector.rb', line 446

def valueobj
  @valueobj
end

Instance Method Details

#freeObject



462
463
464
465
466
# File 'ext/ae-rad/ae-rad-inspector.rb', line 462

def free
  @propkey.destroy if @propkey !=nil
  @valueobj.free if @valueobj !=nil
  @valueobj = nil
end

#setvalue(_value) ⇒ Object



468
469
470
# File 'ext/ae-rad/ae-rad-inspector.rb', line 468

def setvalue(_value)
  @valueobj.updatevalue(_value)
end

#updatekeyvalue(_key, _value) ⇒ Object



472
473
474
475
476
# File 'ext/ae-rad/ae-rad-inspector.rb', line 472

def updatekeyvalue(_key, _value)
  @key = _key
  @propkey.configure('text'=>_key) # chiave
  @valueobj.recicle(_value)
end