final TextBox ruleName = new TextBox();
final CategoryExplorerWidget exw = new CategoryExplorerWidget(new CategorySelectHandler(){
public void selected(String selectedPath) { //not needed
}
});
ruleName.setVisibleLength( 15 );
addbutton.setTitle(constants.CreateCategoryRule());
addbutton.addClickListener( new ClickListener() {
public void onClick(Widget w) {
if(exw.getSelectedPath().length() > 0 && ruleName.getText().trim().length() > 0){
addToCatRules(exw.getSelectedPath(), ruleName.getText());
}
refreshWidgets();
pop.hide();
}
});