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 voiddispose()Disposes of the extends framework.booleaninitialize(java.lang.String extendsName, PropCnr source, PropCnr target)Initializes the property extender.voidonEvent(GEvent e)Source events.
Method Detail
initialize
public boolean initialize(java.lang.String extendsName, PropCnr source, PropCnr target) throws PropExceptionInitializes the property extender.- Specified by:
initializein 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:
disposein interfaceIPropExtender
onEvent
public void onEvent(GEvent e)
Source events.- Specified by:
onEventin interfaceEventListener- Parameters:
e- The event.