|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used in SciTreeElement
. Can be an interface to any
system that supports iterating through a directory (for example, a file system).
Method Summary | |
ITreeIteratorNode[] |
children()
Gets the children for this iterator (for example, a list of files in a given folder). |
void |
close()
Closes the iterator. |
java.lang.String |
getCurrentLocation()
Gets the full path of the current location. |
java.util.Locale |
getLocale()
Gets the locale for the iterator. |
java.lang.String |
getLocationName()
Gets the name of the current node (the last folder in the path). |
void |
initializeIterator(NamedValueMap dataSourceSettings)
Initializes the iterator. |
boolean |
isAtRoot()
Checks if the iterator is at the root node. |
void |
moveTo(java.lang.String location)
Moves to the specified location. |
void |
moveToParent()
Moves to the parent of this iterator node; one 'directory' up. |
void |
moveToRoot()
Moves to the root of this iterator node. |
Method Detail |
public void initializeIterator(NamedValueMap dataSourceSettings) throws java.lang.Exception
dataSourceSettings
- a java.lang.Exception
public ITreeIteratorNode[] children() throws java.lang.Exception
java.lang.Exception
public void moveToParent()
public void moveToRoot()
public void moveTo(java.lang.String location)
location
- the location to move topublic boolean isAtRoot()
true
if the iterator is at the root node and false
otherwisepublic java.lang.String getLocationName()
public java.lang.String getCurrentLocation()
public java.util.Locale getLocale()
public void close() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.