|
|||||||||
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.JPanel
uk.ac.starlink.vo.RemoteTreeBrowser
public abstract class RemoteTreeBrowser
General browser for a remote file store of some description which
can be represented as a TreeModel.
As well as including a JTree suitably populated, this component
gives you a button to trigger logging in and out; concrete subclasses
must implement the abstract logIn()
and logOut(javax.swing.tree.TreeModel)
methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
RemoteTreeBrowser()
Constructor. |
Method Summary | |
---|---|
boolean |
getAllowContainerSelection()
Indicates whether it is permitted to select a container (directory) or only a file-type node. |
JComponent |
getExtraPanel()
Returns an initially empty panel near the bottom of the window which can be used to hold custom components. |
JTree |
getJTree()
Returns the JTree component used for display. |
Object |
getSelectedNode()
Returns the currently selected node, if there is one. |
boolean |
isConnected()
Determines whether there is a usable connection to the remote resource in effect. |
protected abstract TreeModel |
logIn()
Return a TreeModel representing the data to be displayed. |
protected abstract void |
logOut(TreeModel model)
Called when the tree model obtained by logIn() is about to
be discarded. |
void |
setAllowContainerSelection(boolean allowed)
Sets whether it is permitted to select a container (directory) or only a file-type node. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteTreeBrowser()
Method Detail |
---|
protected abstract TreeModel logIn() throws IOException
IOException
protected abstract void logOut(TreeModel model)
logIn()
is about to
be discarded.
public JComponent getExtraPanel()
public Object getSelectedNode()
public JTree getJTree()
public boolean isConnected()
public boolean getAllowContainerSelection()
public void setAllowContainerSelection(boolean allowed)
allowed
- true iff you want containers to be selected
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |