コード例 #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();
   }
 }
コード例 #3
0
 @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
ファイル: PasswordTab.java プロジェクト: smkumatela/infoshare
 @Override
 public void valueChange(Property.ValueChangeEvent event) {
   final Property property = event.getProperty();
 }