Encapsulates one or more file filters to be chosen from in a file dialogs.
Inherits :
DAZ Script |
---|
DzFileFilter () |
DzFileFilter ( String description, Array extensions ) |
DzFileFilter ( String description, String extension ) |
DAZ Script | |
---|---|
void | addExtension ( String extension ) |
void | addExtensions ( Array extensions ) |
Number | getDefaultFilter () |
String | getExtension ( Number filterIdx, Number extensionIdx ) |
String | getFilterDescription ( Number filterIdx ) |
Number | getNumExtensions ( Number filterIdx ) |
Number | getNumFilters () |
void | newFilter ( String description ) |
void | setDefaultFilter ( Number filterIdx ) |
For each group of files that you want to make available to the user, create a new filter with the newFilter() call, then add one or more file extensions to be accepted by the filter.
Default Constructor.
DzFileFilter( String description, Array extensions )
Creates a new file filter and adds a filter with the given description and extensions.
Parameter(s):
DzFileFilter( String description, String extension )
Creates a new file filter and adds a filter with the given description and extension.
Parameter(s):
void : addExtension( String extension )
Adds a file extension to the current filter.
Parameter(s):
void : addExtensions( Array extensions )
Adds file extensions to the current filter.
Parameter(s):
Return Value:
String : getExtension( Number filterIdx, Number extensionIdx )
Parameter(s):
Return Value:
String : getFilterDescription( Number filterIdx )
Parameter(s):
Return Value:
Number : getNumExtensions( Number filterIdx )
Parameter(s):
Return Value:
Number : getNumFilters()
Return Value:
void : newFilter( String description )
Starts a new filter with the given description.
Parameter(s):
void : setDefaultFilter( Number filterIdx )
Sets the default filter index - by default this is 0.
Parameter(s):