LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app.behavior
Class LyBehavior

java.lang.Object
  extended by leon.app.behavior.LyBehavior
All Implemented Interfaces:
LyBehaviorInterface, LyGetSessionInterface
Direct Known Subclasses:
LyActionBehavior, LyImportContentBehavior

public abstract class LyBehavior
extends java.lang.Object
implements LyBehaviorInterface, LyGetSessionInterface

LyBehavior is an abstract class. It implements the default behavior interface. All behaviors inherit from LyBehavior.

See Also:
LyBehaviorInterface

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyBehavior()
          Default constructor.
 
Method Summary
 void free()
          Free this behavior.
 LySession getSession()
          Gets the session of current object.
 boolean handleDemand(LyController controller, LyDemand demand)
          Method invoked when a demand is sent to this listener.
 void init(LyController controller)
          Initializes information used within this behavior and is called immediately after its construction.
 
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
File version

See Also:
Constant Field Values
Constructor Detail

LyBehavior

public LyBehavior()
Default constructor.

Method Detail

init

public void init(LyController controller)
Initializes information used within this behavior and is called immediately after its construction.
The default implementation does nothing.

Specified by:
init in interface LyBehaviorInterface
Parameters:
controller - The controller that requested the creation of this behavior.

free

public void free()
Free this behavior. This method is provided to allow behavior to unregister itself from object sources or workspaces if needed. It should be called only by the controller that built this behavior.
The default implementation does nothing.

Specified by:
free in interface LyBehaviorInterface

handleDemand

public boolean handleDemand(LyController controller,
                            LyDemand demand)
Method invoked when a demand is sent to this listener.
The default implementation does nothing and return false.

Specified by:
handleDemand in interface LyBehaviorInterface
Parameters:
controller - controller that routed the demand.
demand - demand parameters sent by the view component.
Returns:
Return true if the demand was handled, false otherwise. If false, the demand is transmitted to the controller to try to handle it.

getSession

public LySession getSession()
Gets the session of current object.

Specified by:
getSession in interface LyGetSessionInterface
Returns:
the session associated to the object.

(c) January 2013 - W4 S.A.

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