com.sas.swing.visuals.remotefileselector
Class IFileServiceSelectorPanel

com.sas.swing.visuals.remotefileselector.IFileServiceSelectorPanel
All Implemented Interfaces:
ActionProviderViewInterface, SwingActionProviderViewInterface, com.sas.collection.ContentsChangedListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class IFileServiceSelectorPanel

IFileServiceSelectorPanel defines the panel to be used when directly accessing IFileService type file systems. Given a workspace and a path it will associate the default IFileService model, transforms, and column names with the RemoteFileServerModel.

Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.

Examples for this class may be found on the Examples Site.

Since:
3.0
See Also:
IFileServiceModel, Serialized Form

Field Summary
 
Fields inherited from class com.sas.swing.visuals.remotefileselector.BaseRemoteFileSelectorPanel
buttonPanel, cancelled, columnNames, component, DRILL_DOWN_FILTER, drillDownFilter, filePanel, fileTypes, FILTER_TYPE_FILTER, filterTypeFilter, model, shortcutPanel, supportType, TABLE_DATA_FILTER, TABLE_HEADER_FILTER, tableColumnHeaderFilter, tableDataCellFilter, TOOLBAR_FILTER, toolbarFilter, transforms, viewerSupport, viewPanel
 
Constructor Summary
IFileServiceSelectorPanel(java.lang.String initialPath, com.sas.iom.SAS.IWorkspace workspace, java.util.Map fileTypes, boolean showDirectoriesOnly)
          This constructor allows the user to create a panel with the minimum required information.
IFileServiceSelectorPanel(java.lang.String initialPath, com.sas.iom.SAS.IWorkspace workspace, com.sas.util.transforms.TransformInterface[] transformArray, java.lang.Object[] columnRenderers, java.lang.String[] nameArray, java.util.Map fileTypes, boolean showDirectoriesOnly)
          This constructor allows the user to specify all of the available parameters.
IFileServiceSelectorPanel(java.lang.String initialPath, com.sas.iom.SAS.IWorkspace workspace, com.sas.util.transforms.TransformInterface[] transformArray, java.lang.String[] nameArray, java.util.Map fileTypes, boolean showDirectoriesOnly)
          This constructor allows the user to specify all of the available parameters.
 
Method Summary
 IFileServiceModel getServiceModel()
          Returns the model that is used to communicate with the file system.
static java.util.List showDialog(java.awt.Frame parent, java.lang.String titleOfDialog, boolean modal, int typeOfDialog, java.lang.String initialPath, com.sas.iom.SAS.IWorkspace workspace, boolean returnSelectedItems, boolean showDirectoriesOnly)
          Displays the dialog for the IFileServiceSelector.
static java.util.List showDialog(java.awt.Frame parent, java.lang.String titleOfDialog, boolean modal, int typeOfDialog, java.lang.String initialPath, com.sas.iom.SAS.IWorkspace workspace, boolean returnSelectedItems, boolean showDirectoriesOnly, IFileServiceSelectorPanel panel)
          Displays the dialog for the IFileServiceSelector.
 
Methods inherited from class com.sas.swing.visuals.remotefileselector.BaseRemoteFileSelectorPanel
contentsChanged, getActionProvider, getActionSupportFilter, getActionSupportType, getReturnedInformation, getUniqueId, getViewComponent, initialize, initialize, isActionVisible, isCancelled, isShowDirectoriesOnly, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setCancelled, setColumnLabels, setDialogType, setServiceModel, setShowButtonPanel, setShowDirectoriesOnly, setShowFileNamePanel, setShowShortcutPanel, setTransforms, setUniqueId, showDialog
 

Constructor Detail

IFileServiceSelectorPanel

public IFileServiceSelectorPanel(java.lang.String initialPath,
                                 com.sas.iom.SAS.IWorkspace workspace,
                                 java.util.Map fileTypes,
                                 boolean showDirectoriesOnly)
