|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
edu.utep.cs.et.gui.explorer.DefaultExplorer
public class DefaultExplorer
A tabbed pane to display several kinds of explorers. Currently, only a directory browser has been implemented, and it allows one to browse through local directories and files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
|---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private DirectoryTree |
dirTree
A directory browser. |
| Fields inherited from class javax.swing.JTabbedPane |
|---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultExplorer(ExplorerComponent[] comps,
MenuFactory mf)
Creates a new explore pane by using the given menu factory and adding the given components in addition to the default component. |
|
DefaultExplorer(MenuFactory mf)
Creates a new explore pane by using the given menu factory. |
|
| Method Summary | |
|---|---|
private JScrollPane |
createDirBrowser(MenuFactory mf)
Creates and returns a directory browser pane. |
private DirectoryTree |
createDirTree(MenuFactory mf)
Creates and returns a directory tree. |
String |
getFileName()
Returns the name of the currently selected file. |
JComponent |
getView()
Returns the explorer pane that can be added to the main GUI. |
void |
refreshSelected()
Refreshes the currently selected node. |
void |
refreshSelectedParent()
Refreshes the parent of currently selected node. |
void |
setRoot(File file)
Sets the root of the directory browser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private DirectoryTree dirTree
| Constructor Detail |
|---|
public DefaultExplorer(ExplorerComponent[] comps,
MenuFactory mf)
public DefaultExplorer(MenuFactory mf)
| Method Detail |
|---|
public JComponent getView()
getView in interface Explorerpublic void refreshSelected()
refreshSelected in interface Explorerpublic void refreshSelectedParent()
refreshSelectedParent in interface Explorerpublic String getFileName()
null is returned.
getFileName in interface Explorerpublic void setRoot(File file)
setRoot in interface Explorerprivate JScrollPane createDirBrowser(MenuFactory mf)
private DirectoryTree createDirTree(MenuFactory mf)
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||