and label.. but I dont know how to tie them up so that both of it can
move together.
- Code: Select all
protected UIObjectConnector createConnector(String text, int left, int
top, Direction direction) {
Image image3 = new Image("img/IBM-z800.jpg");
image3.setPixelSize(65, 58);
image3.setTitle("Testing");
image3.addStyleName("demo-resize-html");
CustomWidgetLib testing = new CustomWidgetLib("testing");
//TextBox textbox = new TextBox();
Label label = new Label(text);
getArea().add(label, left,top+58);
getArea().add(image3, left, top);
dragController.makeDraggable(image3);
dragController.makeDraggable(label);
if(direction!=null){
return UIObjectConnector.wrap(image3, new Direction[]{direction});
}
return UIObjectConnector.wrap(image3);
}