@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); }
@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()); }