@Override
  public void valueChange(ValueChangeEvent event) {
    if (event.getProperty() == inputGoodsQuantity) {
      listener.quantityChange();

    } else if (event.getProperty() == inputGoodsSelect) {
      listener.goodsSelectChange();
    }
  }
예제 #2
0
 @Override
 public void valueChange(ValueChangeEvent event) {
   // updateId();
   if (event.getProperty().getValue() == this.cb_Grupo.getValue()
       && (String) this.cb_Grupo.getValue() != null) {
     fillcbAuxiliar((String) this.cb_Grupo.getValue());
   }
   if (event.getProperty().getValue() == this.cb_Auxiliar.getValue()
       && (String) this.cb_Auxiliar.getValue() != null) {
     fillcbAcivo((String) this.cb_Auxiliar.getValue(), (String) this.cb_Grupo.getValue());
   }
 }
 public void valueChange(ValueChangeEvent event) {
   Property property = event.getProperty();
   if (property == fileTable) {
     currentFile = (DocumentObject) fileTable.getValue();
     setEnableButtonsBySelection(currentFile != null);
   }
 }
예제 #4
0
 @Override
 public void valueChange(ValueChangeEvent event) {
   Object valuePropertyEvent = event.getProperty().getValue();
   if (valuePropertyEvent != null) {
     showOrganization((Long) valuePropertyEvent);
   } else {
     panel.removeAllComponents();
     panel.addComponent(new ButtonCreateOrganization(treetable));
   }
 }
  @Override
  public void valueChange(ValueChangeEvent event) {
    if (event.getProperty() == selectContent) {
      ReportContent value = (ReportContent) selectContent.getValue();
      if (!(value == ReportContent.TABLE)) {
        buttonPrint.setEnabled(false);
      } else {
        buttonPrint.setEnabled(true);
      }
    }

    updateWindowOpener();
  }
예제 #6
0
 /**
  * Event handler for value change events. Adds the item to modified list if value was actually
  * changed. Change can be committed or discarded with respective methods.
  *
  * @param event the ValueChangeEvent
  */
 @Override
 public void valueChange(final ValueChangeEvent event) {
   final Property property = event.getProperty();
   final Item item = propertyItemMapCache.get(property);
   if (property == item.getItemProperty(PROPERTY_ID_ITEM_STATUS)) {
     return;
   }
   if (item.getItemProperty(PROPERTY_ID_ITEM_STATUS) != null
       && ((QueryItemStatus) item.getItemProperty(PROPERTY_ID_ITEM_STATUS).getValue())
           != QueryItemStatus.Modified) {
     item.getItemProperty(PROPERTY_ID_ITEM_STATUS).setReadOnly(false);
     item.getItemProperty(PROPERTY_ID_ITEM_STATUS).setValue(QueryItemStatus.Modified);
     item.getItemProperty(PROPERTY_ID_ITEM_STATUS).setReadOnly(true);
   }
   if (!addedItems.contains(item) && !modifiedItems.contains(item)) {
     modifiedItems.add(item);
   }
 }
예제 #7
0
  @Override
  public void valueChange(ValueChangeEvent event) {
    Object value = event.getProperty().getValue();
    if (value == null) return;
    Item theItem = propertyPairContainer.getItem(value);
    currentItem = (PropertyPairItem) theItem;
    // a clone, so a change event won't mess the table selection
    PropertyPairItem clone =
        new PropertyPairItem(currentItem.getSourceProperty(), currentItem.getTargetProperty());
    propertyToolArea.selectionChanged(clone, reviews.get((String) clone.getKey()), this);

    keyLabel.setValue(clone.getKey());
    translated.setPropertyDataSource(clone.getTarget());
    orignal.setPropertyDataSource(clone.getSource());

    translatedComment.setPropertyDataSource(clone.getTargetComment());
    orignalComment.setPropertyDataSource(clone.getSourceComment());

    applyValidation(clone.getTargetProperty());
  }
예제 #8
0
 @Override
 public void valueChange(ValueChangeEvent event) {
   if (event.getProperty().equals(cmbRol)
       || event.getProperty().equals(cmbPolicia)
       || event.getProperty().equals(cmbOficina)) formHasChanged();
 }