Examples of Entity


Examples of com.alkacon.vie.client.Entity

     * @param scrollParent the scroll element to be used for automatic scrolling during drag and drop

     */
    public void renderEntityForm(String entityId, List<TabInfo> tabInfos, Panel context, Element scrollParent) {

        Entity entity = (Entity)m_vie.getEntity(entityId);
        if (entity != null) {
            boolean initUndo = (m_entity == null) || !entity.getId().equals(m_entity.getId());
            m_entity = entity;
            I_Type type = m_vie.getType(m_entity.getTypeName());
            m_formPanel = new FlowPanel();
            context.add(m_formPanel);
            AttributeHandler.setScrollElement(scrollParent);
View Full Code Here

Examples of com.arconsis.android.datarobot.entity.Entity

  }

  private void generateContentProviderIfRequested(final String packageName, final Set<? extends Element> entityAnnotated) throws Exception {
    List<ContentProviderData> providers = new LinkedList<ContentProviderData>();
    for (Element entity : entityAnnotated) {
      Entity entityAnnotation = entity.getAnnotation(Entity.class);
      if (entityAnnotation.contentProvider()) {
        ContentProviderBuilder providerBuilder = new ContentProviderBuilder(packageName, entity, messager);
        SourceContentProviderData providerData = providerBuilder.build();
        JavaFileWriter javaFileWriter = new JavaFileWriter(packageName, providerData.getSimpleName(), processingEnv);
        javaFileWriter.write(providerData.getSource());
        providers.add(providerData);
View Full Code Here

Examples of com.artemis.Entity

      float offsetY = cameraSystem.getStartY();
      g.drawRect(offsetX*scaleX, offsetY*scaleY, scaleX*cameraSystem.getWidth(), scaleY*cameraSystem.getHeight());
     
      ImmutableBag<Entity> entities = world.getManager(GroupManager.class).getEntities("crates");
      for(int i = 0; entities.size() > i; i++) {
        Entity crate = entities.get(i);
        Physics cratePhysics = physicsMapper.get(crate);
        float crateX = cratePhysics.getX()*scaleX;
        float crateY = cratePhysics.getY()*scaleY;
        g.fillRect(crateX-1, crateY-1, 2, 2);
      }
     
      ImmutableBag<Entity> tanks = world.getManager(GroupManager.class).getEntities("tanks");
      for(int i = 0; tanks.size() > i; i++) {
        Entity t = tanks.get(i);
        String tp = world.getManager(PlayerManager.class).getPlayer(t);
        Physics physics = physicsMapper.get(t);
        g.setColor(Color.green);
        float tx = physics.getX()*scaleX;
        float ty = physics.getY()*scaleY;
 
View Full Code Here

Examples of com.badlogic.ashley.core.Entity

   
    batch.begin();
    batch.setProjectionMatrix(camera.combined);
   
    for (int i = 0; i < entities.size(); ++i) {
      Entity e = entities.get(i);
     
      position = pm.get(e);
      visual = vm.get(e);
     
      batch.draw(visual.region, position.x, position.y);
View Full Code Here

Examples of com.caucho.amber.entity.Entity

    if (item == null)
      return null;

    int offset = entityType.getId().getKeyCount();

    Entity entity = item.getEntity();

    /* XXX: jpa/0s2c
    if (entityType.getDiscriminator() != null) {
      // jpa/0l47
      offset++;
    }
    */
    _index = entity.__caucho_load(aConn, rs, index + offset);

    item.setNumberOfLoadingColumns(_index);

    return item;
  }
View Full Code Here

Examples of com.dubture.doctrine.core.model.Entity

            for (Entity entity : entities) {
                EntityAlias newAliase = new EntityAlias(alias.getBundleAlias(), entity.getElementName());
                IType type = model.findEntity(newAliase, project);

                if (type != null) {
                    reporter.reportType(new Entity((ModelElement) type, type.getElementName()), "", range);
                }
            }
        }
    }
View Full Code Here

Examples of com.github.jmkgreen.morphia.annotations.Entity

    public void testInheritedClassAnnotations() {
      List<Indexes> annotations = ReflectionUtils.getAnnotations(Foobie.class, Indexes.class);
      Assert.assertEquals(2, annotations.size());
      Assert.assertTrue(ReflectionUtils.getAnnotation(Foobie.class, Indexes.class) instanceof Indexes);

        Entity foobie = ReflectionUtils.getClassEntityAnnotation(Foobie.class);
        Assert.assertTrue("Sub".equals(foobie.value()));

        Entity fooble = ReflectionUtils.getClassEntityAnnotation(Fooble.class);
        Assert.assertEquals(Mapper.IGNORED_FIELDNAME, fooble.value());
    }
View Full Code Here

Examples of com.google.appengine.api.datastore.Entity

  }
 
  @Override
  public void copy(BaseEntity entity) {
    Key myKey = getKey();
    Entity buf = new Entity("tmp");
    entity.save(buf);
    load(buf);
    setKey(myKey);
  }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetResponse.Entity

    {
      final MemcacheService memcache = MemvacheDelegate.getMemcache();
      Map<Key, Object> all = memcache.getAll(theRequestKeys); // 存在しなかった場合Keyごと無い
      theData = new HashMap<Key, Entity>();
      for (Key key : all.keySet()) {
        Entity entity = (Entity) all.get(key);
        if (entity != null) {
          theData.put(key, entity);
        }
      }
    }

    // もし全部取れた場合は Get動作を行わず結果を構成して返す。
    if (theRequestKeys.size() == theData.size()) {
      GetResponse responsePb = new GetResponse();
      // toByteArray() を呼んだ時にNPEが発生するのを抑制するために内部的に new ArrayList() させる
      responsePb.mutableEntitys();
      responsePb.mutableDeferreds();
      for (Key key : theRequestKeys) {
        Entity entity = theData.get(key);
        if (entity == null) {
          theData.remove(key);
          continue;
        }
        responsePb.addEntity(entity);
View Full Code Here

Examples of com.googlecode.objectify.annotation.Entity

  /**
   * Get the kind from the class if the class has an @Entity annotation, otherwise return null.
   */
  private static String getKindHere(Class<?> clazz) {
    // @Entity is inherited so we have to be explicit about the declared annotations
    Entity ourAnn = TypeUtils.getDeclaredAnnotation(clazz, Entity.class);
    if (ourAnn != null)
      if (ourAnn.name() != null && ourAnn.name().length() != 0)
        return ourAnn.name();
      else
        return clazz.getSimpleName();

    return null;
  }
View Full Code Here
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.