((Widget)edit).setWidth("100%");
focus.setWidth("100%");
focus.setWidget( (Widget) this.display );
root.setWidget( focus );
super.initWidget( root );
focus.addFocusListener( new FocusListener(){
public void onLostFocus(Widget sender) {
}
public void onFocus(Widget sender) {
root.setWidget( (Widget) edit );
if(edit instanceof HasFocus ){
((HasFocus) edit).setFocus( true );
}
}
});
focus.addClickListener( new ClickListener(){
public void onClick(Widget sender) {
root.setWidget( (Widget) edit );
if(edit instanceof HasFocus ){
((HasFocus) edit).setFocus( true );
}
}
});
if( edit instanceof HasFocus ){
((HasFocus) edit).addFocusListener( new FocusListener(){
public void onLostFocus(Widget sender) {
root.setWidget( (Widget) focus );
}
public void onFocus(Widget sender) {