|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.companycontrol.plugin.PluginBase
The Base Class all Plugins must inherit. For a working Plugin the Method "getPluginPanel" must be overridden. The other Methods can be overridden depending on the Purpose of the Plugin. Please be sure to also override the Method "getName" so the right Name of the Plugin is returned.
| Field Summary | |
private CompanyControlClient |
client
Reference to the CompanyControlClient. |
(package private) java.lang.String |
name
Default Name. |
(package private) javax.swing.JPanel |
pluginPanel
The Panel of the Plugin. |
| Constructor Summary | |
PluginBase()
Constructor |
|
| Method Summary | |
java.lang.String |
getName()
Returns the Name of the Plugin. |
javax.swing.JPanel |
getPluginPanel()
Returns the Plugins Panel. |
protected void |
sendMessage(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj msg)
Lets PLugins send Messages to the Kernel |
void |
setClient(CompanyControlClient client)
Sets the Reference to the CompanyControlClient. |
void |
setCompanyID(int ID)
Sets the CompanyID. |
void |
setKerneltoShuttleIDMap(java.util.HashMap map)
Sets the KernelIDtoShuttleAgendID HashMap. |
void |
shuttleSelected(int ID)
Invoced if a User selects a Shuttle. |
void |
stationSelected(int ID)
Invoced if a User selects a Station. |
void |
update(de.upb.swtpra.kernel.visualisation.RemoteObj msg)
Update Method which is invoced every Time a Message is received by the Client. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
javax.swing.JPanel pluginPanel
java.lang.String name
private CompanyControlClient client
| Constructor Detail |
public PluginBase()
| Method Detail |
public final void setClient(CompanyControlClient client)
client - protected final void sendMessage(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj msg)
msg - public javax.swing.JPanel getPluginPanel()
public void setCompanyID(int ID)
ID - public void setKerneltoShuttleIDMap(java.util.HashMap map)
map - public java.lang.String getName()
public void update(de.upb.swtpra.kernel.visualisation.RemoteObj msg)
msg - public void shuttleSelected(int ID)
ID - public void stationSelected(int ID)
ID -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||