Package net.alteiar.trigger.xml

Examples of net.alteiar.trigger.xml.TriggerChoiceListGenerator


        triggers.add((TriggerBean) effect);
      }
    }
    triggers.get(selectedTrigger).setSelected(true);
    String[] effectList = new String[triggers.size()];
    TriggerChoiceListGenerator tGenerator = new TriggerChoiceListGenerator();
    ArrayList<Class<?>> classList = tGenerator
        .getTriggerClasses(TriggerChoiceListGenerator.path);
    ArrayList<String> triggerNameList = tGenerator
        .getTriggerName(TriggerChoiceListGenerator.path);
    for (int j = 0; j < triggers.size(); j++) {
      for (int i = 0; i < classList.size(); i++) {
        if (Beans.isInstanceOf(triggers.get(j), classList.get(i))) {
          effectList[j] = triggerNameList.get(i);
View Full Code Here


  private ShapeListGenerator sGenerator = null;
  private TriggerChoiceListGenerator tGenerator = null;

  public PanelTriggerBuilder() {
    try {
      tGenerator = new TriggerChoiceListGenerator();
      sGenerator = new ShapeListGenerator();

      ArrayList<ArrayList<String[]>> shapeChoice = sGenerator
          .CreateComboList(ShapeListGenerator.path);
      ArrayList<ArrayList<String[]>> triggerChoice = tGenerator
View Full Code Here

  private static String EFFECT_XML = "./ressources/EffectRessource/xml/Effect.xml";
  private static String SHAPE_XML = "./ressources/EffectRessource/xml/Shape.xml";

  @Test
  public void testListTrigger() {
    TriggerChoiceListGenerator generator = new TriggerChoiceListGenerator();
    ArrayList<ArrayList<String[]>> result = generator
        .CreateComboList(TRIGGER_XML);
    for (int i = 0; i < result.size(); i++) {
      System.out.println("Array 1: size:" + result.size());
      for (int j = 0; j < result.get(i).size(); j++) {
        System.out.println("Array 2: size:" + result.get(i).size());
View Full Code Here

  }

  @Test
  public void testClassTriggerType() {
    try {
      TriggerChoiceListGenerator generator = new TriggerChoiceListGenerator();
      Class<?> c = generator.getTriggerClass(
          TriggerChoiceListGenerator.path, "position");
      System.out.println("classe =" + c.getCanonicalName());
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

  }

  @Test
  public void testClassActivatorType() {
    try {
      TriggerChoiceListGenerator generator = new TriggerChoiceListGenerator();
      Class<?> c = generator.getActivatorClass(TRIGGER_XML,
          "circle element", "position");
      System.out.println("classe =" + c.getCanonicalName());
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of net.alteiar.trigger.xml.TriggerChoiceListGenerator

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.