return 2853;
}
@Override
protected void setup() {
final Embedded e = new Embedded("Caption", new ThemeResource(
"../runo/icons/64/ok.png"));
e.setAlternateText("Alt text of the image");
addComponent(e);
final Embedded player = new Embedded();
player.setAlternateText("Alt text of the object");
player.setType(Embedded.TYPE_OBJECT);
player.setWidth("400px");
player.setHeight("300px");
player.setMimeType("application/x-shockwave-flash");
String url = "http://www.youtube.com/v/qQ9N742QB4g&autoplay=1";
player.setSource(new ExternalResource(url));
player.setParameter("movie", "someRandomValue");
player.setParameter("allowFullScreen", "true");
addComponent(player);
Button changeAltTexts = new Button("Change alt texts",
new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
e.setAlternateText("New alt text of the image!");
player.setAlternateText("New alt text of the object!");
}
});
addComponent(changeAltTexts);
}