com.sas.swing.visuals.remotefileselector
Class RemoteFileComponent

com.sas.swing.visuals.remotefileselector.RemoteFileComponent
All Implemented Interfaces:
RemoteFileComponentInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
RemoteFileTableComponent, RemoteFileTreeComponent

public abstract class RemoteFileComponent
implements RemoteFileComponentInterface

The base component class for all view components like a list, details, etc. Provides some common functionality.

Since:
3.0
See Also:
Serialized Form

Field Summary
protected  BaseRemoteFileSelectorPanel parentComponent
          The component that is the parent of this view component.
protected  RemoteFileServerModelInterface remoteServerModel
          The main server model for the view components.
protected  java.util.List selections
          The selections made in the view.
protected  boolean showDirectoriesOnly
          Stores whether to show directories only, true.
protected  javax.swing.event.SwingPropertyChangeSupport spcs
          Class used to communicate property changes.
 
Constructor Summary
RemoteFileComponent()
          Constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener to the support class.
 RemoteFileServerModelInterface getRemoteModel()
          Returns the main model used to populate the view component.
 java.util.List getSelections()
          Returns a list of selections made on the view component.
 boolean isShowDirectoriesOnly()
          Returns the showDirectoriesOnly attribute.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener from the support class.
 void setShowDirectoriesOnly(boolean showDirectoriesOnly)
          Sets the showDirectoriesOnly attribute.
 
Methods inherited from interface com.sas.swing.visuals.remotefileselector.RemoteFileComponentInterface
getColumnRenderers, getPreviousPath, getSelectionObject, getViewComponent, refreshData, setActionProvider, setColumnRenderers, setPath, setPreviousPath, setRemoteModel, setSelectionObject
 

Field Detail

selections

protected java.util.List selections
The selections made in the view.


spcs

protected javax.swing.event.SwingPropertyChangeSupport spcs
Class used to communicate property changes.


remoteServerModel

protected RemoteFileServerModelInterface remoteServerModel
The main server model for the view components.


showDirectoriesOnly

protected boolean showDirectoriesOnly
Stores whether to show directories only, true.


parentComponent

protected BaseRemoteFileSelectorPanel parentComponent
The component that is the parent of this view component.

Constructor Detail

RemoteFileComponent

public RemoteFileComponent()
Constructor. Creates the instance of the property change support class.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the support class.

Specified by:
addPropertyChangeListener in interface RemoteFileComponentInterface
Overrides:
addPropertyChangeListener in class java.awt.Container
Parameters:
listener - the PropertyChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the support class.

Specified by:
removePropertyChangeListener in interface RemoteFileComponentInterface
Overrides:
removePropertyChangeListener in class java.awt.Component
Parameters:
listener - the PropertyChangeListener

getSelections

public java.util.List getSelections()
Returns a list of selections made on the view component.

Specified by:
getSelections in interface RemoteFileComponentInterface
Returns:
a list of Strings with the selections

setShowDirectoriesOnly

public void setShowDirectoriesOnly(boolean showDirectoriesOnly)
Sets the showDirectoriesOnly attribute.

Specified by:
setShowDirectoriesOnly in interface RemoteFileComponentInterface
Parameters:
showDirectoriesOnly - set to true if only file structure to be shown
See Also:
isShowDirectoriesOnly()

isShowDirectoriesOnly

public boolean isShowDirectoriesOnly()
Returns the showDirectoriesOnly attribute.

Specified by:
isShowDirectoriesOnly in interface RemoteFileComponentInterface
Returns:
will be set to true if only the file structure is being shown
See Also:
setShowDirectoriesOnly(boolean)

getRemoteModel

public RemoteFileServerModelInterface getRemoteModel()
Returns the main model used to populate the view component.

Specified by:
getRemoteModel in interface RemoteFileComponentInterface
Returns:
the model
See Also:
RemoteFileComponentInterface.setRemoteModel(RemoteFileServerModelInterface)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.