|
org.openide.compat 6.21 | |||||||||
| 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
public class ExplorerPanel
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/interfaces inherited from class org.openide.windows.TopComponent |
|---|
TopComponent.Cloneable, TopComponent.Description, TopComponent.NodeName, TopComponent.OpenActionRegistration, TopComponent.Registration, TopComponent.Registry, TopComponent.SubComponent |
| 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 |
|---|
| Fields inherited from class org.openide.windows.TopComponent |
|---|
CLOSE_EACH, CLOSE_LAST, PERSISTENCE_ALWAYS, PERSISTENCE_NEVER, PERSISTENCE_ONLY_OPENED, PROP_CLOSING_DISABLED, PROP_DND_COPY_DISABLED, PROP_DRAGGING_DISABLED, PROP_KEEP_PREFERRED_SIZE_WHEN_SLIDED_IN, PROP_MAXIMIZATION_DISABLED, PROP_SLIDING_DISABLED, PROP_UNDOCKING_DISABLED |
| 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. |
ExplorerManager |
getExplorerManager()
Deprecated. |
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. |
void |
open(Workspace workspace)
Deprecated. |
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()
open in class TopComponentpublic void open(Workspace workspace)
open in class TopComponentpublic ExplorerManager getExplorerManager()
getExplorerManager in interface ExplorerManager.Providerprotected void componentActivated()
componentActivated in class TopComponentprotected void componentDeactivated()
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 confirmed
public void writeExternal(ObjectOutput oo)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class TopComponentIOException
public 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 TopComponentIOException
ClassNotFoundException
|
org.openide.compat 6.21 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||