Package com.dassault_systemes.catweb.base.awt

   
Interface CATButtonIF

 
Class Hierarchy
com.dassault_systemes.catweb.base.awt.CATButtonIF
Class Location

Framework : PortalBase

Module : PLBbase

Class Description

public interface CATButtonIF

Field Summary

Constructor Summary

Method Summary
public void addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this button.
public String getActionCommand()
Returns the command name of the action event fired by this button.
public Component getGUI()
public String getLabel()
Returns the button label.
public boolean isEnabled()
Determines whether this component is enabled.
public void removeActionListener(ActionListener l)
Removes the specified action listener so that it no longer receives action events from this button.
public void setActionCommand(String command)
Sets the command name for the action event fired by this button.
public void setEnabled(boolean enabled)
Enables or disables this component, depending on the value of the parameter b.
public void setLabel(String label)
Sets the button label to be the specified string.
public void setName(String str)


Field Detail

Constructor Detail

Method Detail

addActionListener

    public void addActionListener(ActionListener l)

Adds the specified action listener to receive action events from this button. Action events occur when a user presses or releases the mouse over this button.

Parameters:
l
the action listener.
See Also:
java.awt.event.ActionListener

getActionCommand

    public String getActionCommand()

Returns the command name of the action event fired by this button.


getGUI

    public Component getGUI()

See Also:
java.awt.Component

getLabel

    public String getLabel()

Returns the button label.


isEnabled

    public boolean isEnabled()

Determines whether this component is enabled. An enabled component can respond to user input and generate events. Components are enabled initially by default. A component may be enabled or disabled by calling its setEnabled method.

Return:
true if the component is enabled; false otherwise.
See Also:
#setEnabled

removeActionListener

    public void removeActionListener(ActionListener l)

Removes the specified action listener so that it no longer receives action events from this button. Action events occur when a user presses or releases the mouse over this button.

Parameters:
l
the action listener.
See Also:
java.awt.event.ActionListener

setActionCommand

    public void setActionCommand(String command)

Sets the command name for the action event fired by this button. By default this action command is set to match the label of the button.

Parameters:
command
A string used to set the button's action command.

setEnabled

    public void setEnabled(boolean enabled)

Enables or disables this component, depending on the value of the parameter b. An enabled component can respond to user input and generate events. Components are enabled initially by default.

Parameters:
b
If true, this component is enabled; otherwise this component is disabled.
See Also:
#isEnabled

setLabel

    public void setLabel(String label)

Sets the button label to be the specified string.

Parameters:
label
the new label, or null if the button has no label.

setName

    public void setName(String str)



Copyright © 2000, Dassault Systèmes. All rights reserved