}
}
}
};
BlurHandler blurHandler = new BlurHandler()
{
public void onBlur(BlurEvent event)
{
if (getText().length() == 0)
{
addStyleName(CUE_STYLE);
setText(cueText_);
}
}
};
registrations_ = new HandlerRegistration[] {
addFocusHandler(focusHandler),
addBlurHandler(blurHandler),
WindowEx.addFocusHandler(focusHandler),
WindowEx.addBlurHandler(blurHandler)
};
blurHandler.onBlur(null);
}