|
||||||||||
| 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.JSplitPane
org.jurvis.swing.JvSplitPane
org.jurvis.swing.explorer.JvExplorer
public class JvExplorer
A control modeled after the obligatory Windows Explorer-style interface. The
control displays a set of hierarchial data as an outline in the left
panel with the details of the currently selected data in the right panel.
An JvExplorer maintains an active node and an active object.
The active node is set when the user selects a node in the tree hierarchy.
This action also sets the selected node as the active object too. The user
may select a row or something in the details panel. This action sets the
active object, but does not affect the active node.
JvExplorerModel,
JvExplorerNode,
JvExplorerDetails,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
JvExplorer.LocalSelectionListener
A TreeSelectionListener that listens to selection changes
in the explorer tree and makes the selected node the active node. |
| Nested classes/interfaces inherited from class javax.swing.JSplitPane |
|---|
JSplitPane.AccessibleJSplitPane |
| 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 | |
|---|---|
protected PropertyChangeListener |
propertyChangeListener
Our local property change listener. |
protected JvExplorerTree |
tree
The JvExplorerTree displaying the data hierarchy. |
protected JScrollPane |
treeScrollPane
The JScrollPane containing the JvExplorerTree. |
| 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 | |
|---|---|
JvExplorer(String name,
JvExplorerTree tree,
JvExplorerDetails details)
Construct a JvExplorer with the given name. |
|
| Method Summary | |
|---|---|
void |
addLeftComponent(JComponent component)
|
void |
addRightComponent(JComponent component)
|
void |
captureModifications(Preferences preferences)
Save any modifications needing to be persisted across application invocations in preferences. |
JvExplorerNode |
getActiveNode()
Return the active explorer node. |
Object |
getActiveObject()
Return the active object. |
JvExplorerDetails |
getDetails()
Return the node's details. |
JvExplorerModel |
getModel()
Return the explorer's model. |
JvExplorerNode |
getSelectedNode()
Return the selected explorer node. |
JvExplorerTree |
getTree()
Return the explorer's tree. |
void |
loadModifications(Preferences preferences)
Load any modifications that were persisted in the previous application invocation from preferences. |
void |
removeLeftComponent(JComponent component)
|
void |
removeRightComponent(JComponent component)
|
void |
setActiveNode(JvExplorerNode activeNode)
Set the active node in the JvExplorer. |
void |
setActiveObject(Object activeObject)
Set the active object in the JvExplorer. |
void |
setDetails(JvExplorerDetails details)
Set the details panel to be displayed for this explorer. |
void |
startEditingNode(JvExplorerNode node)
Selects the node identified by the specified node and initiates editing. |
| Methods inherited from class org.jurvis.swing.JvSplitPane |
|---|
updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JvExplorerTree tree
JvExplorerTree displaying the data hierarchy.
protected JScrollPane treeScrollPane
JScrollPane containing the JvExplorerTree.
protected PropertyChangeListener propertyChangeListener
| Constructor Detail |
|---|
public JvExplorer(String name,
JvExplorerTree tree,
JvExplorerDetails details)
JvExplorer with the given name.
| Method Detail |
|---|
public JvExplorerModel getModel()
public JvExplorerTree getTree()
public void addLeftComponent(JComponent component)
public void removeLeftComponent(JComponent component)
public void addRightComponent(JComponent component)
public void removeRightComponent(JComponent component)
public void setActiveNode(JvExplorerNode activeNode)
JvExplorer. This method
automatically updates the activeNode property of the
JvExplorerTree and the current JvExplorerDetails
component. This method automatically sets the active node to be the
active object.
activeNode - the new active nodepublic JvExplorerNode getActiveNode()
public void setActiveObject(Object activeObject)
JvExplorer. This method
automatically updates the activeObject property of the
current JvExplorerDetails component.
activeObject - the new active objectpublic Object getActiveObject()
public JvExplorerNode getSelectedNode()
public void setDetails(JvExplorerDetails details)
details - the node's detailspublic JvExplorerDetails getDetails()
public void startEditingNode(JvExplorerNode node)
node - the JvExplorerNode identifying the node to editpublic void captureModifications(Preferences preferences)
preferences.
captureModifications in interface JvModifiablepreferences - the container holding the modificationspublic void loadModifications(Preferences preferences)
preferences.
loadModifications in interface JvModifiablepreferences - the Preferences containing the application
preferences
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||