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());
};
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Show") {
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Show(effectSpeedPanel.getSpeed())).render(true)).toString());
};
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "Hide"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Hide(effectSpeedPanel.getSpeed())).render(true)).toString());
}
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeIn"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeIn(effectSpeedPanel.getSpeed())).render(true)).toString());
}
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeOut"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeOut(effectSpeedPanel.getSpeed())).render(true)).toString());
}
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideDown"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new SlideDown(effectSpeedPanel.getSpeed())).render(true)).toString());
}
});
actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideUp"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {