com.ibm.dse.tools.workbench.gui
Interface ToolBarOption

All Known Implementing Classes:
DefaultToolBarOption

public interface ToolBarOption

The interface provides a few common methods that a tool option for the DWide must implement.


Method Summary
 java.awt.Component getComponent()
          This method returns the component that should be included in the toolbar.
 void launch()
          This method exceutes the code when the user selects the tool.
 void setParams(java.lang.String[] params)
          This method sets different parameters for the tool.
 void setRepository(Repository repository)
          This method sets the current Repository.
 void setSelectedTableRow(TableRow row)
          This method sets the selected table row in the dwide component that launches the tool.
 

Method Detail

getComponent

public java.awt.Component getComponent()
This method returns the component that should be included in the toolbar.
Returns:
java.awt.Component

launch

public void launch()
This method exceutes the code when the user selects the tool.

setParams

public void setParams(java.lang.String[] params)
This method sets different parameters for the tool.
Parameters:
params - java.lang.String[]

setRepository

public void setRepository(Repository repository)
This method sets the current Repository.
Parameters:
repository - com.ibm.dse.tools.workbench.base.Repository

setSelectedTableRow

public void setSelectedTableRow(TableRow row)
This method sets the selected table row in the dwide component that launches the tool.
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow