ti.chimera
Class Plugin.MenuBarItemResource

java.lang.Object
  extended byti.chimera.Resource
      extended byti.chimera.Plugin.MenuBarItemResource
Enclosing class:
Plugin

public class Plugin.MenuBarItemResource
extends Resource

A MenuBarItemResource adds to / removes from the system wide menubar.


Constructor Summary
Plugin.MenuBarItemResource(java.lang.String path, javax.swing.Action a, boolean managed)
          Class Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void install()
          This method is called when the resource is installed.
 java.lang.String toString()
          For debugging.
 void uninstall()
          This method is called when the resource is uninstalled.
 
Methods inherited from class ti.chimera.Resource
isManaged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Plugin.MenuBarItemResource

public Plugin.MenuBarItemResource(java.lang.String path,
                                  javax.swing.Action a,
                                  boolean managed)
Class Constructor.

Parameters:
path - which sub-menu the item should go under
a - the menu bar action to add.
Method Detail

install

public void install()
Description copied from class: Resource
This method is called when the resource is installed. It should be overloaded by the derived class to perform whatever steps are necessary to install this resource.

Specified by:
install in class Resource
See Also:
Resource.uninstall()

uninstall

public void uninstall()
Description copied from class: Resource
This method is called when the resource is uninstalled. It should be overloaded by the derived class to perform whatever steps are necessary to uninstall the resources. It should be the inverse of Resource.install().

Specified by:
uninstall in class Resource
See Also:
Resource.install()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()
For debugging.

Returns:
a string