@Override public void setValue(Object value) { ClientQuantity clientQuantity = (ClientQuantity) value; if (clientQuantity != null) { getRequirement(UNIT) .setValue( CommandUtils.getServerObjectById(clientQuantity.getUnit(), AccounterCoreType.UNIT)); getRequirement(VALUE).setValue(clientQuantity.getValue()); } super.setValue(value); }
@Override public void setEditable(boolean isEditable) { getRequirement(UNIT).setEditable(isEditable); getRequirement(VALUE).setEditable(isEditable); super.setEditable(isEditable); }