handled ajaxevents

This commit is contained in:
Peter Schojer
2008-09-10 14:13:31 +00:00
parent 2febc946df
commit b9fa3377a0
10 changed files with 348 additions and 7 deletions

View File

@@ -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);