public AnimationPage3()
{
final TextField tf;
add(tf = new TextField("textfield", new PropertyModel(this, "textfield")));
EllipsePanel ellipsePanel;
add(ellipsePanel = new EllipsePanel("ep1", new ThumbnailProvider())
{
@Override
public Component newEllipseItem(String id, IModel model, int left, int top)
{
AnimatedThumbnailSettings settings = (AnimatedThumbnailSettings) model.getObject();
settings.setThumbnailDimension(getItemWidth(), getItemHeight());
settings.setPictureDimension(PIC_WIDTH, PIC_HEIGHT);
settings.setPicturePosition(PIC_LEFT - left, PIC_TOP - top);
AnimatedItem item = new MyAnimatedThumbnail(id, tf, settings);
items.add(item);
return item;
}
@Override
protected void onBeforeRender()
{
super.onBeforeRender();
for (AnimatedItem anItem : items)
{
for (AnimatedItem anItem2 : items)
{
String value = anItem.getSelectValue();
if (anItem != anItem2)
anItem.getOnunselectAnimation().addTriggerOnValue(anItem2.getMouseoverItem(), tf , value);
}
}
}
});
ellipsePanel.setDimension(PANEL_WIDTH, PANEL_HEIGHT, ITEM_WIDTH, ITEM_HEIGHT);
}