示例#1
0
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   if (event != null) {
     Property property = event.getProperty();
     if (property instanceof Field) {
       Field abstractField = (Field) property;
       Object propertyId = getPropertyId(abstractField);
       if (propertyId != null) {
         boolean wasHiddenValidation =
             fieldsWithInitiallyDisabledValidation.remove(propertyId.toString());
         if (wasHiddenValidation) {
           if (abstractField instanceof AbstractField) {
             AbstractField abstractField1 = (AbstractField) abstractField;
             abstractField1.setValidationVisible(true);
           }
         }
       } else {
         Logger.getLogger(getClass().getName()).warning("Property id for field was not found.");
       }
     }
   }
   setBeanModified(true);
   if (listener != null) {
     listener.onFieldGroupChange(this);
   }
 }
示例#2
0
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   final Property property = event.getProperty();
   if (property == table) {
     final OperatingCost operatingCosts =
         OperatingCostFacade.getOperatingCostService().findById(table.getValue().toString());
     form.binder.setItemDataSource(new BeanItem<>(getBean(operatingCosts)));
     setReadFormProperties();
   }
 }
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   final Property property = event.getProperty();
   if (property == table) {
     final ServiceProviderProduct ServiceProviderProduct =
         ServiceProviderProductFacade.getServiceProviderProductService()
             .findById(table.getValue().toString());
     //        form.binder.setItemDataSource(new BeanItem<>(getBean(ServiceProviderProduct)));
     // setReadFormProperties();
   }
 }
示例#4
0
  @Override
  public void valueChange(Property.ValueChangeEvent event) {
    final Property property = event.getProperty();
    if (property == table) {
      try {
        final ContentType contentType = contentTypeService.findById(table.getValue().toString());
        final ContentTypeModel bean = getModel(contentType);
        form.binder.setItemDataSource(new BeanItem<>(bean));
        setReadFormProperties();
      } catch (Exception r) {

      }
    }
  }
示例#5
0
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   final Property property = event.getProperty();
 }