Package net.alteiar.client.bean

Examples of net.alteiar.client.bean.BasicBean


    MapBean map = CampaignClient.getInstance().getBean(mapElement.getMapId());
    HashSet<UniqueID> elements = map.getElements();
    effets = new ArrayList<Effect>();
    selectedEffects = new ArrayList<Integer>();
    for (UniqueID element : elements) {
      BasicBean effect = CampaignClient.getInstance().getBean(element);
      if (Beans.isInstanceOf(effect, Effect.class)) {
        effets.add((Effect) effect);
      }
    }
    effets.get(selectedEffect).setSelected(true);
View Full Code Here


    MapBean map = CampaignClient.getInstance().getBean(mapElement.getMapId());
    HashSet<UniqueID> elements = map.getElements();
    triggers = new ArrayList<TriggerBean>();
    selectedTriggers = new ArrayList<Integer>();
    for (UniqueID element : elements) {
      BasicBean effect = CampaignClient.getInstance().getBean(element);
      if (Beans.isInstanceOf(effect, TriggerBean.class)) {
        triggers.add((TriggerBean) effect);
      }
    }
    triggers.get(selectedTrigger).setSelected(true);
View Full Code Here

    this.setMapId(mapId);

    MapBean map = CampaignClient.getInstance().getBean(this.getMapId());
    HashSet<UniqueID> elements = map.getElements();
    for (UniqueID element : elements) {
      BasicBean elem = CampaignClient.getInstance().getBean(element);
      if (Beans.isInstanceOf(elem, typeActOn)) {
        actOn.add(elem.getId());
      }
    }
    map.addVetoableChangeListener(this);
  }
View Full Code Here

  }

  public void vetoableChange(PropertyChangeEvent arg0)
      throws PropertyVetoException {
    if (arg0.getPropertyName().contentEquals(MapBean.METH_ADD_ELEMENT_METHOD)) {
      BasicBean elem = CampaignClient.getInstance().getBean(
          (UniqueID) arg0.getNewValue(), 300);
      if (Beans.isInstanceOf(elem, typeActOn)) {
        actOn.add(elem.getId());
      }
    }

    if (arg0.getPropertyName()
        .contentEquals(MapBean.METH_REMOVE_ELEMENT_METHOD)) {
      BasicBean elem = CampaignClient.getInstance().getBean(
          (UniqueID) arg0.getOldValue());
      if (Beans.isInstanceOf(elem, typeActOn)) {
        elem.removeVetoableChangeListener(this);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.alteiar.client.bean.BasicBean

Copyright © 2018 www.massapicom. 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.