Package __TOP_LEVEL_PACKAGE__.__SEGMENT_PACKAGE__

Source Code of __TOP_LEVEL_PACKAGE__.__SEGMENT_PACKAGE__.ScaffoldApp

package __TOP_LEVEL_PACKAGE__.__SEGMENT_PACKAGE__;

import __TOP_LEVEL_PACKAGE__.client.managed.request.ApplicationEntityTypesProcessor;
import __TOP_LEVEL_PACKAGE__.client.scaffold.place.ProxyListPlace;
import __TOP_LEVEL_PACKAGE__.client.scaffold.gae.*;
import com.google.web.bindery.requestfactory.shared.EntityProxy;

import java.util.HashSet;
import java.util.Set;

public class ScaffoldApp {

  static boolean isMobile = false;

  public static boolean isMobile() {
    return isMobile;
  }

  public void run() {
  }

  protected HashSet<ProxyListPlace> getTopPlaces() {
    Set<Class<? extends EntityProxy>> types = ApplicationEntityTypesProcessor.getAll();
    HashSet<ProxyListPlace> rtn = new HashSet<ProxyListPlace>(types.size());

    for (Class<? extends EntityProxy> type : types) {
      rtn.add(new ProxyListPlace(type));
    }

    return rtn;
  }
}
TOP

Related Classes of __TOP_LEVEL_PACKAGE__.__SEGMENT_PACKAGE__.ScaffoldApp

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.