ti.chimera
Class Plugin.ToolBarResource

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

public class Plugin.ToolBarResource
extends Resource

A tool-bar-resource adds a tool-bar when installed, and removes when uninstalled.


Constructor Summary
Plugin.ToolBarResource(javax.swing.JToolBar tb, boolean managed)
          Class Constructor.
Plugin.ToolBarResource(Plugin.ToolBarFactory tbf, boolean managed)
          Class Constructor, which can be used to defer creating the toolbar until this resource is installed.
Plugin.ToolBarResource(oscript.data.Value fxn, boolean managed)
          Class Constructor, which can be used to defer creating the toolbar until this resource is installed.
 
Method Summary
 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Plugin.ToolBarResource

public Plugin.ToolBarResource(Plugin.ToolBarFactory tbf,
                              boolean managed)
Class Constructor, which can be used to defer creating the toolbar until this resource is installed.

Parameters:
tbf - the tool-bar-factory
managed - is this a managed resource

Plugin.ToolBarResource

public Plugin.ToolBarResource(oscript.data.Value fxn,
                              boolean managed)
Class Constructor, which can be used to defer creating the toolbar until this resource is installed.

Parameters:
fxn - the script function that takes no args and returns a tool-bar instance
managed - is this a managed resource

Plugin.ToolBarResource

public Plugin.ToolBarResource(javax.swing.JToolBar tb,
                              boolean managed)
Class Constructor.

Parameters:
tb - the tool-bar
managed - is this a managed view
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()

toString

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

Returns:
a string