com.sas.swing.visuals.remotefileselector
Class RemoteFileTreeComponent

com.sas.swing.visuals.remotefileselector.RemoteFileTreeComponent
All Implemented Interfaces:
RemoteFileComponentInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener

public class RemoteFileTreeComponent
implements javax.swing.event.TreeSelectionListener, javax.swing.event.TreeModelListener

See Also:
Serialized Form

Field Summary
protected  javax.swing.JTree tree
           
 
Fields inherited from class com.sas.swing.visuals.remotefileselector.RemoteFileComponent
parentComponent, remoteServerModel, selections, showDirectoriesOnly, spcs
 
Constructor Summary
RemoteFileTreeComponent(BaseRemoteFileSelectorPanel parentComponent)
           
RemoteFileTreeComponent(javax.swing.tree.DefaultTreeModel model)
           
 
Method Summary
 java.lang.Object[] getColumnRenderers()
          Returns the array of cell renderers currently being used to format the columns.
 java.util.List getPreviousPath()
          Returns the a list containing the file system paths previously viewed.
 java.lang.Object getSelectionObject()
          Returns the selection object associated with the view.
 javax.swing.JComponent getViewComponent()
          Returns the actual component displaying the data.
 void handleDoubleClick()
           
protected  void init()
           
 void refreshData(java.lang.String path)
          Triggers a refresh of the view display.
 void setActionProvider(SwingActionProvider actionProvider)
          Sets the ActionProviderFramework class.
 void setColumnRenderers(java.lang.Object[] columnRenderers)
          Sets the array of cell renderers used to format the columns.
 void setPath(java.lang.String originalPath)
          Sets the path to be viewed.
 void setPreviousPath(java.util.List previousPath)
          Sets a list of previous paths.
 void setRemoteModel(RemoteFileServerModelInterface remoteServerModel)
          Sets the model to be used to display the data.
 void setSelectionObject(java.lang.Object selectionObject)
          Sets the selection object associated with the view.
 void treeNodesChanged(javax.swing.event.TreeModelEvent e)
           
 void treeNodesInserted(javax.swing.event.TreeModelEvent e)
           
 void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
 void treeStructureChanged(javax.swing.event.TreeModelEvent e)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class com.sas.swing.visuals.remotefileselector.RemoteFileComponent
addPropertyChangeListener, getRemoteModel, getSelections, isShowDirectoriesOnly, removePropertyChangeListener, setShowDirectoriesOnly
 

Field Detail

tree

protected javax.swing.JTree tree
Constructor Detail

RemoteFileTreeComponent

public RemoteFileTreeComponent(BaseRemoteFileSelectorPanel parentComponent)

RemoteFileTreeComponent

public RemoteFileTreeComponent(javax.swing.tree.DefaultTreeModel model)
Method Detail

init

protected void init()

handleDoubleClick

public void handleDoubleClick()

setSelectionObject

public void setSelectionObject(java.lang.Object selectionObject)
Description copied from interface: RemoteFileComponentInterface
Sets the selection object associated with the view. Used to maintain the selections from one view to another.

Specified by:
setSelectionObject in interface RemoteFileComponentInterface

getSelectionObject

public java.lang.Object getSelectionObject()
Description copied from interface: RemoteFileComponentInterface
Returns the selection object associated with the view. Used to maintain the selections from one view to another.

Specified by:
getSelectionObject in interface RemoteFileComponentInterface
Returns:
the component's selection object

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

setPath

public void setPath(java.lang.String originalPath)
Description copied from interface: RemoteFileComponentInterface
Sets the path to be viewed.

Specified by:
setPath in interface RemoteFileComponentInterface
Parameters:
originalPath - the path to be viewed

setRemoteModel

public void setRemoteModel(RemoteFileServerModelInterface remoteServerModel)
Description copied from interface: RemoteFileComponentInterface
Sets the model to be used to display the data.

Specified by:
setRemoteModel in interface RemoteFileComponentInterface
Parameters:
remoteServerModel - the model
See Also:
RemoteFileComponentInterface.getRemoteModel()

refreshData

public void refreshData(java.lang.String path)
Description copied from interface: RemoteFileComponentInterface
Triggers a refresh of the view display.

Specified by:
refreshData in interface RemoteFileComponentInterface
Parameters:
path - the path currently being viewed.

getPreviousPath

public java.util.List getPreviousPath()
Description copied from interface: RemoteFileComponentInterface
Returns the a list containing the file system paths previously viewed.

Specified by:
getPreviousPath in interface RemoteFileComponentInterface
Returns:
a list of Strings with the previous paths
See Also:
RemoteFileComponentInterface.setPreviousPath(List)

setPreviousPath

public void setPreviousPath(java.util.List previousPath)
Description copied from interface: RemoteFileComponentInterface
Sets a list of previous paths.

Specified by:
setPreviousPath in interface RemoteFileComponentInterface
Parameters:
previousPath - list of Strings containing paths
See Also:
RemoteFileComponentInterface.getPreviousPath()

treeNodesChanged

public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesChanged in interface javax.swing.event.TreeModelListener

treeNodesInserted

public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesInserted in interface javax.swing.event.TreeModelListener

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesRemoved in interface javax.swing.event.TreeModelListener

treeStructureChanged

public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeStructureChanged in interface javax.swing.event.TreeModelListener

getViewComponent

public javax.swing.JComponent getViewComponent()
Description copied from interface: RemoteFileComponentInterface
Returns the actual component displaying the data.

Specified by:
getViewComponent in interface RemoteFileComponentInterface
Returns:
the component

setActionProvider

public void setActionProvider(SwingActionProvider actionProvider)
Description copied from interface: RemoteFileComponentInterface
Sets the ActionProviderFramework class.

Specified by:
setActionProvider in interface RemoteFileComponentInterface
Parameters:
actionProvider - the action provider class

setColumnRenderers

public void setColumnRenderers(java.lang.Object[] columnRenderers)
Description copied from interface: RemoteFileComponentInterface
Sets the array of cell renderers used to format the columns.

Specified by:
setColumnRenderers in interface RemoteFileComponentInterface
Parameters:
columnRenderers - array of cell renderers
See Also:
RemoteFileComponentInterface.getColumnRenderers()

getColumnRenderers

public java.lang.Object[] getColumnRenderers()
Description copied from interface: RemoteFileComponentInterface
Returns the array of cell renderers currently being used to format the columns.

Specified by:
getColumnRenderers in interface RemoteFileComponentInterface
Returns:
the array of cell renderers
See Also:
RemoteFileComponentInterface.setColumnRenderers(Object[])



Copyright © 2009 SAS Institute Inc. All Rights Reserved.