|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.models.remotefileselector2.BaseRemoteFileServerModel
@SASScope(value="ALL") public abstract class BaseRemoteFileServerModel
RemoteFileServerModel defines the abstract model that communicates between the service model and the user interface.
| Field Summary | |
|---|---|
protected java.lang.String |
currentPath
|
protected boolean |
directoriesOnly
|
protected java.util.List |
filterValues
|
protected java.util.List |
infoList
|
protected boolean |
modelNeedsRefresh
|
protected boolean |
readingFromCache
|
protected java.lang.String |
rootLocation
|
protected boolean |
showDirectoriesOnly
|
protected javax.swing.event.SwingPropertyChangeSupport |
spcs
|
protected boolean |
tableEditable
|
| Constructor Summary | |
|---|---|
BaseRemoteFileServerModel()
|
|
| Method Summary | |
|---|---|
void |
addToPasteBuffer(java.lang.Object node)
Add the given metadata node to the paste buffer. |
void |
cancelLoadFileInfo()
|
void |
clearPasteBuffer()
Clears the buffer of all metadata items. |
java.lang.String |
getBasePath()
Returns the file system path used as the base for all navigation. |
java.lang.String[] |
getFileInfo(java.lang.String folderLocation,
java.lang.String fileName,
java.lang.String fileType)
|
java.lang.String |
getLocation()
Returns the file system path currently being viewed. |
RemoteFileMetadataInterface |
getNodeAt(int rowIndex)
Returns a RemoteFileMetadataInterface for specified index. |
java.util.List |
getPasteBuffer()
Returns the contents of the paste buffer. |
int |
getPasteBufferCommandType()
Returns the command type. |
int |
getRowCount()
Provides the current number of rows available to be displayed. |
boolean |
isRefreshNeeded()
Returns the status of the model's refresh flag. |
boolean |
isTableEditable()
Determine if the table is editable. |
void |
setLocation(java.lang.String path)
Sets the file system path to be viewed. |
void |
setPasteBufferCommandType(int commandType)
Sets the paste buffer command type so it know's if we are copying or cutting the items. |
void |
setRefreshNeeded(boolean refresh)
Sets a dirty flag that can be queried to determine if the model needs to ask for more file information. |
void |
setTableEditable(boolean editable)
Set the table to state defined by editable. |
| Field Detail |
|---|
protected boolean readingFromCache
protected boolean directoriesOnly
protected boolean tableEditable
protected java.lang.String currentPath
protected java.util.List infoList
protected boolean modelNeedsRefresh
protected javax.swing.event.SwingPropertyChangeSupport spcs
protected java.util.List filterValues
protected java.lang.String rootLocation
protected boolean showDirectoriesOnly
| Constructor Detail |
|---|
public BaseRemoteFileServerModel()
| Method Detail |
|---|
public void setLocation(java.lang.String path)
path - the file system pathgetLocation()public java.lang.String getLocation()
setLocation(String)public void cancelLoadFileInfo()
public void setRefreshNeeded(boolean refresh)
refresh - the dirty flagpublic boolean isRefreshNeeded()
public java.lang.String getBasePath()
public RemoteFileMetadataInterface getNodeAt(int rowIndex)
rowIndex - the specified table row
public boolean isTableEditable()
setTableEditable(boolean)public void setTableEditable(boolean editable)
editable - the editable statusisTableEditable()public int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic void addToPasteBuffer(java.lang.Object node)
node - the node to be added.public void clearPasteBuffer()
public java.util.List getPasteBuffer()
public void setPasteBufferCommandType(int commandType)
commandType - the command type, copy = 0 and cut = 1getPasteBufferCommandType()public int getPasteBufferCommandType()
setPasteBufferCommandType(int)
public java.lang.String[] getFileInfo(java.lang.String folderLocation,
java.lang.String fileName,
java.lang.String fileType)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||