All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eNetwork.beans.HOD.event.ScreenEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.eNetwork.beans.HOD.event.ScreenEvent

public class ScreenEvent
extends EventObject
The Screen Event. This event is fired to ScreenListeners when a URL is selected or when a cut/paste box is selected, unselected, resized or moved on the Screen.

See Also:
ScreenListener, Screen, Terminal

Variable Index

 o BOX_SELECTED
A Cut/Paste box was selected, resized, or moved on the Screen
 o BOX_UNSELECTED
A Cut/Paste box was unselected on the Screen
 o URL_SELECTED
A URL string was selected on the Screen

Constructor Index

 o ScreenEvent(Object, int, Insets, URL)
Constructs a Screen Event.

Method Index

 o getInsets()
Returns the selected box coordinates from Screen.
 o getType()
Returns the event type.
 o getURL()
Returns the URL.

Variables

 o BOX_SELECTED
 public static final short BOX_SELECTED
A Cut/Paste box was selected, resized, or moved on the Screen

 o BOX_UNSELECTED
 public static final short BOX_UNSELECTED
A Cut/Paste box was unselected on the Screen

 o URL_SELECTED
 public static final short URL_SELECTED
A URL string was selected on the Screen

Constructors

 o ScreenEvent
 public ScreenEvent(Object source,
                    int type,
                    Insets selected,
                    URL url)
Constructs a Screen Event. This is fired from Screen when a URL is selected or when a cut/paste box is selected, unselected, resized or moved on the Screen.

Parameters:
source - The source of the event.
type - The Type of the event.
selected - If the event type is URL_SELECTED, then this value is set to null
url - If the event type is BOX_SELECTED or BOX_UNSELECTED, this value is null.

Methods

 o getType
 public int getType()
Returns the event type. The valid values are:

 o getInsets
 public Insets getInsets()
Returns the selected box coordinates from Screen. The coordinates are returned in an Insets object, and are mapped as follows:
      getInsets().top     =  y1
      getInsets().left    =  x1
      getInsets().bottom  =  y2
      getInsets().right   =  x2
  

If the event type is BOX_UNSELECTED or URL_SELECTED, the coordinates are set to 0.

See Also:
getType
 o getURL
 public URL getURL()
Returns the URL. If the event type is BOX_SELECTED or BOX_UNSELECTED, this returns null.


All Packages  Class Hierarchy  This Package  Previous  Next  Index