I want to know can we set only the required file format in this lib. I want to pick only images,pdf, doc and txt file so users cannot see other files.
I came across extension field in DialogProperties, can i set the extension in the below format?
DialogProperties properties = new DialogProperties();
properties.selection_mode = DialogConfigs.SINGLE_MODE;
properties.selection_type = DialogConfigs.FILE_SELECT;
properties.root = new File(DialogConfigs.DEFAULT_DIR);
properties.error_dir = new File(DialogConfigs.DEFAULT_DIR);
properties.offset = new File(DialogConfigs.DEFAULT_DIR);
properties.extensions = new String[]{"pdf", "txt", "doc", "image"};
Hi,
I want to know can we set only the required file format in this lib. I want to pick only images,pdf, doc and txt file so users cannot see other files.
I came across extension field in DialogProperties, can i set the extension in the below format? DialogProperties properties = new DialogProperties(); properties.selection_mode = DialogConfigs.SINGLE_MODE; properties.selection_type = DialogConfigs.FILE_SELECT; properties.root = new File(DialogConfigs.DEFAULT_DIR); properties.error_dir = new File(DialogConfigs.DEFAULT_DIR); properties.offset = new File(DialogConfigs.DEFAULT_DIR); properties.extensions = new String[]{"pdf", "txt", "doc", "image"};
Thanks & Regards, Kamal S