dsto.dfc.swing.commands
Interface CustomToolBarProvider

All Known Implementing Classes:
AbstractBooleanCommand

public interface CustomToolBarProvider

Interface for commands that wish to provide a customized toolbar UI.

Version:
$Revision$
Author:
Matthew Phillips

Method Summary
 void addChangeListener(ChangeListener l)
          Custom tool bar component providers should fire change events when the ToolBar UI needs to be updated.
 JComponent createToolBarComponent()
          Create the Component that represent the UI for the command.
 void destroyToolBarComponent(JComponent component)
          Destroy the Component created by createToolBarComponent ().
 void removeChangeListener(ChangeListener l)
           
 

Method Detail

createToolBarComponent

JComponent createToolBarComponent()
Create the Component that represent the UI for the command.

Returns:
A new Component to be added to the ToolBar for the command.

destroyToolBarComponent

void destroyToolBarComponent(JComponent component)
Destroy the Component created by createToolBarComponent ().


addChangeListener

void addChangeListener(ChangeListener l)
Custom tool bar component providers should fire change events when the ToolBar UI needs to be updated. This event will trigger any interested listeners to destroy old Components (destroyToolBarComponent ()) and create new ones (createToolBarComponent ()).


removeChangeListener

void removeChangeListener(ChangeListener l)


Copyright © 2008 Commonwealth of Australia