Lines Matching defs:filter

69  *    FileNameExtensionFilter filter = new FileNameExtensionFilter(
71 * chooser.setFileFilter(filter);
1116 * Adds a filter to the list of user choosable file filters.
1120 * @param filter the <code>FileFilter</code> to add to the choosable file
1121 * filter list
1129 = "Adds a filter to the list of user choosable file filters.")
1130 public void addChoosableFileFilter(FileFilter filter) {
1131 if(filter != null && !filters.contains(filter)) {
1133 filters.addElement(filter);
1136 setFileFilter(filter);
1142 * Removes a filter from the list of user choosable file filters. Returns
1143 * true if the file filter was removed.
1145 * @param f the file filter to be removed
1146 * @return true if the file filter was removed, false otherwise
1157 // choose default filter if it is used
1161 // choose the first filter, because it is not removed
1165 // choose the second filter, because the first one is removed
1183 * Resets the choosable file filter list to its starting state. Normally,
1185 * <code>AcceptAll</code> file filter.
1202 * Returns the <code>AcceptAll</code> file filter.
1205 * @return the {@code AcceptAll} file filter
1209 FileFilter filter = null;
1211 filter = getUI().getAcceptAllFileFilter(this);
1213 return filter;
1228 * as an available choice in the choosable filter list.
1229 * If false, the <code>AcceptAll</code> file filter is removed from
1231 * If true, the <code>AcceptAll</code> file filter will become the
1232 * actively used file filter.
1235 * file filter is an available choice in the choosable filter list
1243 = "Sets whether the AcceptAll FileFilter is used as an available choice in the choosable filter list.")
1432 * Sets the current file filter. The file filter is used by the
1433 * file chooser to filter out files from the user's view.
1435 * @param filter the new current file filter to use
1439 = "Sets the File Filter used to filter out files of type.")
1440 public void setFileFilter(FileFilter filter) {
1442 fileFilter = filter;
1443 if (filter != null) {
1448 if (filter.accept(file)) {
1457 } else if (selectedFile != null && !filter.accept(selectedFile)) {
1466 * Returns the currently selected file filter.
1468 * @return the current file filter