net.logAnalyzer.utils.gui.quickbar
Interface QuickAction

All Known Implementing Classes:
QuickActionButton, QuickActionContainer

public interface QuickAction

This interface defines a QuickAction to use in q QuickBar.

A QuickAction must use ActionEvent to notify ActionListener(s). If you have to fire an ActionEvent, call ActionListener.actionPerformed(java.awt.event.ActionEvent) on each ActionListener.


Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an ActionListener to the button.
 javax.swing.JComponent getGUI()
          Each QuickAction must be a JComponent or have an internal JComponent for GUI.
 java.lang.String getName()
          Returns the action name.
 

Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to the button.

Parameters:
l - the ActionListener to be added

getGUI

public javax.swing.JComponent getGUI()
Each QuickAction must be a JComponent or have an internal JComponent for GUI. Useful to place the QuickAction in the QuickBar.

Common implementation is :

 public JComponent getGUI() {
     return (JComponent) this;
 }
 

Returns:
The QuickAction GUI.

getName

public java.lang.String getName()
Returns the action name.

Returns:
Action name.


Copyright © 2006 null. All Rights Reserved.