|
|||||||||||
| 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
org.openide.windows.TopComponent
org.openide.explorer.ExplorerPanel
ExplorerUtils.actionCopy(org.openide.explorer.ExplorerManager), etc, see ExplorerUtils javadoc
for details
Simple top component capable of displaying an Explorer.
Holds one instance of ExplorerManager and
implements ExplorerManager.Provider to allow child components to share
the same explorer manager.
Uses BorderLayout by default.
Pays attention to the selected nodes and explored context as indicated by the manager.
Cut/copy/paste actions are sensitive to the activation state of the component.
It is up to you to add a view and other UI apparatus to the panel.
| Nested Class Summary |
| Nested classes inherited from class org.openide.windows.TopComponent |
TopComponent.Cloneable, TopComponent.NodeName, TopComponent.Registry |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class org.openide.windows.TopComponent |
CLOSE_EACH, CLOSE_LAST, PERSISTENCE_ALWAYS, PERSISTENCE_NEVER, PERSISTENCE_ONLY_OPENED |
| 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 | |
ExplorerPanel()
Deprecated. Default constructor. |
|
ExplorerPanel(ExplorerManager manager)
Deprecated. Initialize the explorer panel with the provided manager. |
|
| Method Summary | |
protected void |
componentActivated()
Deprecated. Activates copy/cut/paste actions. |
protected void |
componentDeactivated()
Deprecated. Called when this component is deactivated. |
ExplorerManager |
getExplorerManager()
Deprecated. Get the explorer manager. |
HelpCtx |
getHelpCtx()
Deprecated. Get context help for an explorer window. |
static HelpCtx |
getHelpCtx(Node[] sel,
HelpCtx def)
Deprecated. Utility method to get context help from a node selection. |
static boolean |
isConfirmDelete()
Deprecated. Are deletions confirmed on all Explorer panels? |
void |
open()
Deprecated. Shows this TopComponent. |
void |
open(Workspace workspace)
Deprecated. Shows this TopComponent in current workspace. |
void |
readExternal(ObjectInput oi)
Deprecated. Reads the manager. |
static void |
setConfirmDelete(boolean confirmDelete)
Deprecated. Set whether deletions should have to be confirmed on all Explorer panels. |
protected void |
updateTitle()
Deprecated. Called when the explored context changes. |
void |
writeExternal(ObjectOutput oo)
Deprecated. Stores the manager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExplorerPanel(ExplorerManager manager)
manager - the explorer manager to usepublic ExplorerPanel()
| Method Detail |
public void open()
TopComponentTopComponent.
Note: This method only makes it visible, but does not
activates it.
open in class TopComponentTopComponent.requestActive()public void open(Workspace workspace)
TopComponentTopComponent in current workspace.
Node: Currently workspaces are not supported. The method has the same effect
like TopComponent.open().
open in class TopComponentpublic ExplorerManager getExplorerManager()
ExplorerManager.Provider
getExplorerManager in interface ExplorerManager.Providerprotected void componentActivated()
componentActivated in class TopComponentprotected void componentDeactivated()
TopComponent
componentDeactivated in class TopComponentprotected void updateTitle()
public HelpCtx getHelpCtx()
getHelpCtx in interface HelpCtx.ProvidergetHelpCtx in class TopComponentgetHelpCtx(Node[],HelpCtx)public static HelpCtx getHelpCtx(Node[] sel, HelpCtx def)
sel - a list of nodes to search for help indef - the default help to use if they have none or do not agree
public static void setConfirmDelete(boolean confirmDelete)
confirmDelete - true to confirm, false to delete at oncepublic static boolean isConfirmDelete()
true if they must be confirmedpublic void writeExternal(ObjectOutput oo) throws IOException
writeExternal in interface ExternalizablewriteExternal in class TopComponentoo - the stream to serialize to
IOExceptionpublic void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException
SafeException in case
the manager cannot be loaded correctly but the stream is still uncorrupted.
readExternal in interface ExternalizablereadExternal in class TopComponentoi - the stream to deserialize from
IOException
ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||