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
 
 - · Create a "hot spot" on an image or on a component.
 
 - · Accept or yield focus.
 
 - · Respond to a user event.
 
 - · Send an action event to another component.
 
 
 Button tips:
 
 - · Buttons accept and yield focus automatically by default.
 
 - · Buttons accept clicked events automatically by default.
 
 - · To send an action event to another component, use the Interaction
 Wizard. Optionally, you can override the InvisibleButton’s click event in
 project source code.
 
 - · Overlapping components - browsers handle components layered on each
 other differently. Some browsers display/layer the InvisibleButtons on top
 of a particular component, while others display them underneath. Therefore,
 it often requires two sets of InvisibleButtons to ensure that one is "on top";
 one on top of the particular component and the other underneath.
 
 
  -  Version:
  
 -  1.1, July 14, 1997
  
 -  Author:
  
 -  Symantec
 
  
  -  
	pressed
   -   True if the button is currently pressed.
 
  
  -  
	symantec.itools.awt.InvisibleButton()
   -   Constructs an InvisibleButton.
 
  
  -  
	addActionListener(ActionListener)
   -   Adds the specified action listener to receive action events
 from this button.
  
 -  
	addNotify()
   -   Tells this component that it has been added to a container.
  
 -  
	addPropertyChangeListener(PropertyChangeListener)
   -   Adds a listener for all event changes.
  
 -  
	addVetoableChangeListener(VetoableChangeListener)
   -   Adds a vetoable listener for all event changes.
  
 -  
	getActionCommand()
   -   
  
 -  
	removeActionListener(ActionListener)
   -   Removes the specified action listener so it no longer receives
 action events from this button.
  
 -  
	removeNotify()
   -   Tells this component that it is being removed from a container.
  
 -  
	removePropertyChangeListener(PropertyChangeListener)
   -   Removes a listener for all event changes.
  
 -  
	removeVetoableChangeListener(VetoableChangeListener)
   -   Removes a vetoable listener for all event changes.
  
 -  
	setActionCommand(String)
   -   Sets the command name of the action event fired by this button.
  
 -  
	sourceActionEvent()
   -   Fire an action event to the listeners
 
  
pressed
protected transient boolean pressed
  -  True if the button is currently pressed.
 
  
InvisibleButton
public InvisibleButton()
  -  Constructs an InvisibleButton.
  
 
 
  
addActionListener
public synchronized void addActionListener(ActionListener l)
  -  Adds the specified action listener to receive action events
 from this button.
  
 
 
    -  Parameters:
    
 -  l - the action listener
  
 
 
 
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
  
 
 
 
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
  -  Adds a listener for all event changes.
  
 
 
    -  Parameters:
    
 -  PropertyChangeListener - listener the listener to add.
    
 -  See Also:
    
 -  removePropertyChangeListener
  
 
 
 
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
  
 
 
 
getActionCommand
public java.lang.String getActionCommand()
  -  
  
 
 
    -  Returns:
    
 -  the command name of the action event fired by this button.
  
 
 
 
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
  
 
 
 
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
  
 
 
 
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
  -  Removes a listener for all event changes.
  
 
 
    -  Parameters:
    
 -  PropertyChangeListener - listener the listener to remove.
    
 -  See Also:
    
 -  addPropertyChangeListener
  
 
 
 
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
  
 
 
 
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
  
 
 
 
sourceActionEvent
protected void sourceActionEvent()
  -  Fire an action event to the listeners
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index