com.quadrique.jbuildingblocks.gui
Class ButtonAreaEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.quadrique.jbuildingblocks.gui.ButtonAreaEvent
All Implemented Interfaces:
Serializable

public class ButtonAreaEvent
extends EventObject

This class describes the event posted by a ButtonsBar class instance whenever one of the button in the area has been selected by the user.

Author:
Hervé Rivere
See Also:
ButtonArea, Serialized Form

Constructor Summary
ButtonAreaEvent(Object zSource, int zSelectedButtonId)
          The constructor of the class.
 
Method Summary
 int getSelectedButtonId()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ButtonAreaEvent

public ButtonAreaEvent(Object zSource,
                       int zSelectedButtonId)
The constructor of the class.

Parameters:
zSource - the object that created this event,
zSelectedButtonId - the identifier of the selected button (i.e. the identifier value that you used for the zButtonId parameter in ButtonArea.addButton()).
See Also:
ButtonArea
Method Detail

getSelectedButtonId

public int getSelectedButtonId()
Returns:
the identifier of the selected button (i.e. the identifier value that you used for the zButtonId parameter in ButtonArea.addButton()).
See Also:
ButtonArea


Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.