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

All Known Implementing Classes:
MenuSeparator, DefaultMenuOption, DefaultMenu

public interface MenuOption
extends DWChangeNotifier

The interface provides a few common methods that a menu item for the DWide must implement.


Method Summary
 java.awt.Component getComponent()
          This method returns the component that should be included in the menu.
 void launch()
          This method exceutes the code when the user selects the option.
 void setParams(java.lang.String[] params)
          This method sets different parameters for the menu option.
 void setRepository(Repository repository)
          This method sets the current Repository.
 void setSelectedTableRows(TableRow[] rows)
          This method sets the selected table rows in the dwide component that launches the menu option.
 void setWorkspace(Workspace workspace)
          This method sets the current Workspace.
 
Methods inherited from interface com.ibm.dse.tools.workbench.gui.DWChangeNotifier
addChangeListener, removeChangeListener
 

Method Detail

getComponent

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

launch

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

setParams

public void setParams(java.lang.String[] params)
This method sets different parameters for the menu option.
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

setSelectedTableRows

public void setSelectedTableRows(TableRow[] rows)
This method sets the selected table rows in the dwide component that launches the menu option.
Parameters:
rows - com.ibm.dse.tools.workbench.base.TableRow[]

setWorkspace

public void setWorkspace(Workspace workspace)
This method sets the current Workspace.
Parameters:
workspace - com.ibm.dse.tools.workbench.base.Workspace