60 lines
3.3 KiB
HTML
60 lines
3.3 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="IFSFileSystemView" />
|
||
|
<meta name="abstract" content="This class has been deprecated and replaced by class com.ibm.as400.access.IFSSystemView." />
|
||
|
<meta name="description" content="This class has been deprecated and replaced by class com.ibm.as400.access.IFSSystemView." />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="vifsfsv" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>IFSFileSystemView</title>
|
||
|
</head>
|
||
|
<body id="vifsfsv"><a name="vifsfsv"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">IFSFileSystemView</h1>
|
||
|
<div><p>This class has been deprecated and replaced by class com.ibm.as400.access.IFSSystemView.</p>
|
||
|
<div class="section"><p>The <a href="javadoc/com/ibm/as400/vaccess/IFSFileSystemView.html#NAVBAR_TOP"> IFSFileSystemView</a> provides a gateway to the iSeries™ integrated
|
||
|
file system, for use when constructing javax.swing.JFileChooser objects. </p>
|
||
|
<p>JFileChooser
|
||
|
is a standard Java™ way to build dialogs for navigating and choosing
|
||
|
files, and is the recommended replacement for <a href="vifsfdlg.htm#vifsfdlg">IFSFileDialog</a>. </p>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Example: Using IFSFileSystemView</h4><p>The following example
|
||
|
demonstrates the use of IFSFileSystemView.</p>
|
||
|
<pre> import com.ibm.as400.access.AS400;
|
||
|
import com.ibm.as400.access.IFSJavaFile;
|
||
|
import com.ibm.as400.vaccess.IFSFileSystemView;
|
||
|
import javax.swing.JFileChooser;
|
||
|
import java.awt.Frame;
|
||
|
|
||
|
// Work with directory /Dir on the system myAS400.
|
||
|
AS400 system = new AS400("myAS400");
|
||
|
IFSJavaFile dir = new IFSJavaFile(system, "/Dir");
|
||
|
JFileChooser chooser = new JFileChooser(dir, new IFSFileSystemView(system));
|
||
|
Frame parent = new Frame();
|
||
|
int returnVal = chooser.showOpenDialog(parent);
|
||
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||
|
IFSJavaFile chosenFile = (IFSJavaFile)(chooser.getSelectedFile());
|
||
|
System.out.println("You selected the file named " +
|
||
|
chosenFile.getName());
|
||
|
}</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|