예제 #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();
 }