plugins.adufour.ezplug
Class EzButton
java.lang.Object
plugins.adufour.ezplug.EzComponent
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 titlelistener
- the listener which will be called when the button is clicked
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)