Reputation: 185
Is it possible to detect when click event occurs outside a widget, i create a widget to display a text for a user, number of text varies for each user, and add it to my vertical panel. The user will be able to edit this text and also add new text.
Right now a text is locked from edit mode only if they click on a button, is it possible to skip this step and say if they click on the next text widget block the previous block is locked??
How can i read the action of moving to the next widget??
Upvotes: 2
Views: 1690
Reputation: 121998
That event is called as blur event
. This event is triggered when widget loses its focus
.
textBox.addBlurHandler(new BlurHandler() {
@Override
public void onBlur(BlurEvent event) {
//DO something
}
});
Upvotes: 4