Design Patterns
list_box.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_MEDIATOR_LIST_BOX_H_
7 #define OPERATIONAL_MEDIATOR_LIST_BOX_H_
8 
11 
12 #include <string>
13 
14 #include "../iterator/list.h"
15 
16 
17 namespace operational
18 {
19 namespace madiator
20 {
22 {
23  public:
24  explicit ListBox(DialogDirectorInterface* director);
25 
26  virtual const std::string &GetSelection();
27  virtual void SetList(iterator::List<std::string>* items);
28  virtual void HandleMouse(MouseEvent& event) override;
29  virtual void Changed() override;
30 
31  private:
32  DialogDirectorInterface* director_;
34 };
35 }
36 }
37 
38 #endif
39 
Definition: mouse_event.h:13
virtual void Changed() override
Definition: list_box.cc:29
Definition: application.cc:10
Definition: mediator_widget_interface.h:15
ListBox(DialogDirectorInterface *director)
Definition: list_box.cc:12
Definition: list_box.h:21
Definition: dialog_director_interface.h:15
virtual const std::string & GetSelection()
Definition: list_box.cc:14
virtual void SetList(iterator::List< std::string > *items)
Definition: list_box.cc:19
virtual void HandleMouse(MouseEvent &event) override
Definition: list_box.cc:24