com.pepper.platform.program
Class ProgramChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.pepper.platform.program.ProgramChangeEvent
All Implemented Interfaces:
Serializable

public class ProgramChangeEvent
extends EventObject

Represents a program change.

See Also:
Serialized Form

Field Summary
static int CREATED
          Indicates that the program was created.
static int HIDDEN
          Indicates that the program was hidden.
static int REMOVED
          Indicates that the program was removed.
static int SHOWN
          Indicates that the program was made visibile.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgramChangeEvent(Object source, AbstractPepperProgram program)
          Constructs the event on behalf of the source and sets the type to CREATED.
ProgramChangeEvent(Object source, AbstractPepperProgram program, int type)
          Constructs the event on behalf of the source and sets the type to CREATED.
 
Method Summary
 AbstractPepperProgram getProgram()
          Returns the program.
 int getType()
          Returns the type of the event.
 
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

CREATED

public static final int CREATED
Indicates that the program was created.

See Also:
Constant Field Values

REMOVED

public static final int REMOVED
Indicates that the program was removed.

See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
Indicates that the program was hidden.

See Also:
Constant Field Values

SHOWN

public static final int SHOWN
Indicates that the program was made visibile.

See Also:
Constant Field Values
Constructor Detail

ProgramChangeEvent

public ProgramChangeEvent(Object source,
                          AbstractPepperProgram program)
Constructs the event on behalf of the source and sets the type to CREATED.

Parameters:
source - the source of the event.
program - the program that changed.

ProgramChangeEvent

public ProgramChangeEvent(Object source,
                          AbstractPepperProgram program,
                          int type)
Constructs the event on behalf of the source and sets the type to CREATED.

Parameters:
source - the source of the event.
program - the program that changed.
type - the type of the event.
Method Detail

getType

public int getType()
Returns the type of the event.

Returns:
the type of the event.

getProgram

public AbstractPepperProgram getProgram()
Returns the program.



Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.