@SuppressWarnings({"unchecked", "rawtypes"})
public BrowseFilesModalWindow(Field field) {
super();
this.fieldValueReturn = field;
this.setModal(Boolean.TRUE);
final TreeGrid treeGrid = new TreeGrid(ServiceNameConst.BROWSE_FILE, getTreeGridConfig());
treeGrid.setSize(400, 300);
setSize(380, 330);
add(treeGrid);
// Acciones a realizar cuando selecciona algun registro de la grilla
treeGrid.getSelectionModel().addListener(Events.SelectionChange,
new Listener() {
@SuppressWarnings("deprecation")
@Override
public void handleEvent(BaseEvent be) {
List seleccionados = treeGrid.getSelectionModel().getSelection();
if (seleccionados.size() == 1) {
Iterator it = seleccionados.iterator();
if (it.hasNext()) {
BaseModel actual = (BaseModel) it.next();
fieldValueReturn.setValue(actual.get(ParamsConst.PATH));