|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.remotefileselector.RemoteFileTableComponent
public class RemoteFileTableComponent
RemoteFileTableComponent class defines the main table view for displaying the file system items and the search window items.
Field Summary | |
---|---|
protected java.lang.Object[] |
columnRenderers
the renderers used to format the column values |
protected TableView |
table
the main table component |
Fields inherited from class com.sas.swing.visuals.remotefileselector.RemoteFileComponent |
---|
parentComponent, remoteServerModel, selections, showDirectoriesOnly, spcs |
Constructor Summary | |
---|---|
RemoteFileTableComponent(BaseRemoteFileSelectorPanel parentComponent)
Allows specification of the parent component. |
|
RemoteFileTableComponent(BaseRemoteFileSelectorPanel parentComponent,
java.lang.String supportType)
Allows specification of the parent component and the Action Provider Framework support type. |
|
RemoteFileTableComponent(javax.swing.table.DefaultTableModel model)
Allows specification of a table model. |
Method Summary | |
---|---|
java.lang.Object[] |
getColumnRenderers()
Returns the column renderers used to format the table column values. |
java.util.List |
getPreviousPath()
Returns the list of previous file system paths that have been viewed. |
java.lang.Object |
getSelectionObject()
Returns an object that represents the selections currently made in the table. |
javax.swing.JComponent |
getViewComponent()
Returns the actual table component. |
void |
handleDoubleClick()
Queries and runs the Action Provider Framework for the action associated with a table cell double click action. |
protected void |
init()
Initializes the table component. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Listens for the propertyChangeEvent "path". |
void |
refreshData(java.lang.String path)
Fires the "path" property change event which refreshes the table. |
void |
setActionProvider(SwingActionProvider actionProvider)
Allows setting of the SwingActionProvider class. |
void |
setColumnRenderers(java.lang.Object[] columnRenderers)
Allows setting of an array of column renderers used to format the table column values. |
void |
setPath(java.lang.String path)
Allows setting of the next file system path to be viewed. |
void |
setPreviousPath(java.util.List previousPath)
Allows a list of file system paths to be set to act as a set of previously visited locations. |
void |
setRemoteModel(RemoteFileServerModelInterface remoteServerModel)
Allows specification of the table model. |
void |
setSelectionObject(java.lang.Object newSelectionObject)
Allows setting of an object that represents the selections to be shown in the table. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Listens for the ListSelectionEvent, builds the current list of selections, and then fires a PropertyChangeEvent "selections". |
Methods inherited from class com.sas.swing.visuals.remotefileselector.RemoteFileComponent |
---|
addPropertyChangeListener, getRemoteModel, getSelections, isShowDirectoriesOnly, removePropertyChangeListener, setShowDirectoriesOnly |
Field Detail |
---|
protected TableView table
protected java.lang.Object[] columnRenderers
Constructor Detail |
---|
public RemoteFileTableComponent(BaseRemoteFileSelectorPanel parentComponent)
parentComponent
- the parent componentpublic RemoteFileTableComponent(BaseRemoteFileSelectorPanel parentComponent, java.lang.String supportType)
parentComponent
- the parent componentsupportType
- the support typepublic RemoteFileTableComponent(javax.swing.table.DefaultTableModel model)
model
- the table modelMethod Detail |
---|
protected void init()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
e
- the PropertyChangeEventpublic void handleDoubleClick()
public java.util.List getPreviousPath()
getPreviousPath
in interface RemoteFileComponentInterface
setPreviousPath(List)
public void setPreviousPath(java.util.List previousPath)
setPreviousPath
in interface RemoteFileComponentInterface
previousPath
- a list of String objectsgetPreviousPath()
public void refreshData(java.lang.String path)
refreshData
in interface RemoteFileComponentInterface
path
- the file system pathpublic void setPath(java.lang.String path)
setPath
in interface RemoteFileComponentInterface
path
- the path to be viewedpublic java.lang.Object getSelectionObject()
getSelectionObject
in interface RemoteFileComponentInterface
setSelectionObject(Object)
public void setSelectionObject(java.lang.Object newSelectionObject)
setSelectionObject
in interface RemoteFileComponentInterface
newSelectionObject
- the selection objectgetSelectionObject()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
e
- the ListSelectionEventpublic void setRemoteModel(RemoteFileServerModelInterface remoteServerModel)
setRemoteModel
in interface RemoteFileComponentInterface
remoteServerModel
- the table modelRemoteFileComponentInterface.getRemoteModel()
public javax.swing.JComponent getViewComponent()
getViewComponent
in interface RemoteFileComponentInterface
public void setActionProvider(SwingActionProvider actionProvider)
setActionProvider
in interface RemoteFileComponentInterface
actionProvider
- the action provider classpublic void setColumnRenderers(java.lang.Object[] columnRenderers)
setColumnRenderers
in interface RemoteFileComponentInterface
columnRenderers
- the column renderersgetColumnRenderers()
public java.lang.Object[] getColumnRenderers()
getColumnRenderers
in interface RemoteFileComponentInterface
setColumnRenderers(Object[])
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |