|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.remotefileselector.CacheModel
public class CacheModel
CacheModel defines the model that communicates between the service model and the user interface.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
the resource bundle string |
Constructor Summary | |
---|---|
CacheModel(javax.swing.tree.TreeNode rootNode,
boolean asksAllowsChildren,
java.lang.Object parentClass,
boolean showDirectoriesOnly)
Constructs a cache model initialized with the supplied path. |
Method Summary | |
---|---|
void |
addToCacheModel(java.util.List fileList,
java.lang.String path)
Adds the collection of files to the cache model. |
javax.swing.tree.DefaultMutableTreeNode |
findCurrentCacheNode(java.lang.String path)
Returns the cache node based on a given file system path. |
javax.swing.tree.TreePath |
getCurrentTreePath()
Returns the cache model tree path for the current file system path. |
void |
initialize(java.lang.String path)
Initializes the cache model. |
protected java.util.List |
readFromCacheModel(java.lang.String path)
Returns a collection of files from the cache model based on a given file system path. |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public CacheModel(javax.swing.tree.TreeNode rootNode, boolean asksAllowsChildren, java.lang.Object parentClass, boolean showDirectoriesOnly)
rootNode
- the root node of the treeasksAllowsChildren
- specifies how to test for leafinessparentClass
- the parent classshowDirectoriesOnly
- specifies showDirectoriesOnly mode, if set to true only folder items will be added to the cacheMethod Detail |
---|
public void initialize(java.lang.String path)
path
- the file system path that initializes the cachepublic javax.swing.tree.TreePath getCurrentTreePath()
public void addToCacheModel(java.util.List fileList, java.lang.String path)
fileList
- the collection of filesprotected java.util.List readFromCacheModel(java.lang.String path)
path
- the file system path
public javax.swing.tree.DefaultMutableTreeNode findCurrentCacheNode(java.lang.String path)
path
- the file system path
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |