Class symantec.itools.awt.InvisibleButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.InvisibleButton

Object
   |
   +----Component
           |
           +----symantec.itools.awt.InvisibleButton

public class InvisibleButton
extends Component
Use this component to create an invisible area, usually within an image, that initiates an action when clicked. Specifically, use InvisibleButton to Button tips:

Version:
1.1, July 14, 1997
Author:
Symantec

Variable Index

 o pressed
True if the button is currently pressed.

Constructor Index

 o symantec.itools.awt.InvisibleButton()
Constructs an InvisibleButton.

Method Index

 o addActionListener(ActionListener)
Adds the specified action listener to receive action events from this button.
 o addNotify()
Tells this component that it has been added to a container.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a listener for all event changes.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a vetoable listener for all event changes.
 o getActionCommand()
 o removeActionListener(ActionListener)
Removes the specified action listener so it no longer receives action events from this button.
 o removeNotify()
Tells this component that it is being removed from a container.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a listener for all event changes.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes a vetoable listener for all event changes.
 o setActionCommand(String)
Sets the command name of the action event fired by this button.
 o sourceActionEvent()
Fire an action event to the listeners

Variables

 o pressed
protected transient boolean pressed
True if the button is currently pressed.

Constructors

 o InvisibleButton
public InvisibleButton()
Constructs an InvisibleButton.

Methods

 o addActionListener
public synchronized void addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this button.

Parameters:
l - the action listener
 o addNotify
public synchronized void addNotify()
Tells this component that it has been added to a container. This is a standard Java AWT method which gets called by the AWT when this component is added to a container. Typically, it is used to create this component's peer. It has been overridden here to hook-up event listeners.

Overrides:
addNotify in class Component
See Also:
removeNotify
 o addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for all event changes.

Parameters:
PropertyChangeListener - listener the listener to add.
See Also:
removePropertyChangeListener
 o addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
Adds a vetoable listener for all event changes.

Parameters:
VetoableChangeListener - listener the listener to add.
See Also:
removeVetoableChangeListener
 o getActionCommand
public java.lang.String getActionCommand()

Returns:
the command name of the action event fired by this button.
 o removeActionListener
public synchronized void removeActionListener(ActionListener l)
Removes the specified action listener so it no longer receives action events from this button.

Parameters:
l - the action listener
 o removeNotify
public synchronized void removeNotify()
Tells this component that it is being removed from a container. This is a standard Java AWT method which gets called by the AWT when this component is removed from a container. Typically, it is used to destroy the peers of this component and all its subcomponents. It has been overridden here to unhook event listeners.

Overrides:
removeNotify in class Component
See Also:
addNotify
 o removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all event changes.

Parameters:
PropertyChangeListener - listener the listener to remove.
See Also:
addPropertyChangeListener
 o removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
Removes a vetoable listener for all event changes.

Parameters:
VetoableChangeListener - listener the listener to remove.
See Also:
addVetoableChangeListener
 o setActionCommand
public void setActionCommand(String command) throws PropertyVetoException
Sets the command name of the action event fired by this button.

Parameters:
command - the name of the action event command fired by this button
Throws: PropertyVetoException
if the specified property value is unacceptable
 o sourceActionEvent
protected void sourceActionEvent()
Fire an action event to the listeners


All Packages  Class Hierarchy  This Package  Previous  Next  Index