plugins.adufour.ezplug
Class EzButton

java.lang.Object
  extended by plugins.adufour.ezplug.EzComponent
      extended by plugins.adufour.ezplug.EzButton

public class EzButton
extends EzComponent

Class defining a button for use with EzPlugs. An EzButton adopts the same layout as other EzComponents, and fires an action listener whenever it is clicked from the interface.

Author:
Alexandre Dufour

Field Summary
 
Fields inherited from class plugins.adufour.ezplug.EzComponent
name, visible
 
Constructor Summary
EzButton(java.lang.String title, java.awt.event.ActionListener listener)
          Creates a new EzButton with given title and action listener (i.e.
 
Method Summary
 void addTo(java.awt.Container container)
           
 void dispose()
           
 void setEnabled(boolean enabled)
           
 void setText(java.lang.String text)
           
 void setToolTipText(java.lang.String text)
          Assigns a tool-tip text to the variable, which pops up when the user hovers the mouse on it.
 
Methods inherited from class plugins.adufour.ezplug.EzComponent
getGroup, getVisible, isVisible, setGroup, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EzButton

public EzButton(java.lang.String title,
                java.awt.event.ActionListener listener)
Creates a new EzButton with given title and action listener (i.e. the method which will be called when the button is clicked)

Parameters:
title - the button title
listener - the listener which will be called when the button is clicked
Method Detail

addTo

public void addTo(java.awt.Container container)
Specified by:
addTo in class EzComponent

setToolTipText

public void setToolTipText(java.lang.String text)
Description copied from class: EzComponent
Assigns a tool-tip text to the variable, which pops up when the user hovers the mouse on it.

Specified by:
setToolTipText in class EzComponent
Parameters:
text - the text to display (usually no more than 20 words)

setText

public void setText(java.lang.String text)

dispose

public void dispose()
Overrides:
dispose in class EzComponent

setEnabled

public void setEnabled(boolean enabled)