LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.event
Class LySimpleDemandTransmitter

java.lang.Object
  extended by leon.view.event.LySimpleDemandTransmitter
All Implemented Interfaces:
LyDemandTransmitter, LyMessageWindowRegister

public class LySimpleDemandTransmitter
extends java.lang.Object
implements LyDemandTransmitter, LyMessageWindowRegister

Client may register on components which implement this interface to receive notifications from the component.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySimpleDemandTransmitter(LyEnvironment environment)
          Constructor.
 
Method Summary
 void addDemandListener(LyDemandListener listener)
          Adds the specified selection listener to receive demand events from this component.
 void free()
          Free the demand listener.
 int getDelay()
          Gets delay between plays.
 LyDemandListener getListenerById(java.lang.String listenerId)
          Retrieve a LyDemandListener by its id.
 LyDemandPlayer getPlayer()
          Gets demand player.
 boolean playNext()
          Used in test mode to play next demand in test file.
 LyDemandListener process(java.lang.String listenerId, LyDemand demand)
          Processes demands on this component.
 void processDemand(LyDemand demand)
          Processes demands on this component.
 void processDemand(java.lang.String listenerId, LyDemand demand)
          Processes demands on this component.
 void registerMessageWindow(java.lang.Object messageId, java.lang.String type, java.lang.String message)
          Register a message.
 void removeDemandListener(LyDemandListener listener)
          Removes the specified demand listener from this component.
 void setMessageWindowResult(java.lang.Object messageId, int result)
          Sets the result for a message.
 void setPlayer(LyDemandPlayer player)
          Sets demand player.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LySimpleDemandTransmitter

public LySimpleDemandTransmitter(LyEnvironment environment)
Constructor.

Method Detail

free

public void free()
Free the demand listener.

Specified by:
free in interface LyDemandTransmitter

addDemandListener

public void addDemandListener(LyDemandListener listener)
Adds the specified selection listener to receive demand events from this component. (LyDemandTransmitter interface)

Specified by:
addDemandListener in interface LyDemandTransmitter
Parameters:
listener - client for the action event

removeDemandListener

public void removeDemandListener(LyDemandListener listener)
Removes the specified demand listener from this component. (LyDemandTransmitter interface)

Specified by:
removeDemandListener in interface LyDemandTransmitter
Parameters:
listener - client for the action event

processDemand

public void processDemand(LyDemand demand)
Processes demands on this component.

Specified by:
processDemand in interface LyDemandTransmitter

processDemand

public void processDemand(java.lang.String listenerId,
                          LyDemand demand)
Processes demands on this component.

Specified by:
processDemand in interface LyDemandTransmitter
Parameters:
listenerId - the demand is sent to the specified listener (LyDemandTransmitter interface)

process

public LyDemandListener process(java.lang.String listenerId,
                                LyDemand demand)
Processes demands on this component.

Parameters:
listenerId - the demand is sent to the specified listener (LyDemandTransmitter interface)
Returns:
The listener that processes the demand.

getListenerById

public LyDemandListener getListenerById(java.lang.String listenerId)
Retrieve a LyDemandListener by its id.

Specified by:
getListenerById in interface LyDemandTransmitter
Parameters:
listenerId - which has to be retrieve

registerMessageWindow

public void registerMessageWindow(java.lang.Object messageId,
                                  java.lang.String type,
                                  java.lang.String message)
Register a message.

Specified by:
registerMessageWindow in interface LyMessageWindowRegister
Parameters:
messageId - The message id to register.
type - Type of the message.
message - The message.

setMessageWindowResult

public void setMessageWindowResult(java.lang.Object messageId,
                                   int result)
Sets the result for a message.

Specified by:
setMessageWindowResult in interface LyMessageWindowRegister
Parameters:
message - The message id.
result - The result.

getPlayer

public LyDemandPlayer getPlayer()
Gets demand player.


setPlayer

public void setPlayer(LyDemandPlayer player)
Sets demand player.


playNext

public boolean playNext()
Used in test mode to play next demand in test file.

Specified by:
playNext in interface LyDemandTransmitter

getDelay

public int getDelay()
Gets delay between plays.

Specified by:
getDelay in interface LyDemandTransmitter

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com