ManaPlus
Public Member Functions | Protected Member Functions
ActionListener Class Referenceabstract

#include <actionlistener.h>

Inheritance diagram for ActionListener:
anonymous_namespace{client.cpp}::AccountListener anonymous_namespace{client.cpp}::LoginListener AwayListener BankWindow BuyDialog BuySellDialog ChangeDisplay ChangeEmailDialog ChangePasswordDialog CharacterViewBase CharCreateDialog CharRenameListener CharSelectDialog ChatWindow Client Client ConfirmDialog ConnectionDialog DidYouKnowWindow DropDown EditDialog EditServerDialog EquipmentWindow ErrorListener GuiTableActionListener HelpWindow InputActionRemoteListener InputActionReplayListener InsertCardListener InventoryWindow ItemAmountWindow KillStats LoginDialog MailEditWindow MailViewWindow MailWindow NpcDialog OkDialog OpenUrlListener OutfitWindow PincodeListener PlayerListener PlayerPostDeathListener QuestsWindow QuitDialog RegisterDialog RenameListener RequestAdoptChildListener RequestTradeListener SellDialog ServerDialog SetupItem SetupTab SetupWindow ShopRenameListener ShopWindow SkillDialog SkillWarpListener SliderList SocialGuildTab SocialGuildTab2 SocialPartyTab SocialWindow StatusWindow TabbedArea TextCommandEditor TextDialog TextSelectDialog TextSkillListener TradeWindow UpdaterWindow UploadListener WeightListener WhoIsOnline WidgetGroup WindowMenu WorldSelectDialog WrongDataNoticeListener

Public Member Functions

virtual ~ActionListener ()
 
virtual void action (const ActionEvent &actionEvent)=0
 

Protected Member Functions

 ActionListener ()
 

Detailed Description

Interface for listening for action events from widgets.

See also
Widget::addActionListener, Widget::removeActionListener, ActionEvent
Author
Olof Naessén
Per Larsson

Definition at line 77 of file actionlistener.h.

Constructor & Destructor Documentation

◆ ~ActionListener()

virtual ActionListener::~ActionListener ( )
inlinevirtual

Destructor.

Definition at line 85 of file actionlistener.h.

References action().

86  { }

◆ ActionListener()

ActionListener::ActionListener ( )
inlineprotected

Constructor.

You should not be able to make an instance of ActionListener, therefore its constructor is protected.

Definition at line 104 of file actionlistener.h.

105  { }

Member Function Documentation

◆ action()

virtual void ActionListener::action ( const ActionEvent actionEvent)
pure virtual

Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.

Parameters
actionEventThe event of the action.

Implemented in SetupItemSound, SetupItemSliderList, SetupItemSlider2, SetupItemSlider, SetupItemLabel, SetupItemIntTextField, anonymous_namespace{client.cpp}::LoginListener, SetupItemTextField, anonymous_namespace{client.cpp}::AccountListener, TabbedArea, TradeWindow, BuyDialog, DropDown, ChatWindow, UpdaterWindow, NpcDialog, SetupItem, SellDialog, InventoryWindow, ShopWindow, Client, ServerDialog, StatusWindow, EquipmentWindow, WhoIsOnline, SocialPartyTab, SocialGuildTab, SocialGuildTab2, Client, SkillDialog, LoginDialog, CharSelectDialog, RegisterDialog, OkDialog, SocialWindow, WorldSelectDialog, BuySellDialog, CharCreateDialog, EditServerDialog, QuitDialog, SliderList, ConfirmDialog, EditDialog, TextCommandEditor, TextDialog, ChangeEmailDialog, ChangePasswordDialog, WindowMenu, TextSelectDialog, ConnectionDialog, HelpWindow, QuestsWindow, Setup_Input, ItemAmountWindow, DidYouKnowWindow, SetupQuickItem, SetupTabScroll, Setup_Relations, KillStats, OutfitWindow, Setup_Video, SetupWindow, ChangeDisplay, CharDeleteConfirm, MailWindow, Setup_Colors, SetupButtonItem, PlayerPostDeathListener, Setup_Theme, BankWindow, MailEditWindow, RequestTradeListener, Setup_Joystick, MailViewWindow, CharacterViewSmall, TabStrip, GuiTableActionListener, InsertCardListener, WeightListener, WrongDataNoticeListener, CharacterViewNormal, OpenUrlListener, WidgetGroup, CharRenameListener, ErrorListener, InputActionReplayListener, PlayerListener, RequestAdoptChildListener, UploadListener, RenameListener, PincodeListener, ShopRenameListener, SkillWarpListener, TextSkillListener, AwayListener, and InputActionRemoteListener.

Referenced by ~ActionListener().


The documentation for this class was generated from the following file: