Package net.alteiar.trigger

Source Code of net.alteiar.trigger.MyAreaBean

package net.alteiar.trigger;

import java.beans.VetoableChangeListener;
import java.util.HashSet;

import net.alteiar.CampaignClient;
import net.alteiar.documents.map.MapBean;
import net.alteiar.map.elements.MapElement;
import net.alteiar.shared.UniqueID;

public abstract class MyAreaBean extends MapElementDecorator implements
    VetoableChangeListener {
  private static final long serialVersionUID = 1L;

  public MyAreaBean(MapElement mapElement) {
    super(mapElement);

  }

  @Override
  public void setMapId(UniqueID mapId) {
    super.setMapId(mapId);

    MapBean map = getMap();
    HashSet<UniqueID> elements = map.getElements();
    for (UniqueID elementId : elements) {
      MapElement element = CampaignClient.getInstance()
          .getBean(elementId);

      // element.contain(p)
    }
  }

}
TOP

Related Classes of net.alteiar.trigger.MyAreaBean

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.