|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.layouts.MiLayout
com.swfm.mica.core.MiVisibleContainer
com.swfm.mica.widgets.MiWidget
com.swfm.mica.parts.MiEditorPalette
com.swfm.mica.parts.MiDirectoryTreePalette
This class implements a tree list that displays a list of files and that displays files that are images (.gif, .xpm, ...) with their associated image as an icon next to the name.
| Field Summary |
| Constructor Summary | |
MiDirectoryTreePalette()
Constructs a new MiDirectoryTreeList. |
|
MiDirectoryTreePalette(java.lang.String rootDirectoryName)
Constructs a new MiDirectoryTreeList. |
|
| Method Summary | |
void |
addValidExtension(java.lang.String charactersFollowingLastDot)
Adds the given filename extension to the list of extensions that will be used to filter _file_ names. |
void |
appendContentToTreeList(java.lang.String parentDirectory,
java.lang.String filename)
Append the given name to the given directory. |
void |
cancelPopulateList()
Aborts the rebuilding of any lists. |
MiTextField |
getDirectoryNameTextField()
Gets the text field that displays the editable root directory. |
Strings |
getFileNames(java.lang.String directoryName)
Gets the files in the given directory that have been filtered as per addValidExtension(). |
java.lang.String |
getRootDirectory()
Gets the name of the top level directory to be displayed in this list. |
MiScrolledBox |
getScrolledBox()
Gets the scrolled box associated with this widget. |
Strings |
getSelectedPaths()
Gets the full path name of all selected files and directories |
MiTreeList |
getTreeList()
Gets the tree list associated with this widget. |
boolean |
openFile(java.lang.String filename)
|
void |
populateList()
Rebuilds the entire list of directories and files. |
void |
populateList(java.lang.String directoryName)
Rebuilds the list of files in the given directory. |
boolean |
processAction(MiiAction action)
Processes the given action. |
void |
removeValidExtension(java.lang.String charactersFollowingLastDot)
Removes the given filename extension from the list of extensions that will be used to filter _file_ names. |
void |
setRootDirectory(java.lang.String directory)
Sets the name of the top level directory to be displayed in this list. |
void |
setSelectedPaths(Strings paths)
Sets the full path name of all selected files and directories |
void |
setTypeOfFilesToList(boolean directories,
boolean files)
Sets the types of files to display (directories and or ordinary files). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.layouts.MiiLayout |
getMinimumSize, getPreferredSize, invalidateLayout |
| Constructor Detail |
public MiDirectoryTreePalette()
public MiDirectoryTreePalette(java.lang.String rootDirectoryName)
rootDirectoryName - the top level to be displayed
in this list.| Method Detail |
public boolean openFile(java.lang.String filename)
openFile in class MiEditorPalettepublic void setRootDirectory(java.lang.String directory)
public java.lang.String getRootDirectory()
public MiTextField getDirectoryNameTextField()
public MiTreeList getTreeList()
public MiScrolledBox getScrolledBox()
getScrolledBox in class MiEditorPalette
public void setTypeOfFilesToList(boolean directories,
boolean files)
directories - display directory namesfiles - display file namespublic void addValidExtension(java.lang.String charactersFollowingLastDot)
charactersFollowingLastDot - a file name extensionpublic void removeValidExtension(java.lang.String charactersFollowingLastDot)
charactersFollowingLastDot - a file name extension
public void appendContentToTreeList(java.lang.String parentDirectory,
java.lang.String filename)
parentDirectory - the directory to add name tofilename - the name to addpublic Strings getFileNames(java.lang.String directoryName)
directoryName - the directory of filenames
public void setSelectedPaths(Strings paths)
paths - the pathspublic Strings getSelectedPaths()
public void populateList()
public void populateList(java.lang.String directoryName)
directoryName - the directorypublic void cancelPopulateList()
public boolean processAction(MiiAction action)
Mi_NODE_EXPANDED_ACTION
processAction in interface MiiActionHandlerprocessAction in class MiEditorPaletteaction - the action to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||