|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.plugin.AbstractPlugin org.xnap.gui.viewer.AbstractViewer
public abstract class AbstractViewer
Provides the default implementation for a viewer.
Field Summary | |
---|---|
javax.swing.JComponent |
component
|
java.lang.String[] |
extensions
|
Constructor Summary | |
---|---|
AbstractViewer()
Overwrite getExtensions() if you use this constructor. |
|
AbstractViewer(java.lang.String[] extensions)
|
|
AbstractViewer(java.lang.String[] extensions,
javax.swing.Icon icon)
|
Method Summary | |
---|---|
void |
close()
Does nothing. |
abstract javax.swing.JComponent |
createComponent()
|
javax.swing.JComponent |
getComponent()
Hmm, that makes not much sense. |
java.lang.String[] |
getExtensions()
Returns a an array of extensions that this plugin can display. |
javax.swing.Icon |
getIcon()
Returns a 16x16 icon. |
java.lang.String |
getName()
Implements the Viewer interface. |
void |
start()
Does nothing. |
void |
startGUI()
Registers the extensions at the ViewerManager . |
void |
stop()
Does nothing. |
void |
stopGUI()
Unregisters the extensions at the ViewerManager . |
java.lang.String |
toString()
Returns the value get.Info().getName(). |
Methods inherited from class org.xnap.plugin.AbstractPlugin |
---|
getInfo, setInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xnap.gui.viewer.Viewer |
---|
open |
Field Detail |
---|
public java.lang.String[] extensions
public javax.swing.JComponent component
Constructor Detail |
---|
public AbstractViewer(java.lang.String[] extensions)
public AbstractViewer()
getExtensions()
if you use this constructor.
public AbstractViewer(java.lang.String[] extensions, javax.swing.Icon icon)
Method Detail |
---|
public void close()
close
in interface Viewer
public abstract javax.swing.JComponent createComponent()
public javax.swing.JComponent getComponent()
Viewer
getComponent
in interface Viewer
public java.lang.String[] getExtensions()
public javax.swing.Icon getIcon()
Viewer
getIcon
in interface Viewer
public java.lang.String getName()
getName
in interface Viewer
xnap.plugin.PluginInfo#getName()
public void start()
start
in interface Plugin
xnap.plugin.Plugin#start()
public void startGUI()
ViewerManager
.
startGUI
in interface Plugin
public void stop()
stop
in interface Plugin
xnap.plugin.Plugin#stop()
public void stopGUI()
ViewerManager
.
stopGUI
in interface Plugin
public java.lang.String toString()
toString
in class AbstractPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |