Class PropExtender

java.lang.Object
com.iizigo.prop.PropExtender
All Implemented Interfaces:
EventListener, IPropExtender

public class PropExtender extends Object implements IPropExtender, EventListener
Class used to Extend property container to each other.
Author:
Christopher Mindus
  • Constructor Details

    • PropExtender

      public PropExtender()
      The default constructor.
  • Method Details

    • initialize

      public boolean initialize(String extendsName, PropCnr source, PropCnr target) throws PropException
      Initializes the property extender.
      Specified by:
      initialize in interface IPropExtender
      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 interface IPropExtender
    • onEvent

      public void onEvent(GEvent e)
      Source events.
      Specified by:
      onEvent in interface EventListener
      Parameters:
      e - The event.