Class: JLDrill::Gtk::PromptView

Inherits:
PromptContext::PromptView show all
Defined in:
lib/jldrill/views/gtk/PromptView.rb

Instance Attribute Summary collapse

Attributes inherited from PromptContext::PromptView

#message, #response, #title

Attributes inherited from Context::View

#context

Instance Method Summary collapse

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, message)
	super(context, title, message)
	@promptWindow = PromptWindow.new(self, title, message)
end

Instance Attribute Details

#selectorWindowObject (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

#destroyObject



20
21
22
# File 'lib/jldrill/views/gtk/PromptView.rb', line 20

def destroy
    @promptWindow.destroy
end

#getWidgetObject



16
17
18
# File 'lib/jldrill/views/gtk/PromptView.rb', line 16

def getWidget
	@promptWindow
end

#runObject



24
25
26
27
# File 'lib/jldrill/views/gtk/PromptView.rb', line 24

def run
    @response = @promptWindow.execute
    @response
end