Class: JLDrill::PromptContext::PromptView
- Inherits:
-
Context::View
- Object
- Context::View
- JLDrill::PromptContext::PromptView
- Defined in:
- lib/jldrill/contexts/PromptContext.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Context::View
Instance Method Summary collapse
-
#destroy ⇒ Object
Destroys the prompt window.
-
#initialize(context, title, message) ⇒ PromptView
constructor
A new instance of PromptView.
-
#run ⇒ Object
Display the dialog and get the input from the user.
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, title, message) ⇒ PromptView
Returns a new instance of PromptView.
25 26 27 28 29 30 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 25 def initialize(context, title, ) super(context) @title = title @message = @response = @context.cancel end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
23 24 25 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 23 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
23 24 25 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 23 def response @response end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
23 24 25 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 23 def title @title end |
Instance Method Details
#destroy ⇒ Object
Destroys the prompt window
33 34 35 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 33 def destroy # Please override in the concrete class end |
#run ⇒ Object
Display the dialog and get the input from the user
38 39 40 |
# File 'lib/jldrill/contexts/PromptContext.rb', line 38 def run # Please override in the concrete class end |