Sha256: 42829e9926cd649d072400016122010fb43c27f5ad0cbf73ef94917ea8df23ba

Contents?: true

Size: 1.07 KB

Versions: 81

Compression:

Stored size: 1.07 KB

Contents

require 'rubygems'
require 'bundler/setup'

require 'ruby-event'

module RubyApp

  module Elements

    module Base
      require 'ruby_app/element'

      class BaseDialog < RubyApp::Element

        class ShownEvent < RubyApp::Element::Event

          def initialize(data)
            super(data)
          end

        end

        class HiddenEvent < RubyApp::Element::Event

          def initialize(data)
            super(data)
          end

        end

        template_path(:all, File.dirname(__FILE__))

        attr_reader :response

        event :shown
        event :hidden

        def initialize
          super
        end

        protected

          def on_event(event)
            on_shown(event) if event.is_a?(RubyApp::Elements::Base::BaseDialog::ShownEvent)
            on_hidden(event) if event.is_a?(RubyApp::Elements::Base::BaseDialog::HiddenEvent)
            super(event)
          end

          def on_shown(event)
            shown(event)
          end

          def on_hidden(event)
            hidden(event)
          end

      end

    end

  end

end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.6 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.5 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.4 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.3 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.2 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.1 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.2.0 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.91 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.90 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.89 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.88 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.87 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.86 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.85 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.84 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.83 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.82 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.81 lib/ruby_app/elements/base/base_dialog.rb
RubyApp-0.0.80 lib/ruby_app/elements/base/base_dialog.rb