|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.remotefileselector.BaseRemoteFileSelectorPanel
public class BaseRemoteFileSelectorPanel
BaseRemoteFileCompositePanel defines the basic class that displays a UI/view of the files served by the model.
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.
| Field Summary | |
|---|---|
RemoteFileButtonPanel |
buttonPanel
Represents the panel where the toolbar is displayed. |
protected static boolean |
cancelled
Tracks the status of the dialog window. |
protected java.lang.String[] |
columnNames
Specifies the column headers being displayed. |
protected RemoteFileComponentInterface |
component
Represents the main display table component of the view. |
static int |
DRILL_DOWN_FILTER
Specifies the Action Provider Framework filter for the drilldown function. |
protected ActionSupportFilter |
drillDownFilter
Action Provider Framework filter for the table data for opening folders actions. |
RemoteFileNamePanel |
filePanel
Represents the panel where the file name and type are shown. |
protected java.util.LinkedHashMap |
fileTypes
|
static int |
FILTER_TYPE_FILTER
Specifies the Action Provider Framework filter for the file type filter area. |
protected ActionSupportFilter |
filterTypeFilter
Action Provider Framework filter for the file type combobox area. |
protected RemoteFileServerModelInterface |
model
Specifies the model that is connected to the table display. |
protected RemoteFileServiceModelInterface |
serviceModel
Specifies the model used to connect to the file system. |
RemoteFileShortcutPanel |
shortcutPanel
Represents the panel where the shortcuts are displayed. |
java.lang.String |
supportType
Denotes the Action Provider Framework support class being used. |
static int |
TABLE_DATA_FILTER
Specifies the Action Provider Framework filter for the table data area. |
static int |
TABLE_HEADER_FILTER
Specifies the Action Provider Framework filter for the table header area. |
protected ActionSupportFilter |
tableColumnHeaderFilter
Action Provider Framework filter for the table column header area. |
protected ActionSupportFilter |
tableDataCellFilter
Action Provider Framework filter for the table data area. |
static int |
TOOLBAR_FILTER
Specifies the Action Provider Framework filter for the toolbar area. |
protected ActionSupportFilter |
toolbarFilter
Action Provider Framework filter for the toolbar area. |
protected com.sas.util.transforms.TransformInterface[] |
transforms
Specifies the transforms used with the columns being displayed. |
protected SwingViewerSupport |
viewerSupport
Action Provider Framework support class instance. |
RemoteFileComponentPanel |
viewPanel
The panel where the main table is displayed; |
| Constructor Summary | |
|---|---|
BaseRemoteFileSelectorPanel()
Creates a basic panel instance. |
|
BaseRemoteFileSelectorPanel(boolean showDirectoriesOnly)
Creates a panel instance with the showDirectoriesOnly attribute specified. |
|
BaseRemoteFileSelectorPanel(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
java.util.Map filterTypes,
boolean showDirectoriesOnly,
RemoteFileSearchPanel searchPanel)
Creates a panel with all of the necessary information to show a file system structure. |
|
| Method Summary | |
|---|---|
void |
contentsChanged(com.sas.collection.ContentsChangedEvent event)
Listens for ContentsChangedEvent for path and view type. |
SwingActionProvider |
getActionProvider()
Returns the ActionProvider object |
ActionSupportFilter |
getActionSupportFilter(int filter)
Returns the appropriate filter object based on the desired area. |
java.lang.String |
getActionSupportType()
Return the key that associated with a particular support class in the ActionProvider framework. |
java.util.List |
getReturnedInformation(boolean returnSelectedItems)
Returns the currently selected files or directories. |
java.lang.Object |
getUniqueId()
Returns the Viewer's uniqueId |
RemoteFileComponentInterface |
getViewComponent()
Returns the component currently being used to view the file data. |
void |
initialize(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
java.lang.Object[] columnRenderers,
RemoteFileServiceModelInterface serviceModel,
java.lang.String supportType,
java.util.Map filterTypes,
RemoteFileSearchPanel searchPanel)
Creates a panel with all of the necessary information to show a file system structure and files. |
void |
initialize(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
java.lang.String supportType,
java.util.Map filterTypes,
RemoteFileSearchPanel searchPanel)
Creates a panel with all of the necessary information to show a file system structure and files. |
boolean |
isActionVisible(java.lang.String actionType,
java.lang.String areaType)
Returns a boolean indicating if the action type is visible everywhere in the specified areaType. |
boolean |
isCancelled()
Sets the status of the panel to cancelled. |
boolean |
isShowDirectoriesOnly()
Returns whether only directories/folders are to be shown in the view. |
java.util.Collection |
listActionTypes(java.lang.String areaType)
Returns a Collection of String keys that define the valid actionTypes for the specified area of the action support class designated the actionSupportType attribute. |
java.util.Collection |
listAreaTypes()
Returns a Collection of String keys that define the valid areaTypes for the action support class designated by the actionSupportType attribute. |
void |
setActionProvider(SwingActionProvider actionProvider)
Sets the ActionProvider object |
void |
setActionSupportType(java.lang.String actionSupportType)
Set the key that is associated with a particular support class in the ActionProvider framework. |
void |
setActionVisible(java.lang.String actionType,
java.lang.String areaType,
boolean visible)
Sets the visible status of the specified actionType for the specified area. |
void |
setCancelled(boolean value)
Sets the status of the panel to cancelled. |
void |
setColumnLabels(java.lang.String[] columnLabels)
Sets the column labels in the table display. |
void |
setDialogType(int typeOfDialog)
Specifies whether this dialog functions as a Save, Open, or OK window. |
void |
setServiceModel(RemoteFileServiceModelInterface serviceModel)
Sets the file system service model to be used by the selector. |
void |
setShowButtonPanel(boolean show)
Specifies whether the panel should show the toolbar and directory dropdown combobox. |
void |
setShowDirectoriesOnly(boolean showDirectoriesOnly)
Specifies that the view should only show directory/folder items. |
void |
setShowFileNamePanel(boolean show)
Specifies whether the panel should show the filename/filetype fields and the dialog window buttons. |
void |
setShowShortcutPanel(boolean show)
Specifies whether the panel should show a shortcut panel. |
void |
setTransforms(com.sas.util.transforms.TransformInterface[] transforms)
Sets the transforms used to read the data returned from the file system. |
void |
setUniqueId(java.lang.Object uniqueId)
Returns the Viewer's uniqueId |
static java.util.List |
showDialog(java.awt.Frame parent,
java.lang.String titleOfDialog,
boolean modal,
int typeOfDialog,
java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
boolean returnSelectedItems,
boolean showDirectoriesOnly,
RemoteFileSearchPanel searchPanel)
Displays the default dialog window of the component. |
| Field Detail |
|---|
protected java.util.LinkedHashMap fileTypes
public static int TOOLBAR_FILTER
public static int TABLE_DATA_FILTER
public static int TABLE_HEADER_FILTER
public static int DRILL_DOWN_FILTER
public static int FILTER_TYPE_FILTER
protected static boolean cancelled
protected RemoteFileComponentInterface component
public RemoteFileNamePanel filePanel
public RemoteFileButtonPanel buttonPanel
public RemoteFileShortcutPanel shortcutPanel
public RemoteFileComponentPanel viewPanel
public java.lang.String supportType
protected com.sas.util.transforms.TransformInterface[] transforms
protected java.lang.String[] columnNames
protected RemoteFileServiceModelInterface serviceModel
protected RemoteFileServerModelInterface model
protected ActionSupportFilter tableDataCellFilter
protected ActionSupportFilter tableColumnHeaderFilter
protected ActionSupportFilter toolbarFilter
protected ActionSupportFilter drillDownFilter
protected ActionSupportFilter filterTypeFilter
protected SwingViewerSupport viewerSupport
| Constructor Detail |
|---|
public BaseRemoteFileSelectorPanel()
public BaseRemoteFileSelectorPanel(boolean showDirectoriesOnly)
showDirectoriesOnly -
public BaseRemoteFileSelectorPanel(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
java.util.Map filterTypes,
boolean showDirectoriesOnly,
RemoteFileSearchPanel searchPanel)
initialPath - the initial file system path to be displayedtransforms - the transforms used to retrieve the column datacolumnNames - the names used for the column headersserviceModel - a model used to communicate to the file systemfilterTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewedshowDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)searchPanel - allows specification of panel to be used for file system searching| Method Detail |
|---|
public static java.util.List showDialog(java.awt.Frame parent,
java.lang.String titleOfDialog,
boolean modal,
int typeOfDialog,
java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
boolean returnSelectedItems,
boolean showDirectoriesOnly,
RemoteFileSearchPanel searchPanel)
parent - the parent window of the dialogtitleOfDialog - the title of the dialog windowmodal - specfies whether the dialog is to be modaltypeOfDialog - specifies whether this dialog functions as a Save, Open, or OK window. Specify OK = 0, Save = 1, Open = 2initialPath - the initial file system path to be displayedtransforms - the transforms used to retrieve the column datacolumnNames - the names used for the column headersserviceModel - a model used to communicate to the file systemreturnSelectedItems - determines whether to return information about the file selections when the window is closedshowDirectoriesOnly - specifies whether to show the directory structure only (true) or show the structure and the files (false)searchPanel - allows specification of panel to be used for file system searching
public void initialize(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
RemoteFileServiceModelInterface serviceModel,
java.lang.String supportType,
java.util.Map filterTypes,
RemoteFileSearchPanel searchPanel)
initialPath - the initial file system path to be displayedtransforms - the transforms used to retrieve the column datacolumnNames - the names used for the column headersserviceModel - a model used to communicate to the file systemsupportType - the name of the Action Provider Framework support class being usedfilterTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewedsearchPanel - allows specification of panel to be used for file system searching
public void initialize(java.lang.String initialPath,
com.sas.util.transforms.TransformInterface[] transforms,
java.lang.String[] columnNames,
java.lang.Object[] columnRenderers,
RemoteFileServiceModelInterface serviceModel,
java.lang.String supportType,
java.util.Map filterTypes,
RemoteFileSearchPanel searchPanel)
initialPath - the initial file system path to be displayedtransforms - the transforms used to retrieve the column datacolumnNames - the names used for the column headersserviceModel - a model used to communicate to the file systemsupportType - the name of the Action Provider Framework support class being usedfilterTypes - allows specification of a Map of display values and filter values for restricting the types of files being viewedsearchPanel - allows specification of panel to be used for file system searchingpublic void setCancelled(boolean value)
value - set to true for cancelled statepublic boolean isCancelled()
value - set to true for cancelled statepublic void setShowDirectoriesOnly(boolean showDirectoriesOnly)
showDirectoriesOnly - - if true, only the folders are shownisShowDirectoriesOnly()public boolean isShowDirectoriesOnly()
setShowDirectoriesOnly(boolean)public void setShowButtonPanel(boolean show)
show - - if true, then the toolbar and combobox are shownpublic void setShowFileNamePanel(boolean show)
show - - if true, the filename/filetype and dialog window buttons are shownpublic void setShowShortcutPanel(boolean show)
show - - if true, the shortcut panel is shownpublic RemoteFileComponentInterface getViewComponent()
public void setDialogType(int typeOfDialog)
typeOfDialog - Specify OK = 0, Save = 1, Open = 2public java.util.List getReturnedInformation(boolean returnSelectedItems)
returnSelectedItems - specifies whether to return selected items
public void setServiceModel(RemoteFileServiceModelInterface serviceModel)
serviceModel - the model used to communicate to the file systempublic void setTransforms(com.sas.util.transforms.TransformInterface[] transforms)
transforms - the array of transform classespublic void setColumnLabels(java.lang.String[] columnLabels)
columnLabels - the array of column label stringspublic void contentsChanged(com.sas.collection.ContentsChangedEvent event)
contentsChanged in interface com.sas.collection.ContentsChangedListenerevent - the event triggering this methodpublic ActionSupportFilter getActionSupportFilter(int filter)
filter - the desired filter area
public void setActionProvider(SwingActionProvider actionProvider)
setActionProvider in interface SwingActionProviderViewInterfaceActionProvider - objectSwingActionProviderViewInterface.getActionProvider()public SwingActionProvider getActionProvider()
getActionProvider in interface SwingActionProviderViewInterfaceSwingActionProviderViewInterface.setActionProvider(com.sas.actionprovider.SwingActionProvider)
public void setActionVisible(java.lang.String actionType,
java.lang.String areaType,
boolean visible)
setActionVisible in interface ActionProviderViewInterfaceactionType - The key that identifies the type of action.areaType - The area affected by the change in visibility fort the actionType. If null,
then the method call applies to all the known areaTypes.visible - The boolean indicating whether the actionType should be hidden
or unhidden.ActionProviderViewInterface.isActionVisible(java.lang.String, java.lang.String),
ActionProviderSupportTypes
public boolean isActionVisible(java.lang.String actionType,
java.lang.String areaType)
isActionVisible in interface ActionProviderViewInterfaceactionType - The key that identifies the type of action as defined by the
support class.areaType - The key that identifies the type of area as defined by the support
class.
ActionProviderViewInterface.setActionVisible(java.lang.String, java.lang.String, boolean),
ActionProviderSupportTypespublic java.lang.Object getUniqueId()
getUniqueId in interface ActionProviderViewInterfaceActionProviderViewInterface.setUniqueId(java.lang.Object)public void setUniqueId(java.lang.Object uniqueId)
setUniqueId in interface ActionProviderViewInterfaceActionProviderViewInterface.getUniqueId()public java.util.Collection listAreaTypes()
listAreaTypes in interface ActionProviderViewInterfaceActionProviderViewInterface.listActionTypes(java.lang.String),
ActionProviderViewInterface.setActionSupportType(java.lang.String)public java.util.Collection listActionTypes(java.lang.String areaType)
listActionTypes in interface ActionProviderViewInterfaceareaType - The key associated with a defined areaType.
ActionProviderViewInterface.listAreaTypes(),
ActionProviderViewInterface.setActionSupportType(java.lang.String)public void setActionSupportType(java.lang.String actionSupportType)
setActionSupportType in interface ActionProviderViewInterfaceactionSupportType - The key that is associated with a particular support class.ActionProviderViewInterface.getActionSupportType(),
ActionProviderSupportTypespublic java.lang.String getActionSupportType()
getActionSupportType in interface ActionProviderViewInterfaceActionProviderViewInterface.setActionSupportType(java.lang.String),
ActionProviderSupportTypes
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||