Package com.dubture.getcomposer.core.objects

Examples of com.dubture.getcomposer.core.objects.Scripts


  }
 
  @Override
  public Object[] getChildren(Object parentElement) {
    if (parentElement instanceof Scripts) {
      Scripts scripts = (Scripts) parentElement;
      List<String> children = new ArrayList<String>();
     
      for (String event : Scripts.getEvents()) {
        if (scripts.has(event)) {
          children.add(event);
        }
      }
     
      return children.toArray();
    } else {
      String text = parentElement.toString();
      if (Arrays.asList(Scripts.getEvents()).contains(text)) {
        return scripts.getAsArray(text).toArray();
      }
    }
   
    return new Object[]{};
  }
View Full Code Here

TOP

Related Classes of com.dubture.getcomposer.core.objects.Scripts

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.