Hello,
I set a textfield component on my page to be able to set the template name, but when i click on the button, the rotation works just for the first time, when i click agin and agin, nothing happens, do someone know why? Thanks.
btSaveTemplate.addClickListener(new Button.ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void buttonClick(ClickEvent event)
{
SearchFilter filter = new SearchFilter();
filter.setTemplateName("temp");
try
{
//templateName.setVisible(true);
Animator.animate(templateName, new Css().rotate(360)).delay(1000).duration(2000);
//save();
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
});