public void setDirectory(Model<File> model) { ((FileProvider) provider).setDirectory(model); } }
/** * Action undertaken as a directory is clicked. Default behavior is to drill down into * the directory. * @param file * @param target */ protected void directoryClicked(File file, AjaxRequestTarget target) { // explicitly change the root model, inform the other components the model has changed GeoServerFileChooser.this.file.setObject(file); fileTable.getProvider().setDirectory(new Model(file)); breadcrumbs.setSelection(file); target.addComponent(fileTable); target.addComponent(breadcrumbs); }
/** * Action undertaken as a directory is clicked. Default behavior is to drill down into the * directory. * * @param file * @param target */ protected void directoryClicked(File file, AjaxRequestTarget target) { // explicitly change the root model, inform the other components the model has changed GeoServerFileChooser.this.file.setObject(file); fileTable.getProvider().setDirectory(new Model<File>(file)); breadcrumbs.setSelection(file); target.add(fileTable); target.add(breadcrumbs); }