01: package com.bostechcorp.cbesb.common.util.custcomponent;
02:
03: /**
04: * The class for file-type properties
05: * @author elu
06: *
07: */
08: public interface IFileProperty extends IProperty {
09: /**
10: * Define the folder browsing style. The FILE_SYSTEM is to use file system
11: * browsing style. The PROJECT is to use the project folder browsing style.
12: *
13: * @author elu
14: *
15: */
16: public enum FolderBrowseStyle {
17: FILE_SYSTEM, PROJECT
18: };
19:
20: /**
21: *
22: * @return the folder browse style.
23: *
24: */
25: public FolderBrowseStyle getFolderBrowseStyle();
26:
27: /**
28: *
29: * @return the base folder name
30: */
31: public String getBaseFolderName();
32:
33: /**
34: *
35: * @return the default file name
36: */
37: public String getFileName();
38:
39: /**
40: * if the allowNewFile() is true, user is allowed to enter a new name
41: *
42: * @return whether a name file name is allowed to enter
43: */
44: public boolean allowNewFile();
45:
46: }
|