Exemplo n.º 1
0
 public void setSelectedEntity(Entity entity) {
   if (entity == null) {
     reset(true);
     return;
   }
   reset(false);
   for (Attribute<?> attr : entity.getAttributes()) {
     AttrComponent<?> ac = new AttrComponent(attr);
     attrComps.add(ac);
     getContentContainer().add(ac);
   }
 }