This constructor allows the user to create a panel with the minimum required information. The panel default values are used for all other parameters.

Parameters:
initialPath - the initial file system path to be displayed
workspace - the IOM IWorkspace used to view the file system
fileTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewed
showDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)

IFileServiceSelectorPanel

public IFileServiceSelectorPanel(java.lang.String initialPath,
                                 com.sas.iom.SAS.IWorkspace workspace,
                                 com.sas.util.transforms.TransformInterface[] transformArray,
                                 java.lang.String[] nameArray,
                                 java.util.Map fileTypes,
                                 boolean showDirectoriesOnly)
This constructor allows the user to specify all of the available parameters.

Parameters:
initialPath - the initial file system path to be displayed
workspace - the IOM IWorkspace used to view the file system
transformArray - an array of transforms used to retrieve the file system data for display
nameArray - an array of Strings used to label the table column headers
fileTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewed
showDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)

IFileServiceSelectorPanel

public IFileServiceSelectorPanel(java.lang.String initialPath,
                                 com.sas.iom.SAS.IWorkspace workspace,
                                 com.sas.util.transforms.TransformInterface[] transformArray,
                                 java.lang.Object[] columnRenderers,
                                 java.lang.String[] nameArray,
                                 java.util.Map fileTypes,
                                 boolean showDirectoriesOnly)
This constructor allows the user to specify all of the available parameters.

Parameters:
initialPath - the initial file system path to be displayed
workspace - the IOM IWorkspace used to view the file system
transformArray - an array of transforms used to retrieve the file system data for display
nameArray - an array of Strings used to label the table column headers
columnRenderers - an array of cell renderers used to format the column values
fileTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewed
showDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)
Method Detail

showDialog

public static java.util.List showDialog(java.awt.Frame parent,
                                        java.lang.String titleOfDialog,
                                        boolean modal,
                                        int typeOfDialog,
                                        java.lang.String initialPath,
                                        com.sas.iom.SAS.IWorkspace workspace,
                                        boolean returnSelectedItems,
                                        boolean showDirectoriesOnly)
Displays the dialog for the IFileServiceSelector.

Parameters:
parent - the parent window of the dialog
titleOfDialog - the title of the dialog window
modal - specfies whether the dialog is to be modal
typeOfDialog - specifies whether this dialog functions as a Save, Open, or OK window. Specify OK = 0, Save = 1, Open = 2
initialPath - the initial file system path to be displayed
workspace - the IOM IWorkspace used to view the file system.
returnSelectedItems - determines whether to return information about the file selections when the window is closed
showDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)
Returns:
list containing Strings representing the file selections made in the window
See Also:
IWorkspace

showDialog

public static java.util.List showDialog(java.awt.Frame parent,
                                        java.lang.String titleOfDialog,
                                        boolean modal,
                                        int typeOfDialog,
                                        java.lang.String initialPath,
                                        com.sas.iom.SAS.IWorkspace workspace,
                                        boolean returnSelectedItems,
                                        boolean showDirectoriesOnly,
                                        IFileServiceSelectorPanel panel)
Displays the dialog for the IFileServiceSelector. Allows specification of alternate panel to be displayed.

Parameters:
parent - the parent window of the dialog
titleOfDialog - the title of the dialog window
modal - specfies whether the dialog is to be modal
typeOfDialog - specifies whether this dialog functions as a Save, Open, or OK window. Specify OK = 0, Save = 1, Open = 2
initialPath - the initial file system path to be displayed
workspace - the IOM IWorkspace used to view the file system
returnSelectedItems - determines whether to return information about the file selections when the window is closed
showDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)
panel - allows specification of a selector panel other than the default panel
Returns:
list containing Strings representing the file selections made in the window
See Also:
IWorkspace

getServiceModel

public IFileServiceModel getServiceModel()
Returns the model that is used to communicate with the file system.

Returns:
the model



Copyright © 2009 SAS Institute Inc. All Rights Reserved.