com.sas.awt
Class AppletStateChangedEvent

com.sas.awt.AppletStateChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class AppletStateChangedEvent

AppletStateChangedEvent is a specialization of java.util.EventObject which is exclusively for state change events from the applet. The AppletStateChangedEvent contains information about the specific state change that caused the event to occur.

See Also:
Serialized Form

Field Summary
static int APPLET_DESTROY
          Type value for the AppletStateChangedEvent from the applet destroy method.
static int APPLET_INIT
          Type value for the AppletStateChangedEvent from the applet init method.
static int APPLET_START
          Type value for the AppletStateChangedEvent from the applet start method.
static int APPLET_STOP
          Type value for the AppletStateChangedEvent from the applet stop method.
protected  int type
          The event type: one of APPLET_START, APPLET_STOP, APPLET_INIT, or APPLET_DESTROY
 
Constructor Summary
AppletStateChangedEvent(AppletStateChangedSource source, int type)
          Constructs an AppletStateChangedEvent
 
Method Summary
 int getType()
          Returns the specific type of applet event that prompted this event.
 

Field Detail

APPLET_START

public static final int APPLET_START
Type value for the AppletStateChangedEvent from the applet start method.

See Also:
APPLET_STOP, APPLET_INIT, APPLET_DESTROY, Constant Field Values

APPLET_STOP

public static final int APPLET_STOP
Type value for the AppletStateChangedEvent from the applet stop method.

See Also:
APPLET_START, APPLET_INIT, APPLET_DESTROY, Constant Field Values

APPLET_INIT

public static final int APPLET_INIT
Type value for the AppletStateChangedEvent from the applet init method.

See Also:
APPLET_START, APPLET_STOP, APPLET_DESTROY, Constant Field Values

APPLET_DESTROY

public static final int APPLET_DESTROY
Type value for the AppletStateChangedEvent from the applet destroy method.

See Also:
APPLET_START, APPLET_STOP, APPLET_INIT, Constant Field Values

type

protected int type
The event type: one of APPLET_START, APPLET_STOP, APPLET_INIT, or APPLET_DESTROY

Constructor Detail

AppletStateChangedEvent

public AppletStateChangedEvent(AppletStateChangedSource source,
                               int type)
Constructs an AppletStateChangedEvent

Parameters:
source - The object sending the event
type - The specific state change type. Possible values are: APPLET_START, APPLET_STOP, APPLET_INIT, and APPLET_DESTROY.
Method Detail

getType

public int getType()
Returns the specific type of applet event that prompted this event.

Returns:
The applet event type. Possible values are: APPLET_START, APPLET_STOP, APPLET_INIT, and APPLET_DESTROY.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.