Class: JLDrill::ShowExamplesContext::ExampleView
- Inherits:
-
Context::View
- Object
- Context::View
- JLDrill::ShowExamplesContext::ExampleView
- Defined in:
- lib/jldrill/contexts/ShowExamplesContext.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exampleWindow ⇒ Object
readonly
Returns the value of attribute exampleWindow.
Attributes inherited from Context::View
Instance Method Summary collapse
-
#close ⇒ Object
This is a convenience function for the tests so that they don’t have to catch the close on the context.
-
#destroy ⇒ Object
Destroy the window.
-
#initialize(context) ⇒ ExampleView
constructor
A new instance of ExampleView.
-
#showBusy(bool) ⇒ Object
Show the busy cursor in the UI if bool is true.
-
#update(examples) ⇒ Object
Update the examples in the UI.
-
#updateNativeOnly(examples) ⇒ Object
Update the examples in the UI showing only native language.
-
#updateTargetOnly(examples) ⇒ Object
Update the examples in the UI showing only target language.
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ ExampleView
Returns a new instance of ExampleView.
20 21 22 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 20 def initialize(context) super(context) end |
Instance Attribute Details
#exampleWindow ⇒ Object (readonly)
Returns the value of attribute exampleWindow.
18 19 20 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 18 def exampleWindow @exampleWindow end |
Instance Method Details
#close ⇒ Object
This is a convenience function for the tests so that they don’t have to catch the close on the context
53 54 55 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 53 def close @context.exit end |
#destroy ⇒ Object
Destroy the window
25 26 27 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 25 def destroy # Please define in the concrete class end |
#showBusy(bool) ⇒ Object
Show the busy cursor in the UI if bool is true. This happens during a long event where the user can’t interact with the window
47 48 49 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 47 def showBusy(bool) # Please define in the concrete class end |
#update(examples) ⇒ Object
Update the examples in the UI
40 41 42 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 40 def update(examples) # Please define in the concrete class end |
#updateNativeOnly(examples) ⇒ Object
Update the examples in the UI showing only native language
30 31 32 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 30 def updateNativeOnly(examples) # Please define in the concrete class end |
#updateTargetOnly(examples) ⇒ Object
Update the examples in the UI showing only target language
35 36 37 |
# File 'lib/jldrill/contexts/ShowExamplesContext.rb', line 35 def updateTargetOnly(examples) # Please define in the concrete class end |