// Check if event occured at fsTree component
if (event.getSource() == filesystem) {
// Check if event is about changing value
if (event.getClass() == Field.ValueChangeEvent.class) {
// Update property panel contents
final FileItem fileItem = (FileItem) filesystem
.getItem(filesystem.getValue());
fileProperties.setIcon(fileItem.getIcon());
fileProperties.setCaption(fileItem.getName() + ", size "
+ fileItem.getSize() + " bytes.");
propertyPanel.setEnabled(true);
}
// here we could check for other type of events for filesystem
// component
}