Add default anchor callbacks for this component based on its id so they are instance specific.
<a href="#" name="{.callback/@event name}" class="{componentId}" rel="{callback parameter/event value}">{label}</a>

Examples #1: Will call the client side component onRenameClick method with the nodeRef as the first parameter and the link as the second:
<a href="#" name".onRenameClick" class="${args.htmlid?js_string}" rel="${nodeRef}">${msg("link.rename")}</a>

Exmaple #2: Will make the client side component fire an event name "metaDataRefresh" with the nodeRef as the value:
<a href="#" name"@metaDataRefresh" class="${args.htmlid?js_string}" rel="${nodeRef}">${msg("link.metaDataRefresh")}</a>

Will be called after the components onready method adn will search for buttons declared as alfresco-buttons.
Convert these to yui push buttons and make them either fire an event or call a method on the component.
The created yui buttons will be placed inside the components "widgets" attribute with the method as the key.

Examples #1: Will call the client side component onRenameClick method with the nodeRef as the first parameter and the button itself as the second:
<button type="alfresco-button" name=".onRenameClick" value="${nodeRef}">${msg("button.rename")}</button>

Exmaple #2: Will make the client side component fire an event name "metaDataRefresh" with the nodeRef as the value:
<button type="alfresco-button" name="@metaDataRefresh" value="${nodeRef}">${msg("button.metaDataRefresh")}</button>