mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-26 00:40:05 +01:00
handled ajaxevents
This commit is contained in:
@@ -102,6 +102,7 @@ void Button::init(Cell::Ptr ptrCell)
|
||||
ButtonCell::Ptr pCell = ptrCell.cast<ButtonCell>();
|
||||
poco_check_ptr (pCell);
|
||||
pCell->buttonClicked = delegate(*this, &Button::fireButtonClicked);
|
||||
pCell->ajaxButtonClicked = ajaxDelegate(*this, &Button::fireAjaxButtonClicked);
|
||||
setCell(pCell);
|
||||
}
|
||||
|
||||
@@ -113,6 +114,12 @@ void Button::init()
|
||||
}
|
||||
|
||||
|
||||
void Button::fireAjaxButtonClicked(void* pSender, AjaxParameters& params)
|
||||
{
|
||||
ajaxButtonClicked(pSender, params);
|
||||
}
|
||||
|
||||
|
||||
void Button::fireButtonClicked(void* pSender)
|
||||
{
|
||||
ButtonEvent clickedEvent(this);
|
||||
|
||||
Reference in New Issue
Block a user