Class: FixedFrameWrapper

Inherits:
AbstractFrameWrapper show all
Defined in:
lib/a-commons.rb

Overview

module AbstractFrameWrapper

def hinner_frame
   raise NoMethodError, "#{self} needs to respond to `:hinner_frame'" 
end

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_extension, _domain, _name, _title = '') ⇒ FixedFrameWrapper

Returns a new instance of FixedFrameWrapper.



71
72
73
74
75
76
77
# File 'lib/a-commons.rb', line 71

def initialize(_extension, _domain, _name, _title='')
  @extension = _extension
  @domain =_domain
  @name = _name
  @title = _title
  fixed_frame_forge
end

Instance Attribute Details

#domainObject

include AbstractFrameWrapper



67
68
69
# File 'lib/a-commons.rb', line 67

def domain
  @domain
end

#extensionObject (readonly)

Returns the value of attribute extension.



70
71
72
# File 'lib/a-commons.rb', line 70

def extension
  @extension
end

#nameObject (readonly)

Returns the value of attribute name.



68
69
70
# File 'lib/a-commons.rb', line 68

def name
  @name
end

#titleObject (readonly)

Returns the value of attribute title.



69
70
71
# File 'lib/a-commons.rb', line 69

def title
  @title
end

Instance Method Details

#freeObject



107
108
109
110
# File 'lib/a-commons.rb', line 107

def free
  Arcadia.layout.unregister_panel(self)
  @fixed_frame = nil
end

#hideObject



100
101
# File 'lib/a-commons.rb', line 100

def hide
end

#hinner_frameObject



84
85
86
87
# File 'lib/a-commons.rb', line 84

def hinner_frame
  fixed_frame_forge
  @fixed_frame
end

#raised?Boolean

Returns:

  • (Boolean)


103
104
105
# File 'lib/a-commons.rb', line 103

def raised?
  Arcadia.layout.raised?(@domain, @name)
end

#showObject



95
96
97
98
# File 'lib/a-commons.rb', line 95

def show
  fixed_frame_forge
  Arcadia.layout.raise_panel(@domain, @name)
end

#top_text(_top_text = nil) ⇒ Object



89
90
91
92
93
# File 'lib/a-commons.rb', line 89

def top_text(_top_text=nil)
  fixed_frame_forge
  Arcadia.layout.domain(@domain)['root'].top_text(_top_text)
  #@arcadia.layout.domain_for_frame(@domain, @name)['root'].top_text(_title)
end