this.dragableSlotList = settings.getDragableSlotList();
this.targetSlotList = settings.getTargetSlotList();
if (dragableElement != null) {
dragableElement.add(new AttributeModifier("id", true,
new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;
public Object getObject() {
return dragableElement.getId() + "_" + javaScriptId;
}
}));
}
add(dragableElement);
if (targetElement != null) {
targetElement.add(new AttributeModifier("id", true,
new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;
public Object getObject() {
return targetElement.getId() + "_" + javaScriptId;
}