Java Code Examples for javax.swing.filechooser.FileView

The following examples show how to use javax.swing.filechooser.FileView. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis   Source File: MultiFileChooserUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 2
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 3
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 4
Source Project: jdk8u60   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 5
Source Project: JDKSourceCode1.8   Source File: MultiFileChooserUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 6
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 7
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 8
Source Project: Bytecoder   Source File: MultiFileChooserUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 9
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 10
/**
 * Maps {@code JFileChooser.getFileView()} through queue
 */
public FileView getFileView() {
    return (runMapping(new MapAction<FileView>("getFileView") {
        @Override
        public FileView map() {
            return ((JFileChooser) getSource()).getFileView();
        }
    }));
}
 
Example 11
/**
 * Maps {@code JFileChooser.setFileView(FileView)} through queue
 */
public void setFileView(final FileView fileView) {
    runMapping(new MapVoidAction("setFileView") {
        @Override
        public void map() {
            ((JFileChooser) getSource()).setFileView(fileView);
        }
    });
}
 
Example 12
Source Project: jdk8u-jdk   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 13
Source Project: Java8CN   Source File: MultiFileChooserUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 14
Source Project: hottub   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 15
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 16
Source Project: openjdk-8   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 17
Source Project: jdk8u_jdk   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 18
Source Project: jdk8u-jdk   Source File: MultiFileChooserUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 19
/**
 * Invokes the <code>getFileView</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 */
public FileView getFileView(JFileChooser a) {
    FileView returnValue =
        ((FileChooserUI) (uis.elementAt(0))).getFileView(a);
    for (int i = 1; i < uis.size(); i++) {
        ((FileChooserUI) (uis.elementAt(i))).getFileView(a);
    }
    return returnValue;
}
 
Example 20
@Override
public void updateUI ( @NotNull final C component )
{
    // Removing all files filter
    if ( component.isAcceptAllFileFilterUsed () )
    {
        component.removeChoosableFileFilter ( component.getAcceptAllFileFilter () );
    }

    // Update file view as file chooser was probably deserialized
    if ( component.getFileSystemView () == null )
    {
        component.setFileSystemView ( FileSystemView.getFileSystemView () );
    }

    // Updating component UI
    super.updateUI ( component );

    // Updating UI file view for this file chooser
    final FileView fileView = component.getUI ().getFileView ( component );
    ReflectUtils.setFieldValueSafely ( component, "uiFileView", fileView );

    // Adding all files filter
    if ( component.isAcceptAllFileFilterUsed () )
    {
        component.addChoosableFileFilter ( component.getAcceptAllFileFilter () );
    }
}
 
Example 21
Source Project: darklaf   Source File: DarkFileChooserUI.java    License: MIT License 4 votes vote down vote up
@Override
public FileView getFileView(final JFileChooser fc) {
    return getFileView();
}
 
Example 22
Source Project: FlatLaf   Source File: FlatFileChooserUI.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public FileView getFileView( JFileChooser fc ) {
	return fileView;
}
 
Example 23
@Override
public FileView getFileView(JFileChooser fc) {
    return fileView;
}
 
Example 24
Source Project: CXTouch   Source File: CXFileChooserUI.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Override
public FileView getFileView ( final JFileChooser fc )
{
    return fileView;
}
 
Example 25
public FileView getFileView(JFileChooser fc) {
  return fileView;
}
 
Example 26
@Override
public FileView getFileView(JFileChooser fc) {
	return this.fileView;
}
 
Example 27
Source Project: weblaf   Source File: WebFileChooserUI.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Override
public FileView getFileView ( @NotNull final JFileChooser fc )
{
    return fileView;
}
 
Example 28
Source Project: Bytecoder   Source File: FileChooserUI.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns a file view.
 * @param fc the file chooser
 * @return a file view
 */
public abstract FileView getFileView(JFileChooser fc);
 
Example 29
Source Project: openjdk-jdk9   Source File: FileChooserUI.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns a file view.
 * @param fc the file chooser
 * @return a file view
 */
public abstract FileView getFileView(JFileChooser fc);
 
Example 30
Source Project: littleluck   Source File: LuckFileChooserUI.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * use custom <code>FileView</code>
 *
 * @see LuckFileView
 * @return <code>FileView</code>
 */
public FileView getFileView(JFileChooser fc)
{
    return fileView;
}