Esempio n. 1
0
  @Override
  public Object getPropertyValue(Object id) {
    JRDesignComponentElement jrElement = (JRDesignComponentElement) getValue();
    UPCAComponent jrList = (UPCAComponent) jrElement.getComponent();

    if (id.equals(UPCAComponent.PROPERTY_CHECKSUM_MODE))
      return ChecksumMode.getPos4ChecksumMode(jrList.getChecksumMode());
    return super.getPropertyValue(id);
  }
Esempio n. 2
0
  @Override
  public void trasnferProperties(JRElement target) {
    super.trasnferProperties(target);

    JRDesignComponentElement jrSourceElement = (JRDesignComponentElement) getValue();
    UPCAComponent jrSourceBarcode = (UPCAComponent) jrSourceElement.getComponent();

    JRDesignComponentElement jrTargetElement = (JRDesignComponentElement) target;
    UPCAComponent jrTargetBarcode = (UPCAComponent) jrTargetElement.getComponent();

    jrTargetBarcode.setChecksumMode(jrSourceBarcode.getChecksumMode());
  }