Class: JLDrill::ShowExamplesContext::ExampleView

Inherits:
Context::View show all
Defined in:
lib/jldrill/contexts/ShowExamplesContext.rb

Direct Known Subclasses

Gtk::ExampleView, Test::ExampleView

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

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

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

#closeObject

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

#destroyObject

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