com.sas.prompts
Class PromptValueChangeEvent

com.sas.prompts.PromptValueChangeEvent
All Implemented Interfaces:
PromptValueChangeEventInterface

public class PromptValueChangeEvent
implements PromptValueChangeEventInterface

An event used to indicate a change to a prompt value has occurred.


Constructor Summary
PromptValueChangeEvent(PromptDefinitionInterface promptDefinition, java.lang.Object oldValue, java.lang.Object newValue)
          Constructor
 
Method Summary
 java.lang.Object getNewValue()
          Returns the value after the change
 java.lang.Object getOldValue()
          Returns the value before the change
 PromptDefinitionInterface getPromptDefinition()
          Returns the name of the prompt whose value changed
 java.lang.Object getSource()
          Returns the prompt whose value changed
 

Constructor Detail

PromptValueChangeEvent

public PromptValueChangeEvent(PromptDefinitionInterface promptDefinition,
                              java.lang.Object oldValue,
                              java.lang.Object newValue)
Constructor

Parameters:
promptDefinition - The prompt whose value changed
oldValue - The value before the change
newValue - The value after the change
Method Detail

getPromptDefinition

public PromptDefinitionInterface getPromptDefinition()
Returns the name of the prompt whose value changed

Specified by:
getPromptDefinition in interface PromptValueChangeEventInterface
Returns:
Returns the PromptDefinitionInterface of the prompt whose value changed.

getSource

public java.lang.Object getSource()
Returns the prompt whose value changed

Specified by:
getSource in interface PromptValueChangeEventInterface
Returns:
Returns the PromptDefinitionInterface of the prompt whose value changed.

getOldValue

public java.lang.Object getOldValue()
Returns the value before the change

Specified by:
getOldValue in interface PromptValueChangeEventInterface
Returns:
the value before the change

getNewValue

public java.lang.Object getNewValue()
Returns the value after the change

Specified by:
getNewValue in interface PromptValueChangeEventInterface
Returns:
the value after the change



Copyright © 2009 SAS Institute Inc. All Rights Reserved.