コード例 #1
0
  @Override
  public void updateUIFromEntities(
      ImmutableArray<EntityProxy> proxies, Field field, Class<?> fieldType)
      throws ReflectiveOperationException {
    StringStringMapView view = views.get(field);

    if (proxies.size() > 1) view.multipleSelected();
    else view.setMap(EntityUtils.getFirstEntityComponent(proxies, Variables.class));
  }
コード例 #2
0
 @Override
 public void setToEntities(Component component, Field field, Class<?> fieldType)
     throws ReflectiveOperationException {
   StringStringMapView view = views.get(field);
   view.updateMapFromUI();
 }