|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.gui.LComponent
edu.gatech.cs2335.lemmings.gui.LLeafComponent
edu.gatech.cs2335.lemmings.gui.LAbstractButton
Class LAbstractButton: The abstract button class.
Revision History:
v1.0 (Mar. 29, 2004) - Created the LAbstractButton class
| Constructor Summary | |
LAbstractButton()
Creates a new LAbstractButton instance. |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to the button. |
protected void |
fireActionPerformed(java.awt.event.ActionEvent e)
Notifies all listeners that have registered interest for notification on this event type. |
java.lang.String |
getActionCommand()
Returns the action command for this button. |
protected java.util.List |
getActionListeners()
Returns the listeners for this button. |
void |
registerMouseClick(int button,
java.awt.Point coords)
Registers the click of a mouse button at the specified coordinates. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener from the button. |
void |
setActionCommand(java.lang.String v)
Sets a new action command for this button. |
protected void |
setActionListeners(java.util.List ll)
Sets up the list of action listeners. |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LLeafComponent |
makeDirty, move, renderAll |
| Methods inherited from class edu.gatech.cs2335.lemmings.gui.LComponent |
bringToTop, cleanUp, copy, getBounds, getParent, initialize, isActive, isComponentDirty, isShown, paint, setBounds, setDirty, setParent, setPosition, setShown, setSize, setSize, updateDimensions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LAbstractButton()
LAbstractButton instance.
| Method Detail |
public void addActionListener(java.awt.event.ActionListener l)
l - the ActionListener to be added.public void removeActionListener(java.awt.event.ActionListener l)
l - the listener to be removed.protected java.util.List getActionListeners()
List valueprotected void setActionListeners(java.util.List ll)
ll - a List valueprotected void fireActionPerformed(java.awt.event.ActionEvent e)
e - the ActionEvent object.public java.lang.String getActionCommand()
String valuepublic void setActionCommand(java.lang.String v)
v - a String value
public void registerMouseClick(int button,
java.awt.Point coords)
registerMouseClick in interface IClickablebutton - an int valuecoords - a Point value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||