ActionsPanel actions = new ActionsPanel("actions");
add(actions);
actions.addItem(effectSpeedPanel = new EffectSpeedPanel(actions.newChildId(), EffectSpeed.SLOW));
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Toggle") {
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Toggle(effectSpeedPanel.getSpeed())).render(true)).toString());