Class: JLDrill::Gtk::PromptView
- Inherits:
-
PromptContext::PromptView
- Object
- Context::View
- PromptContext::PromptView
- JLDrill::Gtk::PromptView
- Defined in:
- lib/jldrill/views/gtk/PromptView.rb
Instance Attribute Summary collapse
-
#selectorWindow ⇒ Object
readonly
Returns the value of attribute selectorWindow.
Attributes inherited from PromptContext::PromptView
Attributes inherited from Context::View
Instance Method Summary collapse
- #destroy ⇒ Object
- #getWidget ⇒ Object
-
#initialize(context, title, message) ⇒ PromptView
constructor
A new instance of PromptView.
- #run ⇒ Object
Methods inherited from Context::View
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, title, message) ⇒ PromptView
Returns a new instance of PromptView.
11 12 13 14 |
# File 'lib/jldrill/views/gtk/PromptView.rb', line 11 def initialize(context, title, ) super(context, title, ) @promptWindow = PromptWindow.new(self, title, ) end |
Instance Attribute Details
#selectorWindow ⇒ Object (readonly)
Returns the value of attribute selectorWindow.
9 10 11 |
# File 'lib/jldrill/views/gtk/PromptView.rb', line 9 def selectorWindow @selectorWindow end |
Instance Method Details
#destroy ⇒ Object
20 21 22 |
# File 'lib/jldrill/views/gtk/PromptView.rb', line 20 def destroy @promptWindow.destroy end |
#getWidget ⇒ Object
16 17 18 |
# File 'lib/jldrill/views/gtk/PromptView.rb', line 16 def getWidget @promptWindow end |
#run ⇒ Object
24 25 26 27 |
# File 'lib/jldrill/views/gtk/PromptView.rb', line 24 def run @response = @promptWindow.execute @response end |