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
Component getGUI()
String getLabel()
void setLabel(String label)
boolean isEnabled()
void setEnabled(boolean enabled)
void setActionCommand(String command)
String getActionCommand()
void addActionListener(ActionListener l)
void removeActionListener(ActionListener l)
void setName(String str)


Field Detail

Constructor Detail

Method Detail

getGUI

    Component getGUI()

See Also:
java.awt.Component

getLabel

    String getLabel()

Returns the button label.


setLabel

    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.

isEnabled

    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.

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

setEnabled

    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

setActionCommand

    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.

getActionCommand

    String getActionCommand()

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


addActionListener

    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

removeActionListener

    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

setName

    void setName(String str)



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