|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.remotefileselector.BaseRemoteFileMetadata
public class BaseRemoteFileMetadata
BaseRemoteFileMetadata defines an abstract class that implements the RemoteFileMetadataInterface.
com.sas.swing.visuals.remotefileselector.RemoteFileMetadataInterface
,
Field Summary | |
---|---|
protected boolean |
drillable
whether the item can be opened (i.e. a folder) |
protected java.lang.String |
icon
the name of the icon to associate with the item |
protected java.lang.String |
name
the name of the item |
protected java.lang.String |
path
the file system path that points to the item |
Constructor Summary | |
---|---|
BaseRemoteFileMetadata(java.lang.String name,
java.lang.String icon,
boolean drillable,
java.lang.String path)
Basic constructor used to specify the common metadata pieces. |
Method Summary | |
---|---|
java.lang.String |
getIcon()
Returns the icon name associated with the file. |
java.lang.String |
getName()
Returns the file name. |
java.lang.String |
getPath()
Returns the path associated with the file. |
boolean |
isDrillable()
Returns whether a particular file can be drilled down on to show other levels in a file hierarchy. |
void |
setDrillable(boolean value)
Sets whether a particular file can be drilled down on. |
void |
setIcon(java.lang.String newIcon)
Allows an icon name to be associated with a file. |
void |
setName(java.lang.String newName)
Sets the file name. |
void |
setPath(java.lang.String newPath)
Sets the path associated with the file. |
java.lang.String |
toString()
Returns a string that displays and identifies this object's properties. |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String icon
protected boolean drillable
protected java.lang.String path
Constructor Detail |
---|
public BaseRemoteFileMetadata(java.lang.String name, java.lang.String icon, boolean drillable, java.lang.String path)
name
- the name of the itemicon
- the name of the icon to associate with the itemdrillable
- whether the item can be opened (i.e. a folder)path
- the file system path that points to the itemMethod Detail |
---|
public java.lang.String getName()
getName
in interface RemoteFileMetadataInterface
setName(String)
public void setName(java.lang.String newName)
setName
in interface RemoteFileMetadataInterface
newName
- the file name being setgetName()
public java.lang.String getIcon()
getIcon
in interface RemoteFileMetadataInterface
setIcon(String)
public void setIcon(java.lang.String newIcon)
setIcon
in interface RemoteFileMetadataInterface
newIcon
- the icon namegetIcon()
public boolean isDrillable()
isDrillable
in interface RemoteFileMetadataInterface
setDrillable(boolean)
public void setDrillable(boolean value)
setDrillable
in interface RemoteFileMetadataInterface
value
- set to true if file can be drilled down onisDrillable()
public java.lang.String getPath()
getPath
in interface RemoteFileMetadataInterface
setPath(String)
public void setPath(java.lang.String newPath)
setPath
in interface RemoteFileMetadataInterface
newPath
- the file path being setgetPath()
public java.lang.String toString()
toString
in interface RemoteFileMetadataInterface
toString
in class java.lang.Object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |