public abstract class AbstractVisatPlugIn extends Object implements VisatPlugIn
VisatPlugIn
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractVisatPlugIn() |
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String resourcePath)
Finds a resource with a given path.
|
ImageIcon |
loadImageIcon(String resourcePath)
Load an image icon from the given resource path.
|
void |
stop(VisatApp visatApp)
Called the application shuts down.
|
void |
updateComponentTreeUI()
Tells a plug-in to update its component tree (if any) since the Java look-and-feel has changed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
public void stop(VisatApp visatApp)
Clients shall override this method in order to clean-up the resources they have allocated. This default implementation does nothing.
stop
in interface VisatPlugIn
visatApp
- a reference to the application instance.public ImageIcon loadImageIcon(String resourcePath)
resourcePath
- name of the desired resourcepublic URL getResource(String resourcePath)
resourcePath
- name of the desired resourcejava.net.URL
object or null, if no such can be foundpublic void updateComponentTreeUI()
If a plug-in uses top-level containers such as dialogs or frames, implementors of this method should invoke
SwingUtilities.updateComponentTreeUI()
on such containers.
The default implementation does nothing.
updateComponentTreeUI
in interface VisatPlugIn
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.