javax.swing.filechooser.FileView Java Examples

The following examples show how to use javax.swing.filechooser.FileView. 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 File: MultiFileChooserUI.java    From openjdk-8 with 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 #2
Source File: JFileChooserOperator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 #3
Source File: JFileChooserOperator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Maps {@code JFileChooser.getFileView()} through queue
 */
public FileView getFileView() {
    return (runMapping(new MapAction<FileView>("getFileView") {
        @Override
        public FileView map() {
            return ((JFileChooser) getSource()).getFileView();
        }
    }));
}
 
Example #4
Source File: MultiFileChooserUI.java    From openjdk-jdk9 with 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 File: MultiFileChooserUI.java    From jdk8u-jdk with 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 #6
Source File: MultiFileChooserUI.java    From Bytecoder with 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 #7
Source File: MultiFileChooserUI.java    From Java8CN with 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 #8
Source File: MultiFileChooserUI.java    From openjdk-jdk8u-backup with 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 #9
Source File: MultiFileChooserUI.java    From hottub with 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 #10
Source File: MultiFileChooserUI.java    From openjdk-jdk8u with 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 #11
Source File: MultiFileChooserUI.java    From openjdk-8-source with 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 #12
Source File: MultiFileChooserUI.java    From JDKSourceCode1.8 with 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 #13
Source File: MultiFileChooserUI.java    From jdk8u_jdk with 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 #14
Source File: MultiFileChooserUI.java    From jdk8u60 with 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
Source File: MultiFileChooserUI.java    From TencentKona-8 with 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 #16
Source File: MultiFileChooserUI.java    From jdk8u-jdk with 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 File: MultiFileChooserUI.java    From dragonwell8_jdk with 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 File: MultiFileChooserUI.java    From jdk8u-dev-jdk with 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
Source File: AbstractFileChooserDescriptor.java    From weblaf with GNU General Public License v3.0 5 votes vote down vote up
@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 #20
Source File: MultiFileChooserUI.java    From jdk1.8-source-analysis with 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 #21
Source File: WebFileChooserUI.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public FileView getFileView ( @NotNull final JFileChooser fc )
{
    return fileView;
}
 
Example #22
Source File: WindowsDirectoryChooserUI.java    From orbit-image-analysis with GNU General Public License v3.0 4 votes vote down vote up
public FileView getFileView(JFileChooser fc) {
  return fileView;
}
 
Example #23
Source File: FileChooserUI.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public FileView getFileView(JFileChooser fc) {
	return this.fileView;
}
 
Example #24
Source File: DarkFileChooserUI.java    From darklaf with MIT License 4 votes vote down vote up
@Override
public FileView getFileView(final JFileChooser fc) {
    return getFileView();
}
 
Example #25
Source File: FlatFileChooserUI.java    From FlatLaf with Apache License 2.0 4 votes vote down vote up
@Override
public FileView getFileView( JFileChooser fc ) {
	return fileView;
}
 
Example #26
Source File: SubstanceFileChooserUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public FileView getFileView(JFileChooser fc) {
    return fileView;
}
 
Example #27
Source File: CXFileChooserUI.java    From CXTouch with GNU General Public License v3.0 4 votes vote down vote up
@Override
public FileView getFileView ( final JFileChooser fc )
{
    return fileView;
}
 
Example #28
Source File: FileChooserUI.java    From openjdk-jdk9 with 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 #29
Source File: LuckFileChooserUI.java    From littleluck with 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;
}
 
Example #30
Source File: FileChooserUI.java    From Bytecoder with 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);