Package com.iizigo.prop
Class PropExtender
- java.lang.Object
- com.iizigo.prop.PropExtender
- All Implemented Interfaces:
EventListener
,IPropExtender
public class PropExtender extends java.lang.Object implements IPropExtender, EventListener
Class used to Extend property container to each other.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description PropExtender()
The default constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the extends framework.boolean
initialize(java.lang.String extendsName, PropCnr source, PropCnr target)
Initializes the property extender.void
onEvent(GEvent e)
Source events.
Method Detail
initialize
public boolean initialize(java.lang.String extendsName, PropCnr source, PropCnr target) throws PropException
Initializes the property extender.- Specified by:
initialize
in interfaceIPropExtender
- Parameters:
extendsName
- The reference.source
- The source container.target
- The target container.- Returns:
- true for initialized successfully, false if already initialized.
- Throws:
PropException
- If the extends container cannot be found, the target and extendsFrom are not of same class, one of them is index-based, or target is read-only.
dispose
public void dispose()
Disposes of the extends framework. Call this method to stop extension on a container. All properties belonging to the extended container are removed.- Specified by:
dispose
in interfaceIPropExtender
onEvent
public void onEvent(GEvent e)
Source events.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- The event.