de.mud.jta.plugin

Class Status

Implemented Interfaces:
Runnable, VisualPlugin

public class Status
extends Plugin
implements VisualPlugin, Runnable

A simple plugin showing the current status of the application whether it is online or not.

Maintainer: Matthias L. Jugel

Version:
$Id: Status.java 499 2005-09-29 08:24:54Z leo $
Author:
Matthias L. Jugel, Marcus Mei???ner

Field Summary

Fields inherited from class de.mud.jta.Plugin

bus, id

Constructor Summary

Status(PluginBus bus, String id)
Create a new plugin and set the plugin bus used by this plugin and the unique id.

Method Summary

JMenu
getPluginMenu()
Get the menu entry for this component.
JComponent
getPluginVisual()
Get the visible components from the plugin.
void
run()

Methods inherited from class de.mud.jta.Plugin

error, getId

Constructor Details

Status

public Status(PluginBus bus,
              String id)
Create a new plugin and set the plugin bus used by this plugin and the unique id. The unique id may be null if there is only one plugin used by the system.
Parameters:
bus - the plugin bus
id - the unique plugin id

Method Details

getPluginMenu

public JMenu getPluginMenu()
Get the menu entry for this component.
Specified by:
getPluginMenu in interface VisualPlugin
Returns:
a menu that can be used to change the plugin state

getPluginVisual

public JComponent getPluginVisual()
Get the visible components from the plugin.
Specified by:
getPluginVisual in interface VisualPlugin
Returns:
a component that represents the plugin

run

public void run()