Java Doc for ResourceModel.java in » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation
getFolderContent(String folder, boolean disableFiles, boolean disableFolders) Returns the list of objects in the container represented by the
current directory.
getResourceItem(String itemKey) Given a ResourceItem key return the ResourceItem.
- the resource item key which is the same as the value of the Option element in the listbox.
This methods checks if the resource path in question can be accessed
by the user trying to select or view it.
Parameters: resourceName - - the resource name to check for read access true if the user can select the resource specifiedby the resource name.
canWrite
public boolean canWrite(String resourceName)(Code)
This methods checks if the resource path in question can be accessed
for writes by the user.
Parameters: resourceName - - the resource name to check for write access true if the user can select the resource specifiedby the resource name for write.
Returns the root value of the file system in question.
For example, in the default implementation of this interface for local
filesystems the root value would be "/" in Unix and "C:\" on Windows.
returns the absolute root (directory for files and folders).
This method is called to get the current directory of
the resuource list being displayed in the filechooser's listbox
returns the current root (directory for files and folders).
Given a ResourceItem key return the ResourceItem.
- the resource item key which is the same as the value of the Option element in the listbox. - the ResourceItem object
Returns true if the supplied absolute path is a folder type.
Parameters: path - - the absolute path to the resource returns the current root (directory for files and folders).
Sets the root value of the resource system in question.
For example, in the default implementation of this interface for local
filesystems the root value could be set to "/" in Unix and "C:\" on Windows.
Parameters: absRoot - - the value to be used as the root of this resource system
This method is called to set the current directory of
the resuource list that would be displayed in the next
display cycle.
Parameters: dir - - the value to be set the new current root node.
setFilterValue
public void setFilterValue(String filterString)(Code)
Set the filter String entered by the user in the Filter text field.
Parameters: filterString - - the filter string to be used subsequently.
setServerName
public void setServerName(String serverName)(Code)
Set the server name from where the resources are being loaded.
Parameters: serverName - - the server name to be set