private void setup(Widget w) {
if(w instanceof TextBoxBase) {
text = (TextBoxBase) w;
addValidators(
new TrimTransformer(text),
new LowerCaseTransformer(text)
);
}else {
suggest = (SuggestBox) w;
addValidators(
new TrimTransformer(suggest),
new LowerCaseTransformer(suggest)
);
}
}