byucc.jhdl.apps.Viewers.Event
Class JHDLWidgetEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bybyucc.jhdl.apps.Viewers.Event.JHDLWidgetEvent
All Implemented Interfaces:
java.io.Serializable

public class JHDLWidgetEvent
extends java.util.EventObject

Passed to JHDLWidgetEventListeners by JHDLWidgetEventGenerators.

Version:
$Id: JHDLWidgetEvent.java,v 1.5 2004/04/20 21:23:31 tsa6 Exp $
Author:
Tyler Anderson
See Also:
JHDLWidgetEventListener,JHDLWidgetEventGenerator, Serialized Form

Field Summary
static int ACTION_CELLS
          Means a cell or cells have been double clicked, and they can be accessed by the getList() method.
static int ACTION_WIRES
          Means a wire or wires have been double clicked, and they can be accessed by the getList() method.
static int CLEAR_ALL
          Means all displayed items have been unselected in another widget, and this widget may do the same
static int CLEAR_SELECTED_CELLS
          Means all cells have been unselected in another widget, and this widget may do the same
static int CLEAR_SELECTED_WIRES
          Means all wires have been unselected in another widget, and this widget may do the same
static int ERROR_CONSTRUCTING
          Means an error occured in the constructor, meaning it probably did not send a correct argument type to the constructor.
static int SET_SELECTED_CELLS
          Means multiple cells have been clicked, and they can be accessed by the getList() method.
static int SET_SELECTED_WIRES
          Means multiple wires have been clicked, and they can be accessed by the getList() method.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JHDLWidgetEvent(java.lang.Object source, int id, java.util.ArrayList list)
          Constructor used primarily for CLEAR or SELECT events
 
Method Summary
 int getID()
           
 java.util.ArrayList getList()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_CONSTRUCTING

public static final int ERROR_CONSTRUCTING
Means an error occured in the constructor, meaning it probably did not send a correct argument type to the constructor.

See Also:
Constant Field Values

SET_SELECTED_CELLS

public static final int SET_SELECTED_CELLS
Means multiple cells have been clicked, and they can be accessed by the getList() method.

See Also:
Constant Field Values

SET_SELECTED_WIRES

public static final int SET_SELECTED_WIRES
Means multiple wires have been clicked, and they can be accessed by the getList() method.

See Also:
Constant Field Values

ACTION_CELLS

public static final int ACTION_CELLS
Means a cell or cells have been double clicked, and they can be accessed by the getList() method.

See Also:
Constant Field Values

ACTION_WIRES

public static final int ACTION_WIRES
Means a wire or wires have been double clicked, and they can be accessed by the getList() method.

See Also:
Constant Field Values

CLEAR_SELECTED_WIRES

public static final int CLEAR_SELECTED_WIRES
Means all wires have been unselected in another widget, and this widget may do the same

See Also:
Constant Field Values

CLEAR_SELECTED_CELLS

public static final int CLEAR_SELECTED_CELLS
Means all cells have been unselected in another widget, and this widget may do the same

See Also:
Constant Field Values

CLEAR_ALL

public static final int CLEAR_ALL
Means all displayed items have been unselected in another widget, and this widget may do the same

See Also:
Constant Field Values
Constructor Detail

JHDLWidgetEvent

public JHDLWidgetEvent(java.lang.Object source,
                       int id,
                       java.util.ArrayList list)
Constructor used primarily for CLEAR or SELECT events

Parameters:
source - The source object of this event.
id - The id, meaning the reason for this event, encoded in JHDLMouseEvent.
list - The list of currently selected wires or cells.
Method Detail

getID

public int getID()
Returns:
the id

getList

public java.util.ArrayList getList()
Returns:
the list of selected cells


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.