|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.io.FileSystem
public class FileSystem
A class representing File System on local machine. Based on the name of the Operating System of the local machine either creates a windows File System or Unix File System (to be added later).
Creating a FileSystem Component
| Field Summary | |
|---|---|
protected boolean |
leafNode
|
protected java.lang.String |
nodeExpandedText
|
protected java.lang.String |
nodeText
|
protected java.lang.String |
nodeType
|
| Constructor Summary | |
|---|---|
FileSystem(java.lang.String fileSystemName)
Creates a FileSystem object given a string based on the operating system being used by the local machine. |
|
| Method Summary | |
|---|---|
void |
_setNodeExpandedText(java.lang.String expandedText)
Sets the Name of this FileSystem object. |
void |
_setNodeText(java.lang.String driveName)
Sets the Name of this FileSystem object. |
void |
_setNodeType()
Sets the type of this FileSystem object.eg. drive, root etc. |
boolean |
canRead()
Checks to see if can read the FileSystem. |
boolean |
canWrite()
Checks to see if can write to the root directory of this FileSystem. |
java.lang.Object |
clone()
Create a copy of the current model |
protected void |
commonInit(java.lang.String fileSystemName)
This method creates a fileSystem object based on the operating system. |
int |
countNodeChildren(int maximumChildCount)
Counts the children of the current node. |
com.sas.visuals.IconInterface |
getDefaultIcon()
Returns the default icon for the current node. |
java.lang.String |
getDeviceType()
Gets type of the drive(Rmovable, Fixed, CD_ROM...) for Windows |
java.lang.String |
getDriveType()
Deprecated. use getDeviceType() |
com.sas.visuals.IconInterface |
getExpandedIcon()
Returns the expanded icon for the current node. |
com.sas.visuals.IconInterface |
getExpandedSelectedIcon()
Sets the expandedSelected icon for the current node. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
static com.sas.io.FileSystemPeer |
getFileSystem()
|
java.lang.String |
getFileSystemName()
Gets a logical name of this File System. |
java.lang.String |
getFileSystemType()
Gets a type of this File System FAT or NTFS or NTCOMPAT(network drive) |
SimpleNodeInterface |
getNodeChild(int index)
Returns the child node at the specified index. |
int |
getNodeChildCount()
Returns the number of children available. |
SimpleNodeInterface[] |
getNodeChildren(int startIndex,
int numCount)
Returns the children of the current node in the specified range. |
java.lang.String |
getNodeExpandedText()
If the expanded text is not set then gets an absolute path name of this object. |
java.lang.String |
getNodeText()
Gets the Name of this File System object. eg. |
java.lang.String |
getNodeType()
Gets the type of this File System object. |
File |
getRootDirectory()
Gets the root directory of this file system |
com.sas.visuals.IconInterface |
getSelectedIcon()
Returns the selected icon for the current node. |
boolean |
isLeafNode()
Returns true if this object does not have children and thus is not expandable. |
boolean |
isValid()
Checks to see if the root directory of this File System exists. |
static void |
setErrorMode()
|
| Field Detail |
|---|
protected transient java.lang.String nodeText
protected transient java.lang.String nodeExpandedText
protected transient java.lang.String nodeType
protected transient boolean leafNode
| Constructor Detail |
|---|
public FileSystem(java.lang.String fileSystemName)
fileSystemName - logical name of the File System.| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public static com.sas.io.FileSystemPeer getFileSystem()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonableclone in class Componentjava.lang.CloneNotSupportedException - if the model attached to the component being cloned
will not allow the clone to attach.protected void commonInit(java.lang.String fileSystemName)
fileSystemName - name of the file system eg. a:, c:...
java.lang.SecurityException - if cannot access the
name of the operating system.public boolean canRead()
public boolean canWrite()
public SimpleNodeInterface[] getNodeChildren(int startIndex,
int numCount)
getNodeChildren in interface SimpleNodeInterfacestartIndex - index which identifies the start of the rangecount - number of children to return
true.public SimpleNodeInterface getNodeChild(int index)
getNodeChild in interface SimpleNodeInterfaceindex - the index of the child node to retrieve
true.public int getNodeChildCount()
getNodeChildCount in interface SimpleNodeInterfacepublic int countNodeChildren(int maximumChildCount)
countNodeChildren in interface SimpleNodeInterfacemaximumChildCount - the maximum number of children to read, or 0 to read indefinitely
public java.lang.String getDriveType()
public java.lang.String getDeviceType()
public java.lang.String getNodeExpandedText()
getNodeExpandedText in interface NodeInterfacepublic java.lang.String getFileSystemName()
public java.lang.String getFileSystemType()
public java.lang.String getNodeType()
getNodeType in interface NodeInterfacepublic File getRootDirectory()
public java.lang.String getNodeText()
getNodeText in interface NodeInterfacepublic static void setErrorMode()
public boolean isLeafNode()
isLeafNode in interface SimpleNodeInterfacepublic boolean isValid()
public void _setNodeExpandedText(java.lang.String expandedText)
expandedText - full name of the drive.public void _setNodeType()
public void _setNodeText(java.lang.String driveName)
driveName - name of the drive.public com.sas.visuals.IconInterface getDefaultIcon()
getDefaultIcon in interface NodeIconInterfacepublic com.sas.visuals.IconInterface getExpandedIcon()
getExpandedIcon in interface NodeIconInterfacepublic com.sas.visuals.IconInterface getSelectedIcon()
getSelectedIcon in interface NodeIconInterfacepublic com.sas.visuals.IconInterface getExpandedSelectedIcon()
getExpandedSelectedIcon in interface NodeIconInterface
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||