Class: FixedFrameWrapper
- Inherits:
-
AbstractFrameWrapper
- Object
- AbstractFrameWrapper
- FixedFrameWrapper
- 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
-
#domain ⇒ Object
include AbstractFrameWrapper.
-
#extension_name ⇒ Object
readonly
Returns the value of attribute extension_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #free ⇒ Object
- #hide ⇒ Object
- #hinner_frame ⇒ Object
-
#initialize(_extension, _domain, _name, _title = '', _index = 0) ⇒ FixedFrameWrapper
constructor
A new instance of FixedFrameWrapper.
- #maximize ⇒ Object
- #maximized? ⇒ Boolean
- #raised? ⇒ Boolean
- #resize ⇒ Object
- #root ⇒ Object
-
#show ⇒ Object
def top_text(_top_text=nil) fixed_frame_forge Arcadia.layout.domain(@domain).top_text(_top_text) #@arcadia.layout.domain_for_frame(@domain, @name).top_text(_title) end.
- #show_anyway ⇒ Object
Constructor Details
#initialize(_extension, _domain, _name, _title = '', _index = 0) ⇒ FixedFrameWrapper
Returns a new instance of FixedFrameWrapper.
71 72 73 74 75 76 77 78 79 |
# File 'lib/a-commons.rb', line 71 def initialize(_extension, _domain, _name, _title='', _index=0) @extension = _extension @extension_name = _extension.name @domain =_domain @name = _name @title = _title @index = _index fixed_frame_forge end |
Instance Attribute Details
#domain ⇒ Object
include AbstractFrameWrapper
67 68 69 |
# File 'lib/a-commons.rb', line 67 def domain @domain end |
#extension_name ⇒ Object (readonly)
Returns the value of attribute extension_name.
70 71 72 |
# File 'lib/a-commons.rb', line 70 def extension_name @extension_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
68 69 70 |
# File 'lib/a-commons.rb', line 68 def name @name end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
69 70 71 |
# File 'lib/a-commons.rb', line 69 def title @title end |
Instance Method Details
#free ⇒ Object
136 137 138 139 |
# File 'lib/a-commons.rb', line 136 def free Arcadia.layout.unregister_panel(self) @fixed_frame = nil end |
#hide ⇒ Object
117 118 |
# File 'lib/a-commons.rb', line 117 def hide end |
#hinner_frame ⇒ Object
86 87 88 89 |
# File 'lib/a-commons.rb', line 86 def hinner_frame fixed_frame_forge @fixed_frame end |
#maximize ⇒ Object
128 129 130 |
# File 'lib/a-commons.rb', line 128 def maximize Arcadia.layout.domain(@domain)['root'].maximize end |
#maximized? ⇒ Boolean
124 125 126 |
# File 'lib/a-commons.rb', line 124 def maximized? Arcadia.layout.domain(@domain) && Arcadia.layout.domain(@domain)['root'].maximized? end |
#raised? ⇒ Boolean
120 121 122 |
# File 'lib/a-commons.rb', line 120 def raised? Arcadia.layout.raised?(@domain, @name) end |
#resize ⇒ Object
132 133 134 |
# File 'lib/a-commons.rb', line 132 def resize Arcadia.layout.domain(@domain)['root'].resize end |
#root ⇒ Object
91 92 93 94 |
# File 'lib/a-commons.rb', line 91 def root fixed_frame_forge Arcadia.layout.domain(@domain)['root'] end |
#show ⇒ Object
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
102 103 104 105 |
# File 'lib/a-commons.rb', line 102 def show fixed_frame_forge Arcadia.layout.raise_panel(@domain, @name) end |