|
ej-technologies | |||||||||
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.gjt.jclasslib.nbmodule.ClassFileViewer
Parent component for a class file browser in Netbeans.
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 |
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 | |
ClassFileViewer()
Constructor. |
Method Summary | |
void |
activate()
Activate this view. |
boolean |
canClose(Workspace workspace,
boolean last)
|
boolean |
canOpenClassFiles()
Indicates whether openClassFile will be able to show class files or not. |
Action |
getActionBackward()
Get the Action which allows to move backward in the navigation history. |
Action |
getActionForward()
Get the Action which allows to move forward in the navigation history. |
BrowserComponent |
getBrowserComponent()
Get the BrowserComponent which is the top parent of the visual hierarchy of the class file browser. |
static ClassFileViewer |
getCachedClassFileViewer(org.openide.filesystems.FileObject fo)
Retrieve an already opened ClassFileViewer or create a new one if necessary. |
ClassFile |
getClassFile()
Get the ClassFile object for the show class file. |
Image |
getIcon()
|
void |
open(Workspace ws)
|
void |
openClassFile(String className,
BrowserPath browserPath)
Open a class. |
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.openide.windows.TopComponent |
availableModes, close, close, closeNotify, componentActivated, componentClosed, componentDeactivated, componentHidden, componentOpened, componentShowing, getAccessibleContext, getActivatedNodes, getCloseOperation, getHelpCtx, getRegistry, getSystemActions, getUndoRedo, isOpened, isOpened, open, openNotify, requestFocus, requestVisible, setActivatedNodes, setCloseOperation, setIcon, setName, writeReplace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassFileViewer()
Method Detail |
public static ClassFileViewer getCachedClassFileViewer(org.openide.filesystems.FileObject fo)
fo
- the FileObject for which to create a
ClassFileViewer
public boolean canClose(Workspace workspace, boolean last)
public Image getIcon()
public void open(Workspace ws)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public ClassFile getClassFile()
BrowserServices
getClassFile
in interface BrowserServices
public BrowserComponent getBrowserComponent()
BrowserServices
getBrowserComponent
in interface BrowserServices
public Action getActionBackward()
BrowserServices
getActionBackward
in interface BrowserServices
public Action getActionForward()
BrowserServices
getActionForward
in interface BrowserServices
public void openClassFile(String className, BrowserPath browserPath)
BrowserServices
openClassFile
in interface BrowserServices
className
- the name of the class.browserPath
- an optional BrowserPath object. May be null.public boolean canOpenClassFiles()
BrowserServices
canOpenClassFiles
in interface BrowserServices
public void activate()
BrowserServices
activate
in interface BrowserServices
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |