Class: Wee::MessageDialog

Inherits:
FormDialog show all
Defined in:
lib/wee/dialog.rb

Overview

class FormDialog

Constant Summary

Constants inherited from Component

Component::NO_CHILDREN

Instance Method Summary collapse

Methods inherited from FormDialog

#render, #render_body, #render_buttons, #render_caption, #render_form

Methods inherited from Component

#add_decoration, #children, #choose_from, #confirm, #decoration, #decoration=, depends, #each_decoration, #find_decoration, #inform, instanciate, #process_callbacks, #remove_decoration, #remove_decoration_if, #render, #state

Methods inherited from Presenter

#process_callbacks, #render, #render!, #renderer_class, #state

Constructor Details

#initialize(caption, *buttons) ⇒ MessageDialog

Returns a new instance of MessageDialog.



57
58
59
60
# File 'lib/wee/dialog.rb', line 57

def initialize(caption, *buttons)
  super(caption)
  @buttons = buttons
end

Instance Method Details

#buttonsObject



62
63
64
# File 'lib/wee/dialog.rb', line 62

def buttons
  @buttons
end