/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Synth FileChooserUI.
*
* Note: This class is abstract. It does not actually create the file chooser GUI.
* <p>
* Note that the classes in the com.sun.java.swing.plaf.synth
* package are not
* part of the core Java APIs. They are a part of Sun's JDK and JRE
* distributions. Although other licensees may choose to distribute
* these classes, developers cannot depend on their availability in
* non-Sun implementations. Additionally this API may change in
* incompatible ways between releases. While this class is public, it
* shoud be considered an implementation detail, and subject to change.
*
* @author Leif Samuelsson
* @author Jeff Dinkins
*/
SynthUI {
// Some generic FileChooser functions
return new SynthFileChooserUIImpl((JFileChooser)c);
}
super(b);
}
getComponentState(c));
}
}
return SynthLookAndFeel.getRegion(c);
}
if (c.isEnabled()) {
if (c.isFocusOwner()) {
}
return ENABLED;
}
return DISABLED;
}
}
}
}
}
super.installUI(c);
}
}
}
super.installListeners(fc);
public void contentsChanged(ListDataEvent e) {
// Update the selection after JList has been updated
new DelayedSelectionUpdater();
}
public void intervalAdded(ListDataEvent e) {
new DelayedSelectionUpdater();
}
public void intervalRemoved(ListDataEvent e) {
}
});
}
SwingUtilities.invokeLater(this);
}
public void run() {
}
}
super.installDefaults(fc);
}
super.uninstallDefaults(fc);
}
// The icons are installed in updateStyle, not here
}
if (c.isOpaque()) {
}
}
}
}
}
}
}
}
}
}
if (!getFileChooser().isMultiSelectionEnabled()) {
}
}
if (getFileChooser().getControlButtonsAreShown()) {
}
}
}
return new SynthFCPropertyChangeListener();
}
if (o != (ComponentOrientation)e.getOldValue()) {
}
}
}
}
/**
* Responds to a File Name completion request (e.g. Tab)
*/
protected FileNameCompletionAction() {
super("fileNameCompletion");
}
// Remove whitespace from beginning and end of filename
}
return;
}
if (globFilter == null) {
globFilter = new GlobFilter();
}
try {
if (!(currentFilter instanceof GlobFilter)) {
}
} catch (PatternSyntaxException pse) {
// Not a valid glob pattern. Abandon filter.
}
}
}
private void updateFileNameCompletion() {
if (fileNameCompletionString != null) {
}
}
}
}
int i = 0;
return null;
}
while (true) {
if (f == 0) {
return str;
}
}
return str;
}
}
i++;
}
}
private void resetGlobFilter() {
if (actualFileFilter != null) {
}
}
}
}
/* A file filter which accepts file patterns containing
* the special wildcard '*' on windows, plus '?', and '[ ]' on Unix.
*/
boolean inBrackets = false;
int j = 0;
this.globPattern = globPattern;
if (isWin32) {
// On windows, a pattern ending with *.* is equal to ending with *
len -= 2;
}
for (int i = 0; i < len; i++) {
if (gPat[i] == '*') {
rPat[j++] = '.';
}
}
} else {
switch(gPat[i]) {
case '*':
if (!inBrackets) {
rPat[j++] = '.';
}
rPat[j++] = '*';
break;
case '?':
break;
case '[':
inBrackets = true;
switch (gPat[i+1]) {
case '!':
case '^':
rPat[j++] = '^';
i++;
break;
case ']':
break;
}
}
break;
case ']':
inBrackets = false;
break;
case '\\':
} else {
rPat[j++] = '\\';
} else {
rPat[j++] = '\\';
}
}
break;
default:
//if ("+()|^$.{}<>".indexOf(gPat[i]) >= 0) {
rPat[j++] = '\\';
}
break;
}
}
}
}
if (f == null) {
return false;
}
if (f.isDirectory()) {
return true;
}
}
return globPattern;
}
}
// *******************************************************
// ************ FileChooser UI PLAF methods **************
// *******************************************************
// *****************************
// ***** Directory Actions *****
// *****************************
return fileNameCompletionAction;
}
return approveButton;
}
return cancelButton;
}
// Overload to do nothing. We don't have and icon cache.
public void clearIconCache() { }
// Copied as SynthBorder is package private in synth
}
else {
}
}
if (!(c instanceof JComponent)) {
return;
}
}
}
}
}
else {
}
return insets;
}
public boolean isBorderOpaque() {
return false;
}
}
